| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 checked, | 182 checked, |
| 183 collapsed, | 183 collapsed, |
| 184 default, | 184 default, |
| 185 disabled, // ui/views only | 185 disabled, // ui/views only |
| 186 editable, // ui/views only | 186 editable, // ui/views only |
| 187 enabled, // content only | 187 enabled, // content only |
| 188 expanded, | 188 expanded, |
| 189 focusable, | 189 focusable, |
| 190 focused, | 190 focused, |
| 191 haspopup, | 191 haspopup, |
| 192 horizontal, |
| 192 hovered, | 193 hovered, |
| 193 indeterminate, | 194 indeterminate, |
| 194 invisible, | 195 invisible, |
| 195 linked, | 196 linked, |
| 196 multiselectable, | 197 multiselectable, |
| 197 offscreen, | 198 offscreen, |
| 198 pressed, | 199 pressed, |
| 199 protected, | 200 protected, |
| 200 readOnly, | 201 readOnly, |
| 201 required, | 202 required, |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 // tree with a placeholder root node; listen for the "loadComplete" event to | 483 // tree with a placeholder root node; listen for the "loadComplete" event to |
| 483 // get a notification that the tree has fully loaded (the previous root node | 484 // get a notification that the tree has fully loaded (the previous root node |
| 484 // reference will stop working at or before this point). | 485 // reference will stop working at or before this point). |
| 485 [nocompile] static void getTree(optional long tabId, RootCallback callback); | 486 [nocompile] static void getTree(optional long tabId, RootCallback callback); |
| 486 | 487 |
| 487 // Get the automation tree for the whole desktop which consists of all on | 488 // Get the automation tree for the whole desktop which consists of all on |
| 488 // screen views. Note this API is currently only supported on Chrome OS. | 489 // screen views. Note this API is currently only supported on Chrome OS. |
| 489 [nocompile] static void getDesktop(RootCallback callback); | 490 [nocompile] static void getDesktop(RootCallback callback); |
| 490 }; | 491 }; |
| 491 }; | 492 }; |
| OLD | NEW |