| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 tooltip, | 193 tooltip, |
| 194 video, | 194 video, |
| 195 webArea, | 195 webArea, |
| 196 webView, | 196 webView, |
| 197 window | 197 window |
| 198 }; | 198 }; |
| 199 | 199 |
| 200 // Describes characteristics of an $(ref:automation.AutomationNode). | 200 // Describes characteristics of an $(ref:automation.AutomationNode). |
| 201 enum StateType { | 201 enum StateType { |
| 202 busy, | 202 busy, |
| 203 checked, | |
| 204 collapsed, | 203 collapsed, |
| 205 default, | 204 default, |
| 206 disabled, | 205 disabled, |
| 207 editable, | 206 editable, |
| 208 expanded, | 207 expanded, |
| 209 focusable, | 208 focusable, |
| 210 focused, | 209 focused, |
| 211 haspopup, | 210 haspopup, |
| 212 horizontal, | 211 horizontal, |
| 213 hovered, | 212 hovered, |
| (...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 | 630 |
| 632 // The CSS display attribute for this node, if applicable. | 631 // The CSS display attribute for this node, if applicable. |
| 633 DOMString? display; | 632 DOMString? display; |
| 634 | 633 |
| 635 // A data url with the contents of this object's image or thumbnail. | 634 // A data url with the contents of this object's image or thumbnail. |
| 636 DOMString? imageDataUrl; | 635 DOMString? imageDataUrl; |
| 637 | 636 |
| 638 // The language code for this subtree. | 637 // The language code for this subtree. |
| 639 DOMString? language; | 638 DOMString? language; |
| 640 | 639 |
| 641 // If a checkbox or toggle button is in the mixed state. | 640 // Tri-state describing checkbox or radio button: |
| 642 boolean? buttonMixed; | 641 // 'false' | 'true' | 'mixed' |
| 642 DOMString? checked; |
| 643 | 643 |
| 644 // The RGBA foreground color of this subtree, as an integer. | 644 // The RGBA foreground color of this subtree, as an integer. |
| 645 long? color; | 645 long? color; |
| 646 | 646 |
| 647 // The RGBA background color of this subtree, as an integer. | 647 // The RGBA background color of this subtree, as an integer. |
| 648 long? backgroundColor; | 648 long? backgroundColor; |
| 649 | 649 |
| 650 // The RGBA color of an input element whose value is a color. | 650 // The RGBA color of an input element whose value is a color. |
| 651 long? colorValue; | 651 long? colorValue; |
| 652 | 652 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 // Everything in the tree between the two node/offset pairs gets included | 789 // Everything in the tree between the two node/offset pairs gets included |
| 790 // in the selection. The anchor is where the user started the selection, | 790 // in the selection. The anchor is where the user started the selection, |
| 791 // while the focus is the point at which the selection gets extended | 791 // while the focus is the point at which the selection gets extended |
| 792 // e.g. when dragging with a mouse or using the keyboard. For nodes with | 792 // e.g. when dragging with a mouse or using the keyboard. For nodes with |
| 793 // the role staticText, the offset gives the character offset within | 793 // the role staticText, the offset gives the character offset within |
| 794 // the value where the selection starts or ends, respectively. | 794 // the value where the selection starts or ends, respectively. |
| 795 [nocompile] static void setDocumentSelection( | 795 [nocompile] static void setDocumentSelection( |
| 796 SetDocumentSelectionParams params); | 796 SetDocumentSelectionParams params); |
| 797 }; | 797 }; |
| 798 }; | 798 }; |
| OLD | NEW |