| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 selectionRemove, | 46 selectionRemove, |
| 47 show, | 47 show, |
| 48 textChanged, | 48 textChanged, |
| 49 textSelectionChanged, | 49 textSelectionChanged, |
| 50 treeChanged, | 50 treeChanged, |
| 51 valueChanged | 51 valueChanged |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 // Describes the purpose of an $(ref:automation.AutomationNode). | 54 // Describes the purpose of an $(ref:automation.AutomationNode). |
| 55 enum RoleType { | 55 enum RoleType { |
| 56 abbr, |
| 56 alertDialog, | 57 alertDialog, |
| 57 alert, | 58 alert, |
| 58 annotation, | 59 annotation, |
| 59 application, | 60 application, |
| 60 article, | 61 article, |
| 61 banner, | 62 banner, |
| 62 blockquote, | 63 blockquote, |
| 63 busyIndicator, | 64 busyIndicator, |
| 64 button, | 65 button, |
| 65 buttonDropDown, | 66 buttonDropDown, |
| (...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 // Everything in the tree between the two node/offset pairs gets included | 632 // Everything in the tree between the two node/offset pairs gets included |
| 632 // in the selection. The anchor is where the user started the selection, | 633 // in the selection. The anchor is where the user started the selection, |
| 633 // while the focus is the point at which the selection gets extended | 634 // while the focus is the point at which the selection gets extended |
| 634 // e.g. when dragging with a mouse or using the keyboard. For nodes with | 635 // e.g. when dragging with a mouse or using the keyboard. For nodes with |
| 635 // the role staticText, the offset gives the character offset within | 636 // the role staticText, the offset gives the character offset within |
| 636 // the value where the selection starts or ends, respectively. | 637 // the value where the selection starts or ends, respectively. |
| 637 [nocompile] static void setDocumentSelection( | 638 [nocompile] static void setDocumentSelection( |
| 638 SetDocumentSelectionParams params); | 639 SetDocumentSelectionParams params); |
| 639 }; | 640 }; |
| 640 }; | 641 }; |
| OLD | NEW |