1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // These should be kept in sync with third_party/WebKit/public/web/WebAXEnums.h
6 // until the Chromium and Blink trees are merged.
9 activedescendantchanged
,
11 aria_attribute_changed
,
12 autocorrection_occured
,
14 checked_state_changed
,
18 invalid_status_changed
,
23 menu_list_item_selected
,
24 menu_list_value_changed
,
29 selected_children_changed
,
30 selected_text_changed
,
58 description_list_detail
,
59 description_list_term
,
135 table_header_container
,
177 [cpp_omit_enum_type
] enum AXStringAttribute
{
178 // Document attributes.
181 ax_attr_doc_mimetype
,
184 // Attributes that could apply to any node.
187 ax_attr_container_live_relevant
,
188 ax_attr_container_live_status
,
194 ax_attr_live_relevant
,
202 [cpp_omit_enum_type
] enum AXIntAttribute
{
203 // Scrollable container attributes.
205 ax_attr_scroll_x_min
,
206 ax_attr_scroll_x_max
,
208 ax_attr_scroll_y_min
,
209 ax_attr_scroll_y_max
,
211 // Editable text attributes.
212 ax_attr_text_sel_start
,
213 ax_attr_text_sel_end
,
216 ax_attr_table_row_count
,
217 ax_attr_table_column_count
,
218 ax_attr_table_header_id
,
220 // Table row attributes.
221 ax_attr_table_row_index
,
222 ax_attr_table_row_header_id
,
224 // Table column attributes.
225 ax_attr_table_column_index
,
226 ax_attr_table_column_header_id
,
228 // Table cell attributes.
229 ax_attr_table_cell_column_index
,
230 ax_attr_table_cell_column_span
,
231 ax_attr_table_cell_row_index
,
232 ax_attr_table_cell_row_span
,
234 // Tree control attributes.
235 ax_attr_hierarchical_level
,
237 // Relationships between this element and other elements.
238 ax_attr_title_ui_element
,
240 // Color value for AX_ROLE_COLOR_WELL, each component is 0..255
241 ax_attr_color_value_red
,
242 ax_attr_color_value_green
,
243 ax_attr_color_value_blue
,
245 // Inline text attributes.
246 ax_attr_text_direction
249 [cpp_omit_enum_type
] enum AXFloatAttribute
{
250 // Document attributes.
251 ax_attr_doc_loading_progress
,
254 ax_attr_value_for_range
,
255 ax_attr_min_value_for_range
,
256 ax_attr_max_value_for_range
259 [cpp_omit_enum_type
] enum AXBoolAttribute
{
260 // Document attributes.
263 // True if a checkbox or radio button is in the "mixed" state.
264 ax_attr_button_mixed
,
266 // Live region attributes.
267 ax_attr_container_live_atomic
,
268 ax_attr_container_live_busy
,
272 // ARIA readonly flag.
273 ax_attr_aria_readonly
,
275 // Writeable attributes
276 ax_attr_can_set_value
,
278 // If this is set, all of the other fields in this struct should
279 // be ignored and only the locations should change.
280 ax_attr_update_location_only
,
282 // Set on a canvas element if it has fallback content.
283 ax_attr_canvas_has_fallback
286 [cpp_omit_enum_type
] enum AXIntListAttribute
{
287 // Ids of nodes that are children of this node logically, but are
288 // not children of this node in the tree structure. As an example,
289 // a table cell is a child of a row, and an 'indirect' child of a
291 ax_attr_indirect_child_ids
,
293 // Character indices where line breaks occur.
296 // For a table, the cell ids in row-major order, with duplicate entries
297 // when there's a rowspan or colspan, and with -1 for missing cells.
298 // There are always exactly rows * columns entries.
301 // For a table, the unique cell ids in row-major order of their first
303 ax_attr_unique_cell_ids
,
305 // For inline text. This is the pixel position of the end of this
306 // character within the bounding rectangle of this object, in the
307 // direction given by AX_ATTR_TEXT_DIRECTION. For example, for left-to-right
308 // text, the first offset is the right coordinate of the first character
309 // within the object's bounds, the second offset is the right coordinate
310 // of the second character, and so on.
311 ax_attr_character_offsets
,
313 // For inline text. These int lists must be the same size; they represent
314 // the start and end character index of each word within this text.
319 [cpp_omit_enum_type
] enum AXTextDirection
{
320 ax_text_direction_lr
,
321 ax_text_direction_rl
,
322 ax_text_direction_tb
,