| 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 focusable, | 209 focusable, |
| 210 focused, | 210 focused, |
| 211 haspopup, | 211 haspopup, |
| 212 horizontal, | 212 horizontal, |
| 213 hovered, | 213 hovered, |
| 214 invisible, | 214 invisible, |
| 215 linked, | 215 linked, |
| 216 multiline, | 216 multiline, |
| 217 multiselectable, | 217 multiselectable, |
| 218 offscreen, | 218 offscreen, |
| 219 pressed, | |
| 220 protected, | 219 protected, |
| 221 readOnly, | 220 readOnly, |
| 222 required, | 221 required, |
| 223 richlyEditable, | 222 richlyEditable, |
| 224 selectable, | 223 selectable, |
| 225 selected, | 224 selected, |
| 226 vertical, | 225 vertical, |
| 227 visited | 226 visited |
| 228 }; | 227 }; |
| 229 | 228 |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 650 // A data url with the contents of this object's image or thumbnail. | 649 // A data url with the contents of this object's image or thumbnail. |
| 651 DOMString? imageDataUrl; | 650 DOMString? imageDataUrl; |
| 652 | 651 |
| 653 // The language code for this subtree. | 652 // The language code for this subtree. |
| 654 DOMString? language; | 653 DOMString? language; |
| 655 | 654 |
| 656 // Tri-state describing checkbox or radio button: | 655 // Tri-state describing checkbox or radio button: |
| 657 // 'false' | 'true' | 'mixed' | 656 // 'false' | 'true' | 'mixed' |
| 658 DOMString? checked; | 657 DOMString? checked; |
| 659 | 658 |
| 659 // Tri-state describing toggle button: |
| 660 // 'false' | 'true' | 'mixed' |
| 661 DOMString? pressed; |
| 662 |
| 660 // The RGBA foreground color of this subtree, as an integer. | 663 // The RGBA foreground color of this subtree, as an integer. |
| 661 long? color; | 664 long? color; |
| 662 | 665 |
| 663 // The RGBA background color of this subtree, as an integer. | 666 // The RGBA background color of this subtree, as an integer. |
| 664 long? backgroundColor; | 667 long? backgroundColor; |
| 665 | 668 |
| 666 // The RGBA color of an input element whose value is a color. | 669 // The RGBA color of an input element whose value is a color. |
| 667 long? colorValue; | 670 long? colorValue; |
| 668 | 671 |
| 669 // | 672 // |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 805 // Everything in the tree between the two node/offset pairs gets included | 808 // Everything in the tree between the two node/offset pairs gets included |
| 806 // in the selection. The anchor is where the user started the selection, | 809 // in the selection. The anchor is where the user started the selection, |
| 807 // while the focus is the point at which the selection gets extended | 810 // while the focus is the point at which the selection gets extended |
| 808 // e.g. when dragging with a mouse or using the keyboard. For nodes with | 811 // e.g. when dragging with a mouse or using the keyboard. For nodes with |
| 809 // the role staticText, the offset gives the character offset within | 812 // the role staticText, the offset gives the character offset within |
| 810 // the value where the selection starts or ends, respectively. | 813 // the value where the selection starts or ends, respectively. |
| 811 [nocompile] static void setDocumentSelection( | 814 [nocompile] static void setDocumentSelection( |
| 812 SetDocumentSelectionParams params); | 815 SetDocumentSelectionParams params); |
| 813 }; | 816 }; |
| 814 }; | 817 }; |
| OLD | NEW |