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 ACCESSIBILITY_CONSTANTS_H
17#define ACCESSIBILITY_CONSTANTS_H
18
19#include <cstdint>
20#include <string>
21
22namespace OHOS {
23namespace Accessibility {
24// text move step
25extern const std::string MOVE_UNIT_CHARACTER;
26extern const std::string MOVE_UNIT_WORD;
27extern const std::string MOVE_UNIT_LINE;
28extern const std::string MOVE_UNIT_PAGE;
29extern const std::string MOVE_UNIT_PARAGRAPH;
30
31// Operation Arguments Type
32extern const std::string ACTION_ARGU_INVALID;
33extern const std::string ACTION_ARGU_SELECT_TEXT_START;
34extern const std::string ACTION_ARGU_SELECT_TEXT_END;
35extern const std::string ACTION_ARGU_SELECT_TEXT_INFORWARD;
36extern const std::string ACTION_ARGU_SET_OFFSET;
37extern const std::string ACTION_ARGU_HTML_ELEMENT;
38extern const std::string ACTION_ARGU_SET_TEXT;
39extern const std::string ACTION_ARGU_MOVE_UNIT;
40extern const std::string ACTION_ARGU_SPAN_ID;
41
42// HtmlItemType
43extern const std::string HTML_ITEM_INVALID;
44extern const std::string HTML_ITEM_LINK;
45extern const std::string HTML_ITEM_CONTROL;
46extern const std::string HTML_ITEM_GRAPHIC;
47extern const std::string HTML_ITEM_LIST_ITEM;
48extern const std::string HTML_ITEM_LIST;
49extern const std::string HTML_ITEM_TABLE;
50extern const std::string HTML_ITEM_COMBOX;
51extern const std::string HTML_ITEM_HEADING;
52extern const std::string HTML_ITEM_BUTTON;
53extern const std::string HTML_ITEM_CHECKBOX;
54extern const std::string HTML_ITEM_LANDMARK;
55extern const std::string HTML_ITEM_TEXT_FIELD;
56extern const std::string HTML_ITEM_FOCUSABLE;
57extern const std::string HTML_ITEM_H1;
58extern const std::string HTML_ITEM_H2;
59extern const std::string HTML_ITEM_H3;
60extern const std::string HTML_ITEM_H4;
61extern const std::string HTML_ITEM_H5;
62extern const std::string HTML_ITEM_H6;
63extern const std::string HTML_ITEM_UNKOWN;
64
65extern const std::string OHOS_PERMISSION_READ_ACCESSIBILITY_CONFIG;
66extern const std::string OHOS_PERMISSION_WRITE_ACCESSIBILITY_CONFIG;
67extern const std::string OHOS_PERMISSION_QUERY_ACCESSIBILITY_ELEMENT;
68
69extern const int32_t PREFETCH_PREDECESSORS;
70extern const int32_t PREFETCH_SIBLINGS;
71extern const int32_t PREFETCH_CHILDREN;
72extern const int32_t PREFETCH_RECURSIVE_CHILDREN;
73extern const int32_t GET_SOURCE_MODE;
74extern const int32_t UNDEFINED;
75extern const int32_t GET_SOURCE_PREFETCH_MODE;
76extern const int32_t UNDEFINED_SELECTION_INDEX;
77extern const int32_t UNDEFINED_ITEM_ID;
78extern const int32_t ROOT_ITEM_ID;
79extern const int32_t MAX_TEXT_LENGTH;
80extern const int32_t HOST_VIEW_ID;
81extern const int64_t ROOT_NODE_ID;
82
83// Focus types
84extern const int32_t FOCUS_TYPE_INVALID;
85extern const int32_t FOCUS_TYPE_INPUT;
86extern const int32_t FOCUS_TYPE_ACCESSIBILITY;
87
88// grid mode
89extern const int32_t SELECTION_MODE_NONE;
90extern const int32_t SELECTION_MODE_SINGLE;
91extern const int32_t SELECTION_MODE_MULTIPLE;
92
93extern const int32_t INVALID_WINDOW_ID;
94extern const int32_t INVALID_TREE_ID;
95extern const int32_t ANY_WINDOW_ID;
96extern const int32_t ACTIVE_WINDOW_ID;
97
98extern const uint32_t STATE_ACCESSIBILITY_ENABLED;
99extern const uint32_t STATE_EXPLORATION_ENABLED;
100extern const uint32_t STATE_CAPTION_ENABLED;
101extern const uint32_t STATE_KEYEVENT_ENABLED;
102extern const uint32_t STATE_GESTURE_ENABLED;
103extern const uint32_t STATE_SCREENMAGNIFIER_ENABLED;
104extern const uint32_t STATE_MOUSEKEY_ENABLED;
105extern const uint32_t STATE_SHORTKEY_ENABLED;
106extern const uint32_t STATE_HIGHCONTRAST_ENABLED;
107extern const uint32_t STATE_INVETRTCOLOR_ENABLED;
108extern const uint32_t STATE_ANIMATIONOFF_ENABLED;
109extern const uint32_t STATE_DALTONIZATION_STATE_ENABLED;
110extern const uint32_t STATE_AUDIOMONO_ENABLED;
111extern const uint32_t STATE_IGNORE_REPEAT_CLICK_ENABLED;
112extern const int32_t INVALID_CHANNEL_ID;
113} // namespace Accessibility
114} // namespace OHOS
115#endif // ACCESSIBILITY_CONSTANTS_H