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

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

Issue 2867103005: Merge to M59: Revert "Fix computation of Automation API location offsets in WebViews." (Closed)
Patch Set: Created 3 years, 7 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..ced7dde6d0326915853acbc3a2c287df16e7bd26 100644
--- a/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc
+++ b/chrome/browser/extensions/api/automation_internal/automation_internal_api.cc
@@ -176,6 +176,8 @@ class AutomationWebContentsObserver
params.id = event.id;
params.event_type = event.event_type;
params.update = event.update;
+ params.location_offset =
+ web_contents()->GetContainerBounds().OffsetFromOrigin();
params.event_from = event.event_from;
AutomationEventRouter* router = AutomationEventRouter::GetInstance();
« no previous file with comments | « chrome/browser/extensions/api/automation/automation_apitest.cc ('k') | chrome/common/extensions/chrome_extension_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698