Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: chrome/common/extensions/api/automation.idl

Issue 2522543004: Add support for retrieving image thumbnails as part of the accessibility tree. (Closed)
Patch Set: Clarified maxSize Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 {
11 // Keep the following enums in sync with 'ui/accessibility/ax_enums.idl'. 11 // Keep the following enums in sync with 'ui/accessibility/ax_enums.idl'.
12 // They are kept here purely for extension docs generation. 12 // They are kept here purely for extension docs generation.
13 13
14 // Possible events fired on an $(ref:automation.AutomationNode). 14 // Possible events fired on an $(ref:automation.AutomationNode).
15 enum EventType { 15 enum EventType {
16 activedescendantchanged, 16 activedescendantchanged,
17 alert, 17 alert,
18 ariaAttributeChanged, 18 ariaAttributeChanged,
19 autocorrectionOccured, 19 autocorrectionOccured,
20 blur, 20 blur,
21 checkedStateChanged, 21 checkedStateChanged,
22 childrenChanged, 22 childrenChanged,
23 clicked, 23 clicked,
24 documentSelectionChanged, 24 documentSelectionChanged,
25 expandedChanged, 25 expandedChanged,
26 focus, 26 focus,
27 imageFrameUpdated,
27 hide, 28 hide,
28 hover, 29 hover,
29 invalidStatusChanged, 30 invalidStatusChanged,
30 layoutComplete, 31 layoutComplete,
31 liveRegionCreated, 32 liveRegionCreated,
32 liveRegionChanged, 33 liveRegionChanged,
33 loadComplete, 34 loadComplete,
34 locationChanged, 35 locationChanged,
35 menuEnd, 36 menuEnd,
36 menuListItemSelected, 37 menuListItemSelected,
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 569
569 // Does the default action based on this node's role. This is generally 570 // Does the default action based on this node's role. This is generally
570 // the same action that would result from clicking the node such as 571 // the same action that would result from clicking the node such as
571 // expanding a treeitem, toggling a checkbox, selecting a radiobutton, 572 // expanding a treeitem, toggling a checkbox, selecting a radiobutton,
572 // or activating a button. 573 // or activating a button.
573 static void doDefault(); 574 static void doDefault();
574 575
575 // Places focus on this node. 576 // Places focus on this node.
576 static void focus(); 577 static void focus();
577 578
579 // Request a data url for the contents of an image, optionally
580 // resized. Pass zero for maxWidth and/or maxHeight for the
581 // original size.
582 static void getImageData(long maxWidth, long maxHeight);
583
578 // Scrolls this node to make it visible. 584 // Scrolls this node to make it visible.
579 static void makeVisible(); 585 static void makeVisible();
580 586
581 // Sets selection within a text field. 587 // Sets selection within a text field.
582 static void setSelection(long startIndex, long endIndex); 588 static void setSelection(long startIndex, long endIndex);
583 589
584 // Clears focus and sets this node as the starting point for the next 590 // Clears focus and sets this node as the starting point for the next
585 // time the user presses Tab or Shift+Tab. 591 // time the user presses Tab or Shift+Tab.
586 static void setSequentialFocusNavigationStartingPoint(); 592 static void setSequentialFocusNavigationStartingPoint();
587 593
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 // Everything in the tree between the two node/offset pairs gets included 665 // Everything in the tree between the two node/offset pairs gets included
660 // in the selection. The anchor is where the user started the selection, 666 // in the selection. The anchor is where the user started the selection,
661 // while the focus is the point at which the selection gets extended 667 // while the focus is the point at which the selection gets extended
662 // e.g. when dragging with a mouse or using the keyboard. For nodes with 668 // e.g. when dragging with a mouse or using the keyboard. For nodes with
663 // the role staticText, the offset gives the character offset within 669 // the role staticText, the offset gives the character offset within
664 // the value where the selection starts or ends, respectively. 670 // the value where the selection starts or ends, respectively.
665 [nocompile] static void setDocumentSelection( 671 [nocompile] static void setDocumentSelection(
666 SetDocumentSelectionParams params); 672 SetDocumentSelectionParams params);
667 }; 673 };
668 }; 674 };
OLDNEW
« no previous file with comments | « chrome/browser/ui/aura/accessibility/automation_manager_aura.cc ('k') | chrome/common/extensions/api/automation_internal.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698