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

Unified Diff: chrome/renderer/extensions/automation_internal_custom_bindings.cc

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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/extensions/automation_internal_custom_bindings.cc
diff --git a/chrome/renderer/extensions/automation_internal_custom_bindings.cc b/chrome/renderer/extensions/automation_internal_custom_bindings.cc
index 221c166b9f8f63a27b781a7524c0c49ac5cefe25..368c3a567c9a31379841a14e34cf2a21785a43d2 100644
--- a/chrome/renderer/extensions/automation_internal_custom_bindings.cc
+++ b/chrome/renderer/extensions/automation_internal_custom_bindings.cc
@@ -1170,6 +1170,10 @@ void AutomationInternalCustomBindings::OnAccessibilityEvent(
CreateV8String(isolate, ToString(params.event_type)));
event_params->Set(CreateV8String(isolate, "eventFrom"),
CreateV8String(isolate, ToString(params.event_from)));
+ event_params->Set(CreateV8String(isolate, "mouseX"),
+ v8::Integer::New(GetIsolate(), params.mouse_location.x()));
+ event_params->Set(CreateV8String(isolate, "mouseY"),
+ v8::Integer::New(GetIsolate(), params.mouse_location.y()));
args->Set(0U, event_params);
context()->DispatchEvent("automationInternal.onAccessibilityEvent", args);
}

Powered by Google App Engine
This is Rietveld 408576698