Chromium Code Reviews| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 181 webView, | 181 webView, |
| 182 window | 182 window |
| 183 }; | 183 }; |
| 184 | 184 |
| 185 // Describes characteristics of an $(ref:automation.AutomationNode). | 185 // Describes characteristics of an $(ref:automation.AutomationNode). |
| 186 enum StateType { | 186 enum StateType { |
| 187 busy, | 187 busy, |
| 188 checked, | 188 checked, |
| 189 collapsed, | 189 collapsed, |
| 190 default, | 190 default, |
| 191 disabled, // ui/views only | 191 disabled, |
| 192 editable, | 192 editable, |
| 193 enabled, // content only | 193 enabled, |
|
dmazzoni
2016/07/19 20:34:35
Can you delete this now?
| |
| 194 expanded, | 194 expanded, |
| 195 focusable, | 195 focusable, |
| 196 focused, | 196 focused, |
| 197 haspopup, | 197 haspopup, |
| 198 horizontal, | 198 horizontal, |
| 199 hovered, | 199 hovered, |
| 200 invisible, | 200 invisible, |
| 201 linked, | 201 linked, |
| 202 multiline, | 202 multiline, |
| 203 multiselectable, | 203 multiselectable, |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 645 // Everything in the tree between the two node/offset pairs gets included | 645 // Everything in the tree between the two node/offset pairs gets included |
| 646 // in the selection. The anchor is where the user started the selection, | 646 // in the selection. The anchor is where the user started the selection, |
| 647 // while the focus is the point at which the selection gets extended | 647 // while the focus is the point at which the selection gets extended |
| 648 // e.g. when dragging with a mouse or using the keyboard. For nodes with | 648 // e.g. when dragging with a mouse or using the keyboard. For nodes with |
| 649 // the role staticText, the offset gives the character offset within | 649 // the role staticText, the offset gives the character offset within |
| 650 // the value where the selection starts or ends, respectively. | 650 // the value where the selection starts or ends, respectively. |
| 651 [nocompile] static void setDocumentSelection( | 651 [nocompile] static void setDocumentSelection( |
| 652 SetDocumentSelectionParams params); | 652 SetDocumentSelectionParams params); |
| 653 }; | 653 }; |
| 654 }; | 654 }; |
| OLD | NEW |