• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2024 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 LONG_PRESS_EVENT_H
17 #define LONG_PRESS_EVENT_H
18 
19 namespace OHOS {
20 namespace MMI {
21 struct LongPressRequest {
22     int32_t fingerCount { -1 };
23     int32_t duration { -1 };
24 };
25 
26 struct LongPressEvent {
27     int32_t fingerCount { -1 };
28     int32_t duration { -1 };
29     int32_t pid { -1 };
30     int32_t displayId { -1 };
31     int32_t displayX { -1 };
32     int32_t displayY { -1 };
33     int32_t result { -1 }; // If the value is 0, it indicates correct reporting; non-zero indicates cancellation
34     int32_t windowId { -1 };
35     int32_t pointerId { -1 };
36     int64_t downTime { -1 };
37     std::string bundleName;
38 };
39 } // namespace MMI
40 } // namespace OHOS
41 #endif // LONG_PRESS_EVENT_H