| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // These should be kept in sync with third_party/WebKit/public/web/WebAXEnums.h | 5 // These should be kept in sync with third_party/WebKit/public/web/WebAXEnums.h |
| 6 // until the Chromium and Blink trees are merged. | 6 // until the Chromium and Blink trees are merged. |
| 7 [camel_case_enum_to_string=true] namespace ui { | 7 [camel_case_enum_to_string=true] namespace ui { |
| 8 | 8 |
| 9 // For new entries to the following three enums, also add to | 9 // For new entries to the following three enums, also add to |
| 10 // chrome/common/extensions/api/automation.idl. | 10 // chrome/common/extensions/api/automation.idl. |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 | 226 |
| 227 // A change to the accessibility tree. | 227 // A change to the accessibility tree. |
| 228 enum AXMutation { | 228 enum AXMutation { |
| 229 node_created, | 229 node_created, |
| 230 subtree_created, | 230 subtree_created, |
| 231 node_changed, | 231 node_changed, |
| 232 node_removed | 232 node_removed |
| 233 }; | 233 }; |
| 234 | 234 |
| 235 [cpp_enum_prefix_override="ax_attr"] enum AXStringAttribute { | 235 [cpp_enum_prefix_override="ax_attr"] enum AXStringAttribute { |
| 236 // Document attributes. | |
| 237 doc_url, | |
| 238 doc_title, | |
| 239 doc_mimetype, | |
| 240 doc_doctype, | |
| 241 | |
| 242 // Attributes that could apply to any node. | |
| 243 access_key, | 236 access_key, |
| 244 action, | 237 action, |
| 245 auto_complete, | 238 auto_complete, |
| 246 container_live_relevant, | 239 container_live_relevant, |
| 247 container_live_status, | 240 container_live_status, |
| 248 description, | 241 description, |
| 249 display, | 242 display, |
| 250 help, | 243 help, |
| 251 html_tag, | 244 html_tag, |
| 252 // Only used when invalid_state == invalid_state_other. | 245 // Only used when invalid_state == invalid_state_other. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 264 [cpp_enum_prefix_override="ax_attr"] enum AXIntAttribute { | 257 [cpp_enum_prefix_override="ax_attr"] enum AXIntAttribute { |
| 265 // Scrollable container attributes. | 258 // Scrollable container attributes. |
| 266 scroll_x, | 259 scroll_x, |
| 267 scroll_x_min, | 260 scroll_x_min, |
| 268 scroll_x_max, | 261 scroll_x_max, |
| 269 scroll_y, | 262 scroll_y, |
| 270 scroll_y_min, | 263 scroll_y_min, |
| 271 scroll_y_max, | 264 scroll_y_max, |
| 272 | 265 |
| 273 // Attributes for retrieving the endpoints of a selection. | 266 // Attributes for retrieving the endpoints of a selection. |
| 274 anchor_object_id, | |
| 275 anchor_offset, | |
| 276 focus_object_id, | |
| 277 focus_offset, | |
| 278 text_sel_start, | 267 text_sel_start, |
| 279 text_sel_end, | 268 text_sel_end, |
| 280 | 269 |
| 281 // Table attributes. | 270 // Table attributes. |
| 282 table_row_count, | 271 table_row_count, |
| 283 table_column_count, | 272 table_column_count, |
| 284 table_header_id, | 273 table_header_id, |
| 285 | 274 |
| 286 // Table row attributes. | 275 // Table row attributes. |
| 287 table_row_index, | 276 table_row_index, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 298 table_cell_row_span, | 287 table_cell_row_span, |
| 299 sort_direction, | 288 sort_direction, |
| 300 | 289 |
| 301 // Tree control attributes. | 290 // Tree control attributes. |
| 302 hierarchical_level, | 291 hierarchical_level, |
| 303 | 292 |
| 304 // Relationships between this element and other elements. | 293 // Relationships between this element and other elements. |
| 305 title_ui_element, | 294 title_ui_element, |
| 306 activedescendant_id, | 295 activedescendant_id, |
| 307 | 296 |
| 308 // Uniquely identifies an AXTree. | |
| 309 tree_id, | |
| 310 | |
| 311 // Identifies a child tree which this node hosts. | 297 // Identifies a child tree which this node hosts. |
| 312 child_tree_id, | 298 child_tree_id, |
| 313 | 299 |
| 314 // Identifies the parent tree that hosts this tree's root node. | |
| 315 parent_tree_id, | |
| 316 | |
| 317 // Position or Number of items in current set of listitems or treeitems | 300 // Position or Number of items in current set of listitems or treeitems |
| 318 set_size, | 301 set_size, |
| 319 pos_in_set, | 302 pos_in_set, |
| 320 | 303 |
| 321 // In the case of AX_ROLE_COLOR_WELL, specifies the selected color. | 304 // In the case of AX_ROLE_COLOR_WELL, specifies the selected color. |
| 322 color_value, | 305 color_value, |
| 323 | 306 |
| 324 | 307 |
| 325 // Text attributes. | 308 // Text attributes. |
| 326 | 309 |
| 327 // Foreground and background color in RGBA. | 310 // Foreground and background color in RGBA. |
| 328 background_color, | 311 background_color, |
| 329 color, | 312 color, |
| 330 | 313 |
| 331 // Indicates if a form control has invalid input or | 314 // Indicates if a form control has invalid input or |
| 332 // if an element has an aria-invalid attribute. | 315 // if an element has an aria-invalid attribute. |
| 333 invalid_state, | 316 invalid_state, |
| 334 | 317 |
| 335 // Specifies the direction of the text, e.g., right-to-left. | 318 // Specifies the direction of the text, e.g., right-to-left. |
| 336 text_direction, | 319 text_direction, |
| 337 | 320 |
| 338 // Bold, italic, underline, etc. | 321 // Bold, italic, underline, etc. |
| 339 text_style | 322 text_style |
| 340 }; | 323 }; |
| 341 | 324 |
| 342 [cpp_enum_prefix_override="ax_attr"] enum AXFloatAttribute { | 325 [cpp_enum_prefix_override="ax_attr"] enum AXFloatAttribute { |
| 343 // Document attributes. | |
| 344 doc_loading_progress, | |
| 345 | |
| 346 // Range attributes. | 326 // Range attributes. |
| 347 value_for_range, | 327 value_for_range, |
| 348 min_value_for_range, | 328 min_value_for_range, |
| 349 max_value_for_range, | 329 max_value_for_range, |
| 350 | 330 |
| 351 // Text attributes. | 331 // Text attributes. |
| 352 // Font size is in pixels. | 332 // Font size is in pixels. |
| 353 font_size | 333 font_size |
| 354 }; | 334 }; |
| 355 | 335 |
| 356 [cpp_enum_prefix_override="ax_attr"] enum AXBoolAttribute { | 336 [cpp_enum_prefix_override="ax_attr"] enum AXBoolAttribute { |
| 357 // Document attributes. | |
| 358 doc_loaded, | |
| 359 | |
| 360 // True if a checkbox or radio button is in the "mixed" state. | 337 // True if a checkbox or radio button is in the "mixed" state. |
| 361 button_mixed, | 338 button_mixed, |
| 362 | 339 |
| 363 // Live region attributes. | 340 // Live region attributes. |
| 364 container_live_atomic, | 341 container_live_atomic, |
| 365 container_live_busy, | 342 container_live_busy, |
| 366 live_atomic, | 343 live_atomic, |
| 367 live_busy, | 344 live_busy, |
| 368 | 345 |
| 369 // ARIA readonly flag. | 346 // ARIA readonly flag. |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 }; | 422 }; |
| 446 | 423 |
| 447 [cpp_enum_prefix_override="ax"] enum AXSortDirection { | 424 [cpp_enum_prefix_override="ax"] enum AXSortDirection { |
| 448 sort_direction_unsorted, | 425 sort_direction_unsorted, |
| 449 sort_direction_ascending, | 426 sort_direction_ascending, |
| 450 sort_direction_descending, | 427 sort_direction_descending, |
| 451 sort_direction_other | 428 sort_direction_other |
| 452 }; | 429 }; |
| 453 | 430 |
| 454 }; | 431 }; |
| OLD | NEW |