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

Unified Diff: chrome/browser/extensions/api/automation_internal/automation_internal_api.cc

Issue 2813083003: Finish implementation of automation API hit testing for the desktop. (Closed)
Patch Set: Created 3 years, 8 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/browser/extensions/api/automation_internal/automation_internal_api.cc
diff --git a/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc b/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc
index 916d4407f866693ab9a494cfae2ec2a73ae01343..38711935c4c0754f274032abff0f69d386816049 100644
--- a/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc
+++ b/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc
@@ -44,6 +44,7 @@
#if defined(USE_AURA)
#include "chrome/browser/ui/aura/accessibility/automation_manager_aura.h"
+#include "ui/aura/env.h"
#endif
namespace extensions {
@@ -177,6 +178,9 @@ class AutomationWebContentsObserver
params.event_type = event.event_type;
params.update = event.update;
params.event_from = event.event_from;
+#if defined(USE_AURA)
+ params.mouse_location = aura::Env::GetInstance()->last_mouse_location();
+#endif
AutomationEventRouter* router = AutomationEventRouter::GetInstance();
router->DispatchAccessibilityEvent(params);

Powered by Google App Engine
This is Rietveld 408576698