| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 link, | 110 link, |
| 111 listBoxOption, | 111 listBoxOption, |
| 112 listBox, | 112 listBox, |
| 113 listItem, | 113 listItem, |
| 114 listMarker, | 114 listMarker, |
| 115 list, | 115 list, |
| 116 locationBar, | 116 locationBar, |
| 117 log, | 117 log, |
| 118 main, | 118 main, |
| 119 marquee, | 119 marquee, |
| 120 mathElement, | |
| 121 math, | 120 math, |
| 122 matte, | 121 matte, |
| 123 menuBar, | 122 menuBar, |
| 124 menuButton, | 123 menuButton, |
| 125 menuItem, | 124 menuItem, |
| 126 menuItemCheckBox, | 125 menuItemCheckBox, |
| 127 menuItemRadio, | 126 menuItemRadio, |
| 128 menuListOption, | 127 menuListOption, |
| 129 menuListPopup, | 128 menuListPopup, |
| 130 menu, | 129 menu, |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 // tree with a placeholder root node; listen for the "loadComplete" event to | 329 // tree with a placeholder root node; listen for the "loadComplete" event to |
| 331 // get a notification that the tree has fully loaded (the previous root node | 330 // get a notification that the tree has fully loaded (the previous root node |
| 332 // reference will stop working at or before this point). | 331 // reference will stop working at or before this point). |
| 333 [nocompile] static void getTree(optional long tabId, RootCallback callback); | 332 [nocompile] static void getTree(optional long tabId, RootCallback callback); |
| 334 | 333 |
| 335 // Get the automation tree for the whole desktop which consists of all on | 334 // Get the automation tree for the whole desktop which consists of all on |
| 336 // screen views. Note this API is currently only supported on Chrome OS. | 335 // screen views. Note this API is currently only supported on Chrome OS. |
| 337 [nocompile] static void getDesktop(RootCallback callback); | 336 [nocompile] static void getDesktop(RootCallback callback); |
| 338 }; | 337 }; |
| 339 }; | 338 }; |
| OLD | NEW |