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 // The <code>chrome.automation</code> API allows developers to access the | 5 // The <code>chrome.automation</code> API allows developers to access the |
6 // automation (accessibility) tree for the browser. The tree resembles the DOM | 6 // automation (accessibility) tree for the browser. The tree resembles the DOM |
7 // tree, but only exposes the <em>semantic</em> structure of a page. It can be | 7 // tree, but only exposes the <em>semantic</em> structure of a page. It can be |
8 // used to programmatically interact with a page by examining names, roles, and | 8 // used to programmatically interact with a page by examining names, roles, and |
9 // states, listening for events, and performing actions on nodes. | 9 // states, listening for events, and performing actions on nodes. |
10 [nocompile] namespace automation { | 10 [nocompile] namespace automation { |
(...skipping 22 matching lines...) Expand all Loading... |
33 menuListValueChanged, | 33 menuListValueChanged, |
34 menuPopupEnd, | 34 menuPopupEnd, |
35 menuPopupStart, | 35 menuPopupStart, |
36 menuStart, | 36 menuStart, |
37 rowCollapsed, | 37 rowCollapsed, |
38 rowCountChanged, | 38 rowCountChanged, |
39 rowExpanded, | 39 rowExpanded, |
40 scrollPositionChanged, | 40 scrollPositionChanged, |
41 scrolledToAnchor, | 41 scrolledToAnchor, |
42 selectedChildrenChanged, | 42 selectedChildrenChanged, |
43 selectedTextChanged, | |
44 selection, | 43 selection, |
45 selectionAdd, | 44 selectionAdd, |
46 selectionRemove, | 45 selectionRemove, |
47 show, | 46 show, |
48 textChanged, | 47 textChanged, |
49 textInserted, | |
50 textRemoved, | |
51 textSelectionChanged, | 48 textSelectionChanged, |
52 valueChanged | 49 valueChanged |
53 }; | 50 }; |
54 | 51 |
55 // Describes the purpose of an $(ref:automation.AutomationNode). | 52 // Describes the purpose of an $(ref:automation.AutomationNode). |
56 enum RoleType { | 53 enum RoleType { |
57 alertDialog, | 54 alertDialog, |
58 alert, | 55 alert, |
59 annotation, | 56 annotation, |
60 application, | 57 application, |
(...skipping 10 matching lines...) Expand all Loading... |
71 colorWell, | 68 colorWell, |
72 columnHeader, | 69 columnHeader, |
73 column, | 70 column, |
74 comboBox, | 71 comboBox, |
75 complementary, | 72 complementary, |
76 contentInfo, | 73 contentInfo, |
77 definition, | 74 definition, |
78 descriptionListDetail, | 75 descriptionListDetail, |
79 descriptionListTerm, | 76 descriptionListTerm, |
80 desktop, | 77 desktop, |
| 78 details, |
81 dialog, | 79 dialog, |
82 directory, | 80 directory, |
83 disclosureTriangle, | 81 disclosureTriangle, |
84 div, | 82 div, |
85 document, | 83 document, |
86 drawer, | 84 drawer, |
87 editableText, | 85 editableText, |
88 embeddedObject, | 86 embeddedObject, |
| 87 figcaption, |
| 88 figure, |
89 footer, | 89 footer, |
90 form, | 90 form, |
91 grid, | 91 grid, |
92 group, | 92 group, |
93 growArea, | 93 growArea, |
94 heading, | 94 heading, |
95 helpTag, | 95 helpTag, |
96 horizontalRule, | 96 horizontalRule, |
97 iframe, | 97 iframe, |
98 ignored, | 98 ignored, |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 // tree with a placeholder root node; listen for the "loadComplete" event to | 321 // tree with a placeholder root node; listen for the "loadComplete" event to |
322 // get a notification that the tree has fully loaded (the previous root node | 322 // get a notification that the tree has fully loaded (the previous root node |
323 // reference will stop working at or before this point). | 323 // reference will stop working at or before this point). |
324 [nocompile] static void getTree(optional long tabId, RootCallback callback); | 324 [nocompile] static void getTree(optional long tabId, RootCallback callback); |
325 | 325 |
326 // Get the automation tree for the whole desktop which consists of all on | 326 // Get the automation tree for the whole desktop which consists of all on |
327 // screen views. Note this API is currently only supported on Chrome OS. | 327 // screen views. Note this API is currently only supported on Chrome OS. |
328 [nocompile] static void getDesktop(RootCallback callback); | 328 [nocompile] static void getDesktop(RootCallback callback); |
329 }; | 329 }; |
330 }; | 330 }; |
OLD | NEW |