| 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 * tree, so it's possibly the root of a new subtree - it does not mean | 232 * tree, so it's possibly the root of a new subtree - it does not mean |
| 233 * that it necessarily has children. | 233 * that it necessarily has children. |
| 234 */ | 234 */ |
| 235 subtreeCreated, | 235 subtreeCreated, |
| 236 | 236 |
| 237 /** | 237 /** |
| 238 * This node changed. | 238 * This node changed. |
| 239 */ | 239 */ |
| 240 nodeChanged, | 240 nodeChanged, |
| 241 | 241 |
| 242 /** |
| 243 * This node's text (name) changed. |
| 244 */ |
| 245 textChanged, |
| 246 |
| 242 /** | 247 /** |
| 243 * This node was removed. | 248 * This node was removed. |
| 244 */ | 249 */ |
| 245 nodeRemoved | 250 nodeRemoved |
| 246 }; | 251 }; |
| 247 | 252 |
| 248 dictionary Rect { | 253 dictionary Rect { |
| 249 long left; | 254 long left; |
| 250 long top; | 255 long top; |
| 251 long width; | 256 long width; |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 // Everything in the tree between the two node/offset pairs gets included | 638 // Everything in the tree between the two node/offset pairs gets included |
| 634 // in the selection. The anchor is where the user started the selection, | 639 // in the selection. The anchor is where the user started the selection, |
| 635 // while the focus is the point at which the selection gets extended | 640 // while the focus is the point at which the selection gets extended |
| 636 // e.g. when dragging with a mouse or using the keyboard. For nodes with | 641 // e.g. when dragging with a mouse or using the keyboard. For nodes with |
| 637 // the role staticText, the offset gives the character offset within | 642 // the role staticText, the offset gives the character offset within |
| 638 // the value where the selection starts or ends, respectively. | 643 // the value where the selection starts or ends, respectively. |
| 639 [nocompile] static void setDocumentSelection( | 644 [nocompile] static void setDocumentSelection( |
| 640 SetDocumentSelectionParams params); | 645 SetDocumentSelectionParams params); |
| 641 }; | 646 }; |
| 642 }; | 647 }; |
| OLD | NEW |