| 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 [nocompile, noinline_doc] dictionary AutomationEvent { | 306 [nocompile, noinline_doc] dictionary AutomationEvent { |
| 307 // The $(ref:automation.AutomationNode) to which the event was targeted. | 307 // The $(ref:automation.AutomationNode) to which the event was targeted. |
| 308 AutomationNode target; | 308 AutomationNode target; |
| 309 | 309 |
| 310 // The type of the event. | 310 // The type of the event. |
| 311 EventType type; | 311 EventType type; |
| 312 | 312 |
| 313 // The source of this event. | 313 // The source of this event. |
| 314 DOMString eventFrom; | 314 DOMString eventFrom; |
| 315 | 315 |
| 316 long mouseX; |
| 317 long mouseY; |
| 318 |
| 316 // Stops this event from further processing except for any remaining | 319 // Stops this event from further processing except for any remaining |
| 317 // listeners on $(ref:AutomationEvent.target). | 320 // listeners on $(ref:AutomationEvent.target). |
| 318 static void stopPropagation(); | 321 static void stopPropagation(); |
| 319 }; | 322 }; |
| 320 | 323 |
| 321 // A listener for events on an <code>AutomationNode</code>. | 324 // A listener for events on an <code>AutomationNode</code>. |
| 322 callback AutomationListener = void(AutomationEvent event); | 325 callback AutomationListener = void(AutomationEvent event); |
| 323 | 326 |
| 324 // A change to the Automation tree. | 327 // A change to the Automation tree. |
| 325 [nocompile, noinline_doc] dictionary TreeChange { | 328 [nocompile, noinline_doc] dictionary TreeChange { |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 // Everything in the tree between the two node/offset pairs gets included | 659 // Everything in the tree between the two node/offset pairs gets included |
| 657 // in the selection. The anchor is where the user started the selection, | 660 // in the selection. The anchor is where the user started the selection, |
| 658 // while the focus is the point at which the selection gets extended | 661 // while the focus is the point at which the selection gets extended |
| 659 // e.g. when dragging with a mouse or using the keyboard. For nodes with | 662 // e.g. when dragging with a mouse or using the keyboard. For nodes with |
| 660 // the role staticText, the offset gives the character offset within | 663 // the role staticText, the offset gives the character offset within |
| 661 // the value where the selection starts or ends, respectively. | 664 // the value where the selection starts or ends, respectively. |
| 662 [nocompile] static void setDocumentSelection( | 665 [nocompile] static void setDocumentSelection( |
| 663 SetDocumentSelectionParams params); | 666 SetDocumentSelectionParams params); |
| 664 }; | 667 }; |
| 665 }; | 668 }; |
| OLD | NEW |