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

Unified Diff: chrome/renderer/resources/extensions/automation/automation_node.js

Issue 2748463003: Generalize the HIT_TEST accessibility action so that it can send any event. (Closed)
Patch Set: Use ParseAXEvent Created 3 years, 9 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/resources/extensions/automation/automation_node.js
diff --git a/chrome/renderer/resources/extensions/automation/automation_node.js b/chrome/renderer/resources/extensions/automation/automation_node.js
index 15b722570a53cce1a08e750c559672d4226247d3..75b496fefec9c010f6b6a2e19ee92dac5c290702 100644
--- a/chrome/renderer/resources/extensions/automation/automation_node.js
+++ b/chrome/renderer/resources/extensions/automation/automation_node.js
@@ -383,11 +383,20 @@ AutomationNodeImpl.prototype = {
maxHeight: maxHeight });
},
+ hitTest: function(x, y, eventToFire) {
+ // Convert from global to tree-relative coordinates.
+ var location = GetLocation(this.treeID, GetRootID(this.treeID));
+ this.performAction_('hitTest',
+ { x: x - location.left,
+ y: y - location.top,
+ eventToFire: eventToFire });
+ },
+
makeVisible: function() {
this.performAction_('makeVisible');
},
- resumeMedia: function() {
+ resumeMedia: function() {
this.performAction_('resumeMedia');
},
@@ -1078,6 +1087,7 @@ utils.expose(AutomationNode, AutomationNodeImpl, {
'findAll',
'focus',
'getImageData',
+ 'hitTest',
'makeVisible',
'matches',
'resumeMedia',

Powered by Google App Engine
This is Rietveld 408576698