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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 // is not available. The start and end indices are zero-based offsets | 391 // is not available. The start and end indices are zero-based offsets |
392 // into the node's "name" string attribute. | 392 // into the node's "name" string attribute. |
393 static Rect boundsForRange(long startIndex, long endIndex); | 393 static Rect boundsForRange(long startIndex, long endIndex); |
394 | 394 |
395 // The purpose of the node, other than the role, if any. | 395 // The purpose of the node, other than the role, if any. |
396 DOMString? description; | 396 DOMString? description; |
397 | 397 |
398 // The placeholder for this text field, if any. | 398 // The placeholder for this text field, if any. |
399 DOMString? placeholder; | 399 DOMString? placeholder; |
400 | 400 |
| 401 // The role description for this node. |
| 402 DOMString? roleDescription; |
| 403 |
401 // The accessible name for this node, via the | 404 // The accessible name for this node, via the |
402 // <a href="http://www.w3.org/TR/wai-aria/roles#namecalculation"> | 405 // <a href="http://www.w3.org/TR/wai-aria/roles#namecalculation"> |
403 // Accessible Name Calculation</a> process. | 406 // Accessible Name Calculation</a> process. |
404 DOMString? name; | 407 DOMString? name; |
405 | 408 |
406 // The source of the name. | 409 // The source of the name. |
407 NameFromType? nameFrom; | 410 NameFromType? nameFrom; |
408 | 411 |
409 // The value for this node: for example the <code>value</code> attribute of | 412 // The value for this node: for example the <code>value</code> attribute of |
410 // an <code><input> element. | 413 // an <code><input> element. |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 // Everything in the tree between the two node/offset pairs gets included | 807 // Everything in the tree between the two node/offset pairs gets included |
805 // in the selection. The anchor is where the user started the selection, | 808 // in the selection. The anchor is where the user started the selection, |
806 // while the focus is the point at which the selection gets extended | 809 // while the focus is the point at which the selection gets extended |
807 // e.g. when dragging with a mouse or using the keyboard. For nodes with | 810 // e.g. when dragging with a mouse or using the keyboard. For nodes with |
808 // the role staticText, the offset gives the character offset within | 811 // the role staticText, the offset gives the character offset within |
809 // the value where the selection starts or ends, respectively. | 812 // the value where the selection starts or ends, respectively. |
810 [nocompile] static void setDocumentSelection( | 813 [nocompile] static void setDocumentSelection( |
811 SetDocumentSelectionParams params); | 814 SetDocumentSelectionParams params); |
812 }; | 815 }; |
813 }; | 816 }; |
OLD | NEW |