| 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 | 261 |
| 262 dictionary Rect { | 262 dictionary Rect { |
| 263 long left; | 263 long left; |
| 264 long top; | 264 long top; |
| 265 long width; | 265 long width; |
| 266 long height; | 266 long height; |
| 267 }; | 267 }; |
| 268 | 268 |
| 269 // Arguments for the find() and findAll() methods. | 269 // Arguments for the find() and findAll() methods. |
| 270 [nocompile, noinline_doc] dictionary FindParams { | 270 [nocompile, noinline_doc] dictionary FindParams { |
| 271 automation.RoleType? role; | 271 RoleType? role; |
| 272 | 272 |
| 273 // A map of $(ref:automation.StateType) to boolean, indicating for each | 273 // A map of $(ref:automation.StateType) to boolean, indicating for each |
| 274 // state whether it should be set or not. For example: | 274 // state whether it should be set or not. For example: |
| 275 // <code>{ StateType.disabled: false }</code> would only match if | 275 // <code>{ StateType.disabled: false }</code> would only match if |
| 276 // <code>StateType.disabled</code> was <em>not</em> present in the node's | 276 // <code>StateType.disabled</code> was <em>not</em> present in the node's |
| 277 // <code>state</code> object. | 277 // <code>state</code> object. |
| 278 object? state; | 278 object? state; |
| 279 | 279 |
| 280 // A map of attribute name to expected value, for example | 280 // A map of attribute name to expected value, for example |
| 281 // <code>{ name: 'Root directory', checkbox_mixed: true }</code>. | 281 // <code>{ name: 'Root directory', checkbox_mixed: true }</code>. |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 // Everything in the tree between the two node/offset pairs gets included | 670 // Everything in the tree between the two node/offset pairs gets included |
| 671 // in the selection. The anchor is where the user started the selection, | 671 // in the selection. The anchor is where the user started the selection, |
| 672 // while the focus is the point at which the selection gets extended | 672 // while the focus is the point at which the selection gets extended |
| 673 // e.g. when dragging with a mouse or using the keyboard. For nodes with | 673 // e.g. when dragging with a mouse or using the keyboard. For nodes with |
| 674 // the role staticText, the offset gives the character offset within | 674 // the role staticText, the offset gives the character offset within |
| 675 // the value where the selection starts or ends, respectively. | 675 // the value where the selection starts or ends, respectively. |
| 676 [nocompile] static void setDocumentSelection( | 676 [nocompile] static void setDocumentSelection( |
| 677 SetDocumentSelectionParams params); | 677 SetDocumentSelectionParams params); |
| 678 }; | 678 }; |
| 679 }; | 679 }; |
| OLD | NEW |