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

Side by Side Diff: chrome/common/extensions/api/automation_internal.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 // This is the implementation layer of the chrome.automation API, and is 5 // This is the implementation layer of the chrome.automation API, and is
6 // essentially a translation of the internal accessibility tree update system 6 // essentially a translation of the internal accessibility tree update system
7 // into an extension API. 7 // into an extension API.
8 namespace automationInternal { 8 namespace automationInternal {
9 // Data for an accessibility event and/or an atomic change to an accessibility 9 // Data for an accessibility event and/or an atomic change to an accessibility
10 // tree. See ui/accessibility/ax_tree_update.h for an extended explanation of 10 // tree. See ui/accessibility/ax_tree_update.h for an extended explanation of
(...skipping 13 matching lines...) Expand all
24 24
25 // The mouse coordinates when this event fired. 25 // The mouse coordinates when this event fired.
26 double mouseX; 26 double mouseX;
27 double mouseY; 27 double mouseY;
28 }; 28 };
29 29
30 // All possible actions that can be performed on automation nodes. 30 // All possible actions that can be performed on automation nodes.
31 enum ActionType { 31 enum ActionType {
32 focus, 32 focus,
33 doDefault, 33 doDefault,
34 getImageData,
34 makeVisible, 35 makeVisible,
35 setAccessibilityFocus, 36 setAccessibilityFocus,
36 setSequentialFocusNavigationStartingPoint, 37 setSequentialFocusNavigationStartingPoint,
37 setSelection, 38 setSelection,
38 showContextMenu 39 showContextMenu
39 }; 40 };
40 41
41 // Arguments required for all actions supplied to performAction. 42 // Arguments required for all actions supplied to performAction.
42 dictionary PerformActionRequiredParams { 43 dictionary PerformActionRequiredParams {
43 long treeID; 44 long treeID;
(...skipping 16 matching lines...) Expand all
60 long automationNodeID; 61 long automationNodeID;
61 DOMString selector; 62 DOMString selector;
62 }; 63 };
63 64
64 // Arguments for the enableTab function. 65 // Arguments for the enableTab function.
65 dictionary EnableTabParams { 66 dictionary EnableTabParams {
66 long routingID; 67 long routingID;
67 long? tabID; 68 long? tabID;
68 }; 69 };
69 70
71 // Arguments for the getImageData function.
72 dictionary GetImageDataParams {
73 long maxWidth;
74 long maxHeight;
75 };
76
70 // Returns the accessibility tree id of the web contents who's accessibility 77 // Returns the accessibility tree id of the web contents who's accessibility
71 // was enabled using enableTab(). 78 // was enabled using enableTab().
72 callback EnableTabCallback = void(long tree_id); 79 callback EnableTabCallback = void(long tree_id);
73 80
74 // Callback called when enableDesktop() returns. 81 // Callback called when enableDesktop() returns.
75 callback EnableDesktopCallback = void(); 82 callback EnableDesktopCallback = void();
76 83
77 // Callback called when querySelector() returns. 84 // Callback called when querySelector() returns.
78 callback QuerySelectorCallback = void(long resultAutomationNodeID); 85 callback QuerySelectorCallback = void(long resultAutomationNodeID);
79 86
(...skipping 29 matching lines...) Expand all
109 static void onTreeChange(long observerID, 116 static void onTreeChange(long observerID,
110 long treeID, 117 long treeID,
111 long nodeID, 118 long nodeID,
112 DOMString changeType); 119 DOMString changeType);
113 120
114 static void onChildTreeID(long treeID, long nodeID); 121 static void onChildTreeID(long treeID, long nodeID);
115 122
116 static void onNodesRemoved(long treeID, long[] nodeIDs); 123 static void onNodesRemoved(long treeID, long[] nodeIDs);
117 }; 124 };
118 }; 125 };
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/automation.idl ('k') | chrome/renderer/resources/extensions/automation/automation_node.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698