Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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. | |
| 4 | |
| 5 // These should be kept in sync with third_party/WebKit/public/web/WebAXEnums.h | |
| 6 // until the Chromium and Blink trees are merged. | |
| 7 namespace ui { | |
| 8 enum AXEvent { | |
| 9 activedescendantchanged, | |
| 10 alert, | |
| 11 aria_attribute_changed, | |
| 12 autocorrection_occured, | |
| 13 blur, | |
| 14 checked_state_changed, | |
| 15 children_changed, | |
| 16 focus, | |
| 17 hide, | |
| 18 invalid_status_changed, | |
| 19 layout_complete, | |
| 20 live_region_changed, | |
| 21 load_complete, | |
| 22 location_changed, | |
| 23 menu_list_item_selected, | |
| 24 menu_list_value_changed, | |
| 25 row_collapsed, | |
| 26 row_count_changed, | |
| 27 row_expanded, | |
| 28 scrolled_to_anchor, | |
| 29 selected_children_changed, | |
| 30 selected_text_changed, | |
| 31 show, | |
| 32 text_changed, | |
| 33 text_inserted, | |
| 34 text_removed, | |
| 35 value_changed | |
| 36 }; | |
| 37 | |
| 38 enum AXRole { | |
| 39 unused, | |
| 40 alert_dialog, | |
| 41 alert, | |
| 42 annotation, | |
| 43 application, | |
| 44 article, | |
| 45 banner, | |
| 46 browser, | |
| 47 busy_indicator, | |
| 48 button, | |
| 49 canvas, | |
| 50 cell, | |
| 51 check_box, | |
| 52 color_well, | |
| 53 column_header, | |
| 54 column, | |
| 55 combo_box, | |
| 56 complementary, | |
| 57 content_info, | |
| 58 definition, | |
| 59 description_list_detail, | |
| 60 description_list_term, | |
| 61 dialog, | |
| 62 directory, | |
| 63 disclosure_triangle, | |
| 64 div, | |
| 65 document, | |
| 66 drawer, | |
| 67 editable_text, | |
| 68 footer, | |
| 69 form, | |
| 70 grid, | |
| 71 group, | |
| 72 grow_area, | |
| 73 heading, | |
| 74 help_tag, | |
| 75 horizontal_rule, | |
| 76 ignored, | |
| 77 image_map_link, | |
| 78 image_map, | |
| 79 image, | |
| 80 incrementor, | |
| 81 inline_text_box, | |
| 82 label_text, | |
| 83 legend, | |
| 84 link, | |
| 85 list_box_option, | |
| 86 list_box, | |
| 87 list_item, | |
| 88 list_marker, | |
| 89 list, | |
| 90 log, | |
| 91 main, | |
| 92 marquee, | |
| 93 math_element, | |
| 94 math, | |
| 95 matte, | |
| 96 menu_bar, | |
| 97 menu_button, | |
| 98 menu_item, | |
| 99 menu_list_option, | |
| 100 menu_list_popup, | |
| 101 menu, | |
| 102 navigation, | |
| 103 note, | |
| 104 outline, | |
| 105 paragraph, | |
| 106 pop_up_button, | |
| 107 presentational, | |
| 108 progress_indicator, | |
| 109 radio_button, | |
| 110 radio_group, | |
| 111 region, | |
| 112 root_web_area, | |
| 113 row_header, | |
| 114 row, | |
| 115 ruler_marker, | |
| 116 ruler, | |
| 117 svg_root, | |
| 118 scroll_area, | |
| 119 scroll_bar, | |
| 120 seamless_web_area, | |
| 121 search, | |
| 122 sheet, | |
| 123 slider, | |
| 124 slider_thumb, | |
| 125 spin_button_part, | |
| 126 spin_button, | |
| 127 split_group, | |
| 128 splitter, | |
| 129 static_text, | |
| 130 status, | |
| 131 system_wide, | |
| 132 tab_group, | |
| 133 tab_list, | |
| 134 tab_panel, | |
| 135 tab, | |
| 136 table_header_container, | |
| 137 table, | |
| 138 text_area, | |
| 139 text_field, | |
| 140 timer, | |
| 141 toggle_button, | |
| 142 toolbar, | |
| 143 tree_grid, | |
| 144 tree_item, | |
| 145 tree, | |
| 146 unknown, | |
| 147 tooltip, | |
| 148 value_indicator, | |
| 149 web_area, | |
| 150 window | |
| 151 }; | |
| 152 | |
| 153 enum AXState { | |
| 154 busy, | |
| 155 checked, | |
| 156 collapsed, | |
| 157 enabled, | |
| 158 expanded, | |
| 159 focusable, | |
| 160 focused, | |
| 161 haspopup, | |
| 162 hovered, | |
| 163 indeterminate, | |
| 164 invisible, | |
| 165 linked, | |
| 166 multiselectable, | |
| 167 offscreen, | |
| 168 pressed, | |
| 169 protected, | |
| 170 read_only, | |
| 171 required, | |
| 172 selectable, | |
| 173 selected, | |
| 174 vertical, | |
| 175 visited | |
| 176 }; | |
| 177 | |
| 178 [absolute] enum AXStringAttribute { | |
|
not at google - send to devlin
2014/01/23 00:04:40
what does [absolute] mean? I can see you updating
David Tseng
2014/01/23 00:31:43
It means do not use the enum name as a prefix for
not at google - send to devlin
2014/01/23 00:38:07
Literal looks better - but is there a reason you c
David Tseng
2014/01/23 00:54:17
I was just trying to minimize the number of actual
not at google - send to devlin
2014/01/23 00:56:48
Ah right. I don't mind something like this then.
David Tseng
2014/01/23 17:34:52
Mostly because on some platforms like Windows, we
| |
| 179 // Document attributes. | |
| 180 ax_attr_doc_url, | |
| 181 ax_attr_doc_title, | |
| 182 ax_attr_doc_mimetype, | |
| 183 ax_attr_doc_doctype, | |
| 184 | |
| 185 // Attributes that could apply to any node. | |
| 186 ax_attr_access_key, | |
| 187 ax_attr_action, | |
| 188 ax_attr_container_live_relevant, | |
| 189 ax_attr_container_live_status, | |
| 190 ax_attr_description, | |
| 191 ax_attr_display, | |
| 192 ax_attr_help, | |
| 193 ax_attr_html_tag, | |
| 194 ax_attr_name, | |
| 195 ax_attr_live_relevant, | |
| 196 ax_attr_live_status, | |
| 197 ax_attr_role, | |
| 198 ax_attr_shortcut, | |
| 199 ax_attr_url, | |
| 200 ax_attr_value | |
| 201 }; | |
| 202 | |
| 203 [absolute] enum AXIntAttribute { | |
| 204 // Scrollable container attributes. | |
| 205 ax_attr_scroll_x, | |
| 206 ax_attr_scroll_x_min, | |
| 207 ax_attr_scroll_x_max, | |
| 208 ax_attr_scroll_y, | |
| 209 ax_attr_scroll_y_min, | |
| 210 ax_attr_scroll_y_max, | |
| 211 | |
| 212 // Editable text attributes. | |
| 213 ax_attr_text_sel_start, | |
| 214 ax_attr_text_sel_end, | |
| 215 | |
| 216 // Table attributes. | |
| 217 ax_attr_table_row_count, | |
| 218 ax_attr_table_column_count, | |
| 219 ax_attr_table_header_id, | |
| 220 | |
| 221 // Table row attributes. | |
| 222 ax_attr_table_row_index, | |
| 223 ax_attr_table_row_header_id, | |
| 224 | |
| 225 // Table column attributes. | |
| 226 ax_attr_table_column_index, | |
| 227 ax_attr_table_column_header_id, | |
| 228 | |
| 229 // Table cell attributes. | |
| 230 ax_attr_table_cell_column_index, | |
| 231 ax_attr_table_cell_column_span, | |
| 232 ax_attr_table_cell_row_index, | |
| 233 ax_attr_table_cell_row_span, | |
| 234 | |
| 235 // Tree control attributes. | |
| 236 ax_attr_hierarchical_level, | |
| 237 | |
| 238 // Relationships between this element and other elements. | |
| 239 ax_attr_title_ui_element, | |
| 240 | |
| 241 // Color value for AX_ROLE_COLOR_WELL, each component is 0..255 | |
| 242 ax_attr_color_value_red, | |
| 243 ax_attr_color_value_green, | |
| 244 ax_attr_color_value_blue, | |
| 245 | |
| 246 // Inline text attributes. | |
| 247 ax_attr_text_direction | |
| 248 }; | |
| 249 | |
| 250 [absolute] enum AXFloatAttribute { | |
| 251 // Document attributes. | |
| 252 ax_attr_doc_loading_progress, | |
| 253 | |
| 254 // Range attributes. | |
| 255 ax_attr_value_for_range, | |
| 256 ax_attr_min_value_for_range, | |
| 257 ax_attr_max_value_for_range | |
| 258 }; | |
| 259 | |
| 260 [absolute] enum AXBoolAttribute { | |
| 261 // Document attributes. | |
| 262 ax_attr_doc_loaded, | |
| 263 | |
| 264 // True if a checkbox or radio button is in the "mixed" state. | |
| 265 ax_attr_button_mixed, | |
| 266 | |
| 267 // Live region attributes. | |
| 268 ax_attr_container_live_atomic, | |
| 269 ax_attr_container_live_busy, | |
| 270 ax_attr_live_atomic, | |
| 271 ax_attr_live_busy, | |
| 272 | |
| 273 // ARIA readonly flag. | |
| 274 ax_attr_aria_readonly, | |
| 275 | |
| 276 // Writeable attributes | |
| 277 ax_attr_can_set_value, | |
| 278 | |
| 279 // If this is set, all of the other fields in this struct should | |
| 280 // be ignored and only the locations should change. | |
| 281 ax_attr_update_location_only, | |
| 282 | |
| 283 // Set on a canvas element if it has fallback content. | |
| 284 ax_attr_canvas_has_fallback | |
| 285 }; | |
| 286 | |
| 287 [absolute] enum AXIntListAttribute { | |
| 288 // Ids of nodes that are children of this node logically, but are | |
| 289 // not children of this node in the tree structure. As an example, | |
| 290 // a table cell is a child of a row, and an 'indirect' child of a | |
| 291 // column. | |
| 292 ax_attr_indirect_child_ids, | |
| 293 | |
| 294 // Character indices where line breaks occur. | |
| 295 ax_attr_line_breaks, | |
| 296 | |
| 297 // For a table, the cell ids in row-major order, with duplicate entries | |
| 298 // when there's a rowspan or colspan, and with -1 for missing cells. | |
| 299 // There are always exactly rows * columns entries. | |
| 300 ax_attr_cell_ids, | |
| 301 | |
| 302 // For a table, the unique cell ids in row-major order of their first | |
| 303 // occurrence. | |
| 304 ax_attr_unique_cell_ids, | |
| 305 | |
| 306 // For inline text. This is the pixel position of the end of this | |
| 307 // character within the bounding rectangle of this object, in the | |
| 308 // direction given by AX_ATTR_TEXT_DIRECTION. For example, for left-to-right | |
| 309 // text, the first offset is the right coordinate of the first character | |
| 310 // within the object's bounds, the second offset is the right coordinate | |
| 311 // of the second character, and so on. | |
| 312 ax_attr_character_offsets, | |
| 313 | |
| 314 // For inline text. These int lists must be the same size; they represent | |
| 315 // the start and end character index of each word within this text. | |
| 316 ax_attr_word_starts, | |
| 317 ax_attr_word_ends | |
| 318 }; | |
| 319 | |
| 320 [absolute] enum AXTextDirection { | |
| 321 ax_text_direction_lr, | |
| 322 ax_text_direction_rl, | |
| 323 ax_text_direction_tb, | |
| 324 ax_text_direction_bt | |
| 325 }; | |
| 326 }; | |
| OLD | NEW |