| 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 94b2f6c0413c145029cfa88d93b6395b4e351b7b..489f02f653b89ab8507b3df01a161a78c9ef9608 100644
|
| --- a/chrome/renderer/resources/extensions/automation/automation_node.js
|
| +++ b/chrome/renderer/resources/extensions/automation/automation_node.js
|
| @@ -427,7 +427,7 @@ AutomationNodeImpl.prototype = {
|
| attributes: this.attributes };
|
| },
|
|
|
| - dispatchEvent: function(eventType, eventFrom) {
|
| + dispatchEvent: function(eventType, eventFrom, mouseX, mouseY) {
|
| var path = [];
|
| var parent = this.parent;
|
| while (parent) {
|
| @@ -435,6 +435,8 @@ AutomationNodeImpl.prototype = {
|
| parent = parent.parent;
|
| }
|
| var event = new AutomationEvent(eventType, this.wrapper, eventFrom);
|
| + event.mouseX = mouseX;
|
| + event.mouseY = mouseY;
|
|
|
| // Dispatch the event through the propagation path in three phases:
|
| // - capturing: starting from the root and going down to the target's parent
|
| @@ -997,7 +999,8 @@ AutomationRootNodeImpl.prototype = {
|
| if (targetNode) {
|
| var targetNodeImpl = privates(targetNode).impl;
|
| targetNodeImpl.dispatchEvent(
|
| - eventParams.eventType, eventParams.eventFrom);
|
| + eventParams.eventType, eventParams.eventFrom,
|
| + eventParams.mouseX, eventParams.mouseY);
|
| } else {
|
| logging.WARNING('Got ' + eventParams.eventType +
|
| ' event on unknown node: ' + eventParams.targetID +
|
|
|