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

Unified Diff: content/shell/renderer/layout_test/blink_test_runner.cc

Issue 2036873002: Making EventSender talk to the right WebWidget (for OOPIF support). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use RenderWidget::viewRect() [rather than windowRect()] in TransformScreenToWidgetCoordinates. Created 4 years, 2 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: content/shell/renderer/layout_test/blink_test_runner.cc
diff --git a/content/shell/renderer/layout_test/blink_test_runner.cc b/content/shell/renderer/layout_test/blink_test_runner.cc
index da1272fb7a1e550451d50f6f90cd46e5ebaa14ec..a956d93b5c5faa035498148bad3c8af682758710 100644
--- a/content/shell/renderer/layout_test/blink_test_runner.cc
+++ b/content/shell/renderer/layout_test/blink_test_runner.cc
@@ -62,6 +62,7 @@
#include "skia/ext/platform_canvas.h"
#include "third_party/WebKit/public/platform/FilePathConversion.h"
#include "third_party/WebKit/public/platform/Platform.h"
+#include "third_party/WebKit/public/platform/WebInputEvent.h"
#include "third_party/WebKit/public/platform/WebPoint.h"
#include "third_party/WebKit/public/platform/WebRect.h"
#include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
@@ -500,6 +501,19 @@ float BlinkTestRunner::GetWindowToViewportScale() {
return content::GetWindowToViewportScale(render_view());
}
+std::unique_ptr<blink::WebInputEvent>
+BlinkTestRunner::TransformScreenToWidgetCoordinates(
+ test_runner::WebWidgetTestProxyBase* web_widget_test_proxy_base,
+ const blink::WebInputEvent& event) {
+ return content::TransformScreenToWidgetCoordinates(web_widget_test_proxy_base,
+ event);
+}
+
+test_runner::WebWidgetTestProxyBase* BlinkTestRunner::GetWebWidgetTestProxyBase(
+ blink::WebLocalFrame* frame) {
+ return content::GetWebWidgetTestProxyBase(frame);
+}
+
void BlinkTestRunner::EnableUseZoomForDSF() {
base::CommandLine::ForCurrentProcess()->
AppendSwitch(switches::kEnableUseZoomForDSF);

Powered by Google App Engine
This is Rietveld 408576698