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

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

Issue 2486273002: Send mouse location as part of automation events. (Closed)
Patch Set: Fix 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
11 // the tree update format. 11 // the tree update format.
12 [nocompile] dictionary AXEventParams { 12 [nocompile] dictionary AXEventParams {
13 // The tree id of the web contents that this update is for. 13 // The tree id of the web contents that this update is for.
14 long treeID; 14 long treeID;
15 15
16 // ID of the node that the event applies to. 16 // ID of the node that the event applies to.
17 long targetID; 17 long targetID;
18 18
19 // The type of event that this update represents. 19 // The type of event that this update represents.
20 DOMString eventType; 20 DOMString eventType;
21 21
22 // The source of this event. 22 // The source of this event.
23 DOMString eventFrom; 23 DOMString eventFrom;
24
25 // The mouse coordinates when this event fired.
26 double mouseX;
27 double mouseY;
24 }; 28 };
25 29
26 // All possible actions that can be performed on automation nodes. 30 // All possible actions that can be performed on automation nodes.
27 enum ActionType { 31 enum ActionType {
28 focus, 32 focus,
29 doDefault, 33 doDefault,
30 makeVisible, 34 makeVisible,
31 setAccessibilityFocus, 35 setAccessibilityFocus,
32 setSequentialFocusNavigationStartingPoint, 36 setSequentialFocusNavigationStartingPoint,
33 setSelection, 37 setSelection,
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 static void onTreeChange(long observerID, 109 static void onTreeChange(long observerID,
106 long treeID, 110 long treeID,
107 long nodeID, 111 long nodeID,
108 DOMString changeType); 112 DOMString changeType);
109 113
110 static void onChildTreeID(long treeID, long nodeID); 114 static void onChildTreeID(long treeID, long nodeID);
111 115
112 static void onNodesRemoved(long treeID, long[] nodeIDs); 116 static void onNodesRemoved(long treeID, long[] nodeIDs);
113 }; 117 };
114 }; 118 };
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/automation.idl ('k') | chrome/common/extensions/chrome_extension_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698