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/apis/automation.idl. | 10 // chrome/common/extensions/api/automation.idl. |
11 // | |
12 // Explanation of the comments next to these events: | |
13 // | |
14 // Web: this event is only used in web content. Unless a specific platform | |
15 // is specified, it fires a native event on multiple platforms. | |
16 // | |
17 // Native: this event is only used in native UI. | |
18 // | |
19 // Implicit: it would be cleaner if we just updated the AX node | |
20 // and each platform fired the appropriate events to indicate which | |
21 // platform-specific attributes changed. | |
22 // | |
23 // If unspecified, the event is used across web and native on multiple | |
24 // platforms. | |
11 enum AXEvent { | 25 enum AXEvent { |
12 activedescendantchanged, | 26 activedescendantchanged, // Web |
13 alert, | 27 alert, |
14 aria_attribute_changed, | 28 aria_attribute_changed, // Implicit |
15 autocorrection_occured, | 29 autocorrection_occured, // Unknown: http://crbug.com/392498 |
16 blur, | 30 blur, // Remove: http://crbug.com/392502 |
17 checked_state_changed, | 31 checked_state_changed, // Implicit |
David Tseng
2014/07/09 18:41:44
Can we group with major headings like...
// Web.
f
dmazzoni
2014/07/09 19:14:48
Would you prefer that over alphabetical? I'm worri
| |
18 children_changed, | 32 children_changed, |
19 destroyed, | |
20 focus, | 33 focus, |
21 hide, | 34 hide, // Remove: http://crbug.com/392502 |
22 hover, | 35 hover, |
23 invalid_status_changed, | 36 invalid_status_changed, // Implicit |
24 layout_complete, | 37 layout_complete, // Web |
25 live_region_changed, | 38 live_region_changed, // Web |
26 load_complete, | 39 load_complete, // Web |
27 location_changed, | 40 location_changed, // Web |
28 menu_end, | 41 menu_end, // Native / Win |
29 menu_list_item_selected, | 42 menu_list_item_selected, // Web |
30 menu_list_value_changed, | 43 menu_list_value_changed, // Web |
31 menu_popup_end, | 44 menu_popup_end, // Native / Win |
32 menu_popup_start, | 45 menu_popup_start, // Native / Win |
33 menu_start, | 46 menu_start, // Native / Win |
34 row_collapsed, | 47 row_collapsed, // Web / Mac |
35 row_count_changed, | 48 row_count_changed, // Web / Mac |
36 row_expanded, | 49 row_expanded, // Web / Mac |
37 scroll_position_changed, | 50 scroll_position_changed, // Web |
38 scrolled_to_anchor, | 51 scrolled_to_anchor, // Web |
39 selected_children_changed, | 52 selected_children_changed, // Web |
40 selected_text_changed, | 53 selection, // Native |
41 selection_changed, | 54 selection_add, // Native |
42 show, | 55 selection_remove, // Native |
56 show, // Remove: http://crbug.com/392502 | |
43 text_changed, | 57 text_changed, |
44 text_inserted, | 58 text_selection_changed, |
45 text_removed, | |
46 value_changed | 59 value_changed |
47 }; | 60 }; |
48 | 61 |
49 enum AXRole { | 62 enum AXRole { |
50 alert_dialog, | 63 alert_dialog, |
51 alert, | 64 alert, |
52 annotation, | 65 annotation, |
53 application, | 66 application, |
54 article, | 67 article, |
55 banner, | 68 banner, |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
348 word_ends | 361 word_ends |
349 }; | 362 }; |
350 | 363 |
351 [cpp_enum_prefix_override="ax"] enum AXTextDirection { | 364 [cpp_enum_prefix_override="ax"] enum AXTextDirection { |
352 text_direction_lr, | 365 text_direction_lr, |
353 text_direction_rl, | 366 text_direction_rl, |
354 text_direction_tb, | 367 text_direction_tb, |
355 text_direction_bt | 368 text_direction_bt |
356 }; | 369 }; |
357 }; | 370 }; |
OLD | NEW |