1/*
2 * Copyright (c) 2022 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16#ifndef EXTRA_DATA_H
17#define EXTRA_DATA_H
18
19#include <vector>
20
21namespace OHOS {
22namespace MMI {
23struct ExtraData {
24    /*
25     * buffer的最大个数
26     *
27     * @since 9
28     */
29    static constexpr int32_t MAX_BUFFER_SIZE = 1024;
30    /*
31     * 是否添加buffer信息
32     *
33     * @since 9
34     */
35    bool appended { false };
36    /*
37     * buffer信息
38     *
39     * @since 9
40     */
41    std::vector<uint8_t> buffer;
42    /*
43     * 事件类型
44     *
45     * @since 9
46     */
47    int32_t sourceType { -1 };
48    /*
49     * 事件触发的pointer id
50     *
51     * @since 9
52     */
53    int32_t pointerId { -1 };
54    /*
55     * 当前拖拽实例的标识
56     *
57     * @since 13
58     */
59    int32_t pullId { -1 };
60};
61} // namespace MMI
62} // namespace OHOS
63#endif // EXTRA_DATA_H