| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 embeddedObject, | 90 embeddedObject, |
| 91 figcaption, | 91 figcaption, |
| 92 figure, | 92 figure, |
| 93 footer, | 93 footer, |
| 94 form, | 94 form, |
| 95 grid, | 95 grid, |
| 96 group, | 96 group, |
| 97 growArea, | 97 growArea, |
| 98 heading, | 98 heading, |
| 99 helpTag, | 99 helpTag, |
| 100 horizontalRule, | |
| 101 iframe, | 100 iframe, |
| 102 ignored, | 101 ignored, |
| 103 imageMapLink, | 102 imageMapLink, |
| 104 imageMap, | 103 imageMap, |
| 105 image, | 104 image, |
| 106 incrementor, | 105 incrementor, |
| 107 inlineTextBox, | 106 inlineTextBox, |
| 108 labelText, | 107 labelText, |
| 109 legend, | 108 legend, |
| 110 link, | 109 link, |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 // tree with a placeholder root node; listen for the "loadComplete" event to | 318 // tree with a placeholder root node; listen for the "loadComplete" event to |
| 320 // get a notification that the tree has fully loaded (the previous root node | 319 // get a notification that the tree has fully loaded (the previous root node |
| 321 // reference will stop working at or before this point). | 320 // reference will stop working at or before this point). |
| 322 [nocompile] static void getTree(optional long tabId, RootCallback callback); | 321 [nocompile] static void getTree(optional long tabId, RootCallback callback); |
| 323 | 322 |
| 324 // Get the automation tree for the whole desktop which consists of all on | 323 // Get the automation tree for the whole desktop which consists of all on |
| 325 // screen views. Note this API is currently only supported on Chrome OS. | 324 // screen views. Note this API is currently only supported on Chrome OS. |
| 326 [nocompile] static void getDesktop(RootCallback callback); | 325 [nocompile] static void getDesktop(RootCallback callback); |
| 327 }; | 326 }; |
| 328 }; | 327 }; |
| OLD | NEW |