1885b47fbSopenharmony_ci/*
2885b47fbSopenharmony_ci * Copyright (C) 2023 Huawei Device Co., Ltd.
3885b47fbSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4885b47fbSopenharmony_ci * you may not use this file except in compliance with the License.
5885b47fbSopenharmony_ci * You may obtain a copy of the License at
6885b47fbSopenharmony_ci *
7885b47fbSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8885b47fbSopenharmony_ci *
9885b47fbSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10885b47fbSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11885b47fbSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12885b47fbSopenharmony_ci * See the License for the specific language governing permissions and
13885b47fbSopenharmony_ci * limitations under the License.
14885b47fbSopenharmony_ci */
15885b47fbSopenharmony_ci
16885b47fbSopenharmony_ci#ifndef ACCESSIBILITY_IPC_INTERFACE_CODE_H
17885b47fbSopenharmony_ci#define ACCESSIBILITY_IPC_INTERFACE_CODE_H
18885b47fbSopenharmony_ci/* SAID:3503 */
19885b47fbSopenharmony_cinamespace OHOS {
20885b47fbSopenharmony_cinamespace Accessibility {
21885b47fbSopenharmony_ci    enum AccessibilityInterfaceCode {
22885b47fbSopenharmony_ci        SET_RESULT_BY_ACCESSIBILITY_ID = 100,
23885b47fbSopenharmony_ci        SET_RESULT_BY_TEXT,
24885b47fbSopenharmony_ci        SET_RESULT_FOCUSED_INFO,
25885b47fbSopenharmony_ci        SET_RESULT_FOCUS_MOVE,
26885b47fbSopenharmony_ci        SET_RESULT_PERFORM_ACTION,
27885b47fbSopenharmony_ci        SET_RESULT_CURSOR_RESULT,
28885b47fbSopenharmony_ci
29885b47fbSopenharmony_ci        SEARCH_BY_ACCESSIBILITY_ID = 200,
30885b47fbSopenharmony_ci        SEARCH_BY_TEXT,
31885b47fbSopenharmony_ci        FIND_FOCUSED_INFO,
32885b47fbSopenharmony_ci        FOCUS_FIND,
33885b47fbSopenharmony_ci        PERFORM_ACTION_ELEMENT,
34885b47fbSopenharmony_ci        CURSOR_POSITION,
35885b47fbSopenharmony_ci        CLEAR_FOCUS,
36885b47fbSopenharmony_ci        OUTSIDE_TOUCH,
37885b47fbSopenharmony_ci        SET_CHILDTREEID,
38885b47fbSopenharmony_ci        SET_BELONGTREEID,
39885b47fbSopenharmony_ci        SET_PARENTWINDOWID,
40885b47fbSopenharmony_ci
41885b47fbSopenharmony_ci        ON_ACCESSIBILITY_ENABLE_ABILITY_LISTS_CHANGED = 300,
42885b47fbSopenharmony_ci        ON_ACCESSIBILITY_INSTALL_ABILITY_LISTS_CHANGED,
43885b47fbSopenharmony_ci
44885b47fbSopenharmony_ci        SEARCH_ELEMENTINFO_BY_ACCESSIBILITY_ID = 400,
45885b47fbSopenharmony_ci        SEARCH_ELEMENTINFOS_BY_TEXT,
46885b47fbSopenharmony_ci        FIND_FOCUSED_ELEMENTINFO,
47885b47fbSopenharmony_ci        FOCUS_MOVE_SEARCH,
48885b47fbSopenharmony_ci        PERFORM_ACTION,
49885b47fbSopenharmony_ci        SET_CURTAIN_SCREEN,
50885b47fbSopenharmony_ci        GET_WINDOW,
51885b47fbSopenharmony_ci        GET_WINDOWS,
52885b47fbSopenharmony_ci        GET_WINDOWS_BY_DISPLAY_ID,
53885b47fbSopenharmony_ci        DISABLE_ABILITY,
54885b47fbSopenharmony_ci        SET_ON_KEY_PRESS_EVENT_RESULT,
55885b47fbSopenharmony_ci        SEND_SIMULATE_GESTURE_PATH,
56885b47fbSopenharmony_ci        SET_TARGET_BUNDLE_NAME,
57885b47fbSopenharmony_ci        GET_CURSOR_POSITION,
58885b47fbSopenharmony_ci
59885b47fbSopenharmony_ci        INIT = 500,
60885b47fbSopenharmony_ci        DISCONNECT,
61885b47fbSopenharmony_ci        ON_ACCESSIBILITY_EVENT,
62885b47fbSopenharmony_ci        ON_KEY_PRESS_EVENT,
63885b47fbSopenharmony_ci
64885b47fbSopenharmony_ci        ON_PROPERTY_CHANGED = 600,
65885b47fbSopenharmony_ci
66885b47fbSopenharmony_ci        ON_CONFIG_STATE_CHANGED = 700,
67885b47fbSopenharmony_ci        ON_DALTONIZATION_COLOR_FILTER_CHANGED,
68885b47fbSopenharmony_ci        ON_CONTENT_TIMEOUT_CHANGED,
69885b47fbSopenharmony_ci        ON_MOUSE_AUTOCLICK_CHANGED,
70885b47fbSopenharmony_ci        ON_BRIGHTNESS_DISCOUNT_CHANGED,
71885b47fbSopenharmony_ci        ON_AUDIO_BALANCE_CHANGED,
72885b47fbSopenharmony_ci        ON_SHORTKEY_TARGET_CHANGED,
73885b47fbSopenharmony_ci        ON_CAPTION_STYLE_CHANGED,
74885b47fbSopenharmony_ci        ON_CLICK_RESPONSE_TIME,
75885b47fbSopenharmony_ci        ON_IGNORE_REPEAT_CLICK_TIME,
76885b47fbSopenharmony_ci        ON_SHORTKEY_MULTI_TARGET_CHANGED,
77885b47fbSopenharmony_ci
78885b47fbSopenharmony_ci        SEND_EVENT = 800,
79885b47fbSopenharmony_ci        REGISTER_STATE_CALLBACK,
80885b47fbSopenharmony_ci        GET_ABILITYLIST,
81885b47fbSopenharmony_ci        REGISTER_INTERACTION_CONNECTION,
82885b47fbSopenharmony_ci        CARDREGISTER_INTERACTION_CONNECTION,
83885b47fbSopenharmony_ci        DEREGISTER_INTERACTION_CONNECTION,
84885b47fbSopenharmony_ci        CARDDEREGISTER_INTERACTION_CONNECTION,
85885b47fbSopenharmony_ci        GET_CAPTION_PROPERTY,
86885b47fbSopenharmony_ci        SET_CAPTION_PROPERTY,
87885b47fbSopenharmony_ci        SET_CAPTION_STATE,
88885b47fbSopenharmony_ci        REGISTER_CAPTION_PROPERTY_CALLBACK,
89885b47fbSopenharmony_ci        GET_ENABLED,
90885b47fbSopenharmony_ci        GET_CAPTION_STATE,
91885b47fbSopenharmony_ci        GET_TOUCH_GUIDE_STATE,
92885b47fbSopenharmony_ci        GET_GESTURE_STATE,
93885b47fbSopenharmony_ci        GET_KEY_EVENT_OBSERVE_STATE,
94885b47fbSopenharmony_ci        ENABLE_ABILITIES,
95885b47fbSopenharmony_ci        GET_ENABLED_OBJECT,
96885b47fbSopenharmony_ci        DISABLE_ABILITIES,
97885b47fbSopenharmony_ci        ENABLE_UI_TEST_ABILITY,
98885b47fbSopenharmony_ci        DISABLE_UI_TEST_ABILITY,
99885b47fbSopenharmony_ci        GET_ACTIVE_WINDOW,
100885b47fbSopenharmony_ci        SET_SCREENMAGNIFIER_STATE,
101885b47fbSopenharmony_ci        SET_SHORTKEY_STATE,
102885b47fbSopenharmony_ci        SET_MOUSEKEY_STATE,
103885b47fbSopenharmony_ci        SET_SHORTKEY_TARGET,
104885b47fbSopenharmony_ci        SET_MOUSEKEY_AUTOCLICK,
105885b47fbSopenharmony_ci        SET_INVERTCOLOR_STATE,
106885b47fbSopenharmony_ci        SET_HIGHCONTRASTTEXT_STATE,
107885b47fbSopenharmony_ci        SET_AUDIOMONO_STATE,
108885b47fbSopenharmony_ci        SET_ANIMATIONOFF_STATE,
109885b47fbSopenharmony_ci        SET_DALTONIZATION_STATE,
110885b47fbSopenharmony_ci        SET_DALTONIZATION_COLORFILTER,
111885b47fbSopenharmony_ci        SET_CONTENT_TIMEOUT,
112885b47fbSopenharmony_ci        SET_BRIGHTNESS_DISCOUNT,
113885b47fbSopenharmony_ci        SET_AUDIO_BALANCE,
114885b47fbSopenharmony_ci        SET_CLICK_RESPONSE_TIME,
115885b47fbSopenharmony_ci        SET_IGNORE_REPEAT_CLICK_STATE,
116885b47fbSopenharmony_ci        SET_IGNORE_REPEAT_CLICK_TIME,
117885b47fbSopenharmony_ci        GET_SCREENMAGNIFIER_STATE,
118885b47fbSopenharmony_ci        GET_SHORTKEY_STATE,
119885b47fbSopenharmony_ci        GET_MOUSEKEY_STATE,
120885b47fbSopenharmony_ci        GET_SHORTKEY_TARGET,
121885b47fbSopenharmony_ci        GET_MOUSEKEY_AUTOCLICK,
122885b47fbSopenharmony_ci        GET_INVERTCOLOR_STATE,
123885b47fbSopenharmony_ci        GET_HIGHCONTRASTTEXT_STATE,
124885b47fbSopenharmony_ci        GET_DALTONIZATION_STATE,
125885b47fbSopenharmony_ci        GET_AUDIOMONO_STATE,
126885b47fbSopenharmony_ci        GET_ANIMATIONOFF_STATE,
127885b47fbSopenharmony_ci        GET_DALTONIZATION_COLORFILTER,
128885b47fbSopenharmony_ci        GET_CONTENT_TIMEOUT,
129885b47fbSopenharmony_ci        GET_BRIGHTNESS_DISCOUNT,
130885b47fbSopenharmony_ci        GET_AUDIO_BALANCE,
131885b47fbSopenharmony_ci        GET_CLICK_RESPONSE_TIME,
132885b47fbSopenharmony_ci        GET_IGNORE_REPEAT_CLICK_STATE,
133885b47fbSopenharmony_ci        GET_IGNORE_REPEAT_CLICK_TIME,
134885b47fbSopenharmony_ci        GET_ALL_CONFIGS,
135885b47fbSopenharmony_ci        REGISTER_ENABLE_ABILITY_LISTS_OBSERVER,
136885b47fbSopenharmony_ci        REGISTER_CONFIG_CALLBACK,
137885b47fbSopenharmony_ci        GET_WINDOW_AND_ELEMENT_ID,
138885b47fbSopenharmony_ci        GET_SCENE_BOARD_INNER_WINDOW_ID,
139885b47fbSopenharmony_ci        SET_SHORTKEY_MULTI_TARGET,
140885b47fbSopenharmony_ci        GET_SHORTKEY_MULTI_TARGET,
141885b47fbSopenharmony_ci        GET_ROOT_PARENT_ID,
142885b47fbSopenharmony_ci        GET_ALL_TREE_ID,
143885b47fbSopenharmony_ci        GET_FOCUSED_WINDOW_ID,
144885b47fbSopenharmony_ci        REMOVE_REQUEST_ID,
145885b47fbSopenharmony_ci
146885b47fbSopenharmony_ci        ON_STATE_CHANGED = 900,
147885b47fbSopenharmony_ci    };
148885b47fbSopenharmony_ci} // namespace Accessibility
149885b47fbSopenharmony_ci} // namespace OHOS
150885b47fbSopenharmony_ci#endif // ACCESSIBILITY_IPC_INTERFACE_CODE_H