| 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 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 static void doDefault(); | 674 static void doDefault(); |
| 675 | 675 |
| 676 // Places focus on this node. | 676 // Places focus on this node. |
| 677 static void focus(); | 677 static void focus(); |
| 678 | 678 |
| 679 // Request a data url for the contents of an image, optionally | 679 // Request a data url for the contents of an image, optionally |
| 680 // resized. Pass zero for maxWidth and/or maxHeight for the | 680 // resized. Pass zero for maxWidth and/or maxHeight for the |
| 681 // original size. | 681 // original size. |
| 682 static void getImageData(long maxWidth, long maxHeight); | 682 static void getImageData(long maxWidth, long maxHeight); |
| 683 | 683 |
| 684 // Does a hit test of the given global screen coordinates, and fires |
| 685 // eventToFire on the resulting object. |
| 686 static void hitTest(long x, long y, EventType eventToFire); |
| 687 |
| 684 // Scrolls this node to make it visible. | 688 // Scrolls this node to make it visible. |
| 685 static void makeVisible(); | 689 static void makeVisible(); |
| 686 | 690 |
| 687 // Sets selection within a text field. | 691 // Sets selection within a text field. |
| 688 static void setSelection(long startIndex, long endIndex); | 692 static void setSelection(long startIndex, long endIndex); |
| 689 | 693 |
| 690 // Clears focus and sets this node as the starting point for the next | 694 // Clears focus and sets this node as the starting point for the next |
| 691 // time the user presses Tab or Shift+Tab. | 695 // time the user presses Tab or Shift+Tab. |
| 692 static void setSequentialFocusNavigationStartingPoint(); | 696 static void setSequentialFocusNavigationStartingPoint(); |
| 693 | 697 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 780 // Everything in the tree between the two node/offset pairs gets included | 784 // Everything in the tree between the two node/offset pairs gets included |
| 781 // in the selection. The anchor is where the user started the selection, | 785 // in the selection. The anchor is where the user started the selection, |
| 782 // while the focus is the point at which the selection gets extended | 786 // while the focus is the point at which the selection gets extended |
| 783 // e.g. when dragging with a mouse or using the keyboard. For nodes with | 787 // e.g. when dragging with a mouse or using the keyboard. For nodes with |
| 784 // the role staticText, the offset gives the character offset within | 788 // the role staticText, the offset gives the character offset within |
| 785 // the value where the selection starts or ends, respectively. | 789 // the value where the selection starts or ends, respectively. |
| 786 [nocompile] static void setDocumentSelection( | 790 [nocompile] static void setDocumentSelection( |
| 787 SetDocumentSelectionParams params); | 791 SetDocumentSelectionParams params); |
| 788 }; | 792 }; |
| 789 }; | 793 }; |
| OLD | NEW |