| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 canvas, | 64 canvas, |
| 65 cell, | 65 cell, |
| 66 checkBox, | 66 checkBox, |
| 67 client, | 67 client, |
| 68 colorWell, | 68 colorWell, |
| 69 columnHeader, | 69 columnHeader, |
| 70 column, | 70 column, |
| 71 comboBox, | 71 comboBox, |
| 72 complementary, | 72 complementary, |
| 73 contentInfo, | 73 contentInfo, |
| 74 date, |
| 75 dateTime, |
| 74 definition, | 76 definition, |
| 75 descriptionListDetail, | 77 descriptionListDetail, |
| 76 descriptionList, | 78 descriptionList, |
| 77 descriptionListTerm, | 79 descriptionListTerm, |
| 78 desktop, | 80 desktop, |
| 79 details, | 81 details, |
| 80 dialog, | 82 dialog, |
| 81 directory, | 83 directory, |
| 82 disclosureTriangle, | 84 disclosureTriangle, |
| 83 div, | 85 div, |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 status, | 159 status, |
| 158 systemWide, | 160 systemWide, |
| 159 tabGroup, | 161 tabGroup, |
| 160 tabList, | 162 tabList, |
| 161 tabPanel, | 163 tabPanel, |
| 162 tab, | 164 tab, |
| 163 tableHeaderContainer, | 165 tableHeaderContainer, |
| 164 table, | 166 table, |
| 165 textArea, | 167 textArea, |
| 166 textField, | 168 textField, |
| 169 time, |
| 167 timer, | 170 timer, |
| 168 titleBar, | 171 titleBar, |
| 169 toggleButton, | 172 toggleButton, |
| 170 toolbar, | 173 toolbar, |
| 171 treeGrid, | 174 treeGrid, |
| 172 treeItem, | 175 treeItem, |
| 173 tree, | 176 tree, |
| 174 unknown, | 177 unknown, |
| 175 tooltip, | 178 tooltip, |
| 176 valueIndicator, | 179 valueIndicator, |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 // tree with a placeholder root node; listen for the "loadComplete" event to | 327 // tree with a placeholder root node; listen for the "loadComplete" event to |
| 325 // get a notification that the tree has fully loaded (the previous root node | 328 // get a notification that the tree has fully loaded (the previous root node |
| 326 // reference will stop working at or before this point). | 329 // reference will stop working at or before this point). |
| 327 [nocompile] static void getTree(optional long tabId, RootCallback callback); | 330 [nocompile] static void getTree(optional long tabId, RootCallback callback); |
| 328 | 331 |
| 329 // Get the automation tree for the whole desktop which consists of all on | 332 // Get the automation tree for the whole desktop which consists of all on |
| 330 // screen views. Note this API is currently only supported on Chrome OS. | 333 // screen views. Note this API is currently only supported on Chrome OS. |
| 331 [nocompile] static void getDesktop(RootCallback callback); | 334 [nocompile] static void getDesktop(RootCallback callback); |
| 332 }; | 335 }; |
| 333 }; | 336 }; |
| OLD | NEW |