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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 descriptionList, | 79 descriptionList, |
80 descriptionListTerm, | 80 descriptionListTerm, |
81 desktop, | 81 desktop, |
82 details, | 82 details, |
83 dialog, | 83 dialog, |
84 directory, | 84 directory, |
85 disclosureTriangle, | 85 disclosureTriangle, |
86 div, | 86 div, |
87 document, | 87 document, |
88 drawer, | 88 drawer, |
89 editableText, | |
90 embeddedObject, | 89 embeddedObject, |
91 figcaption, | 90 figcaption, |
92 figure, | 91 figure, |
93 footer, | 92 footer, |
94 form, | 93 form, |
95 grid, | 94 grid, |
96 group, | 95 group, |
97 growArea, | |
98 heading, | 96 heading, |
99 helpTag, | 97 helpTag, |
100 iframe, | 98 iframe, |
101 ignored, | 99 ignored, |
102 imageMapLink, | 100 imageMapLink, |
103 imageMap, | 101 imageMap, |
104 image, | 102 image, |
105 inlineTextBox, | 103 inlineTextBox, |
106 labelText, | 104 labelText, |
107 legend, | 105 legend, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 svgRoot, | 145 svgRoot, |
148 scrollArea, | 146 scrollArea, |
149 scrollBar, | 147 scrollBar, |
150 seamlessWebArea, | 148 seamlessWebArea, |
151 search, | 149 search, |
152 sheet, | 150 sheet, |
153 slider, | 151 slider, |
154 sliderThumb, | 152 sliderThumb, |
155 spinButtonPart, | 153 spinButtonPart, |
156 spinButton, | 154 spinButton, |
157 splitGroup, | |
158 splitter, | 155 splitter, |
159 staticText, | 156 staticText, |
160 status, | 157 status, |
161 systemWide, | 158 systemWide, |
162 tabGroup, | 159 tabGroup, |
163 tabList, | 160 tabList, |
164 tabPanel, | 161 tabPanel, |
165 tab, | 162 tab, |
166 tableHeaderContainer, | 163 tableHeaderContainer, |
167 table, | 164 table, |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 // tree with a placeholder root node; listen for the "loadComplete" event to | 353 // tree with a placeholder root node; listen for the "loadComplete" event to |
357 // get a notification that the tree has fully loaded (the previous root node | 354 // get a notification that the tree has fully loaded (the previous root node |
358 // reference will stop working at or before this point). | 355 // reference will stop working at or before this point). |
359 [nocompile] static void getTree(optional long tabId, RootCallback callback); | 356 [nocompile] static void getTree(optional long tabId, RootCallback callback); |
360 | 357 |
361 // Get the automation tree for the whole desktop which consists of all on | 358 // Get the automation tree for the whole desktop which consists of all on |
362 // screen views. Note this API is currently only supported on Chrome OS. | 359 // screen views. Note this API is currently only supported on Chrome OS. |
363 [nocompile] static void getDesktop(RootCallback callback); | 360 [nocompile] static void getDesktop(RootCallback callback); |
364 }; | 361 }; |
365 }; | 362 }; |
OLD | NEW |