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