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 // app tab switch 43 static constexpr char APP_TAB_SWITCH[] = "APP_TAB_SWITCH"; 44 45 // volume bar show 46 static constexpr char VOLUME_BAR_SHOW[] = "VOLUME_BAR_SHOW"; 47 48 // PC app center gesture operation 49 static constexpr char PC_APP_CENTER_GESTURE_OPERATION[] = "PC_APP_CENTER_GESTURE_OPERATION"; 50 51 // PC gesture to recent 52 static constexpr char PC_GESTURE_TO_RECENT[] = "PC_GESTURE_TO_RECENT"; 53 54 // PC shortcut show desktop 55 static constexpr char PC_SHORTCUT_SHOW_DESKTOP[] = "PC_SHORTCUT_SHOW_DESKTOP"; 56 57 // PC shortcut restore desktop 58 static constexpr char PC_SHORTCUT_RESTORE_DESKTOP[] = "PC_SHORTCUT_RESTORE_DESKTOP"; 59 60 // PC show desktop gesture operation 61 static constexpr char PC_SHOW_DESKTOP_GESTURE_OPERATION[] = "PC_SHOW_DESKTOP_GESTURE_OPERATION"; 62 63 // PC alt + tab to recent 64 static constexpr char PC_ALT_TAB_TO_RECENT[] = "PC_ALT_TAB_TO_RECENT"; 65 66 // PC shortcut to recent 67 static constexpr char PC_SHORTCUT_TO_RECENT[] = "PC_SHORTCUT_TO_RECENT"; 68 69 // PC exit recent 70 static constexpr char PC_EXIT_RECENT[] = "PC_EXIT_RECENT"; 71 72 // PC shoutcut to app center 73 static constexpr char PC_SHORTCUT_TO_APP_CENTER[] = "PC_SHORTCUT_TO_APP_CENTER"; 74 75 // PC shoutcut to app center on recent 76 static constexpr char PC_SHORTCUT_TO_APP_CENTER_ON_RECENT[] = "PC_SHORTCUT_TO_APP_CENTER_ON_RECENT"; 77 78 // PC shoutcut exit app center 79 static constexpr char PC_SHORTCUT_EXIT_APP_CENTER[] = "PC_SHORTCUT_EXIT_APP_CENTER"; 80 81 // A app jump to another app 82 static constexpr char APP_TRANSITION_TO_OTHER_APP[] = "APP_TRANSITION_TO_OTHER_APP"; 83 84 // another app jamps back to A app 85 static constexpr char APP_TRANSITION_FROM_OTHER_APP[] = "APP_TRANSITION_FROM_OTHER_APP"; 86 87 // mutitask scroll 88 static constexpr char SNAP_RECENT_ANI[] = "SNAP_RECENT_ANI"; 89 90 // start app from dock 91 static constexpr char LAUNCHER_APP_LAUNCH_FROM_DOCK[] = "LAUNCHER_APP_LAUNCH_FROM_DOCK"; 92 93 // start app from misson 94 static constexpr char LAUNCHER_APP_LAUNCH_FROM_MISSON[] = "LAUNCHER_APP_LAUNCH_FROM_MISSON"; 95 96 // app exit from back to home 97 static constexpr char LAUNCHER_APP_BACK_TO_HOME[] = "LAUNCHER_APP_BACK_TO_HOME"; 98 99 // app exit from multitasking 100 static constexpr char EXIT_RECENT_2_HOME_ANI[] = "EXIT_RECENT_2_HOME_ANI"; 101 102 // PC window resize 103 static constexpr char WINDOW_RECT_RESIZE[] = "WINDOW_RECT_RESIZE"; 104 105 // PC window move 106 static constexpr char WINDOW_RECT_MOVE[] = "WINDOW_RECT_MOVE"; 107 108 // input method show 109 static constexpr char SHOW_INPUT_METHOD_ANIMATION[] = "SHOW_INPUT_METHOD_ANIMATION"; 110 111 // input method hide 112 static constexpr char HIDE_INPUT_METHOD_ANIMATION[] = "HIDE_INPUT_METHOD_ANIMATION"; 113 114 // screen rotation 115 static constexpr char SCREEN_ROTATION_ANI[] = "SCREEN_ROTATION_ANI"; 116 117 // folder close 118 static constexpr char CLOSE_FOLDER_ANI[] = "CLOSE_FOLDER_ANI"; 119 120 // launcher spring back scroll 121 static constexpr char LAUNCHER_SPRINGBACK_SCROLL[] = "LAUNCHER_SPRINGBACK_SCROLL"; 122 123 // window title bar minimized 124 static constexpr char WINDOW_TITLE_BAR_MINIMIZED[] = "WINDOW_TITLE_BAR_MINIMIZED"; 125 126 // window title bar closed 127 static constexpr char APP_EXIT_FROM_WINDOW_TITLE_BAR_CLOSED[] = "APP_EXIT_FROM_WINDOW_TITLE_BAR_CLOSED"; 128 129 // PC start app from other 130 static constexpr char LAUNCHER_APP_LAUNCH_FROM_OTHER[] = "LAUNCHER_APP_LAUNCH_FROM_OTHER"; 131 132 // scroller animation 133 static constexpr char SCROLLER_ANIMATION[] = "SCROLLER_ANIMATION"; 134 135 // pc title bar maximized 136 static constexpr char WINDOW_TITLE_BAR_MAXIMIZED[] = "WINDOW_TITLE_BAR_MAXIMIZED"; 137 138 // pc title bar recover 139 static constexpr char WINDOW_TITLE_BAR_RECOVER[] = "WINDOW_TITLE_BAR_RECOVER"; 140 141 // PC start app from transition 142 static constexpr char LAUNCHER_APP_LAUNCH_FROM_TRANSITION[] = "LAUNCHER_APP_LAUNCH_FROM_TRANSITION"; 143 144 // navigation interactive animation 145 static constexpr char ABILITY_OR_PAGE_SWITCH_INTERACTIVE[] = "ABILITY_OR_PAGE_SWITCH_INTERACTIVE"; 146 }; 147 } // namespace OHOS::Ace 148 #endif // ARKUI_PERF_SCENE_ID_H 149