• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023 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 ARKUI_PERF_SCENE_ID_H
17 #define ARKUI_PERF_SCENE_ID_H
18 
19 #include <string>
20 
21 namespace OHOS::Ace {
22 class PerfConstants {
23 public:
24     // start app from launcher icon sceneid
25     static constexpr char LAUNCHER_APP_LAUNCH_FROM_ICON[] = "LAUNCHER_APP_LAUNCH_FROM_ICON";
26 
27     // app ablitity page switch
28     static constexpr char ABILITY_OR_PAGE_SWITCH[] = "ABILITY_OR_PAGE_SWITCH";
29 
30     // app exit to home by geturing slide out
31     static constexpr char LAUNCHER_APP_SWIPE_TO_HOME[] = "LAUNCHER_APP_SWIPE_TO_HOME";
32 
33     // app list fling
34     static constexpr char APP_LIST_FLING[] = "APP_LIST_FLING";
35 
36     // app swiper fling
37     static constexpr char APP_SWIPER_FLING[] = "APP_SWIPER_FLING";
38 
39     // app swiper scroll
40     static constexpr char APP_SWIPER_SCROLL[] = "APP_SWIPER_SCROLL";
41 
42     // volume bar show
43     static constexpr char VOLUME_BAR_SHOW[] = "VOLUME_BAR_SHOW";
44 
45     // PC app center gesture operation
46     static constexpr char PC_APP_CENTER_GESTURE_OPERATION[] = "PC_APP_CENTER_GESTURE_OPERATION";
47 
48     // PC gesture to recent
49     static constexpr char PC_GESTURE_TO_RECENT[] = "PC_GESTURE_TO_RECENT";
50 
51     // PC shortcut show desktop
52     static constexpr char PC_SHORTCUT_SHOW_DESKTOP[] = "PC_SHORTCUT_SHOW_DESKTOP";
53 
54     // PC shortcut restore desktop
55     static constexpr char PC_SHORTCUT_RESTORE_DESKTOP[] = "PC_SHORTCUT_RESTORE_DESKTOP";
56 
57     // PC show desktop gesture operation
58     static constexpr char PC_SHOW_DESKTOP_GESTURE_OPERATION[] = "PC_SHOW_DESKTOP_GESTURE_OPERATION";
59 
60     // PC alt + tab to recent
61     static constexpr char PC_ALT_TAB_TO_RECENT[] = "PC_ALT_TAB_TO_RECENT";
62 
63     // PC shortcut to recent
64     static constexpr char PC_SHORTCUT_TO_RECENT[] = "PC_SHORTCUT_TO_RECENT";
65 
66     // PC exit recent
67     static constexpr char PC_EXIT_RECENT[] = "PC_EXIT_RECENT";
68 
69     // PC shoutcut to app center
70     static constexpr char PC_SHORTCUT_TO_APP_CENTER[] = "PC_SHORTCUT_TO_APP_CENTER";
71 
72     // PC shoutcut to app center on recent
73     static constexpr char PC_SHORTCUT_TO_APP_CENTER_ON_RECENT[] = "PC_SHORTCUT_TO_APP_CENTER_ON_RECENT";
74 
75     // PC shoutcut exit app center
76     static constexpr char PC_SHORTCUT_EXIT_APP_CENTER[] = "PC_SHORTCUT_EXIT_APP_CENTER";
77 
78     // A app jump to another app
79     static constexpr char APP_TRANSITION_TO_OTHER_APP[] = "APP_TRANSITION_TO_OTHER_APP";
80 
81     // another app jamps back to A app
82     static constexpr char APP_TRANSITION_FROM_OTHER_APP[] = "APP_TRANSITION_FROM_OTHER_APP";
83 
84     // mutitask scroll
85     static constexpr char SNAP_RECENT_ANI[] = "SNAP_RECENT_ANI";
86 };
87 } // namespace OHOS::Ace
88 #endif // ARKUI_PERF_SCENE_ID_H
89