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

Unified Diff: components/test_runner/web_widget_test_proxy.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
« no previous file with comments | « components/test_runner/web_widget_test_proxy.h ('k') | content/public/test/layouttest_support.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/web_widget_test_proxy.cc
diff --git a/components/test_runner/web_widget_test_proxy.cc b/components/test_runner/web_widget_test_proxy.cc
index d3d4036d2ecd0499c83a3920a6ed6989336ca545..497c96eb5499df63202bde80e487007b0f7c2cb6 100644
--- a/components/test_runner/web_widget_test_proxy.cc
+++ b/components/test_runner/web_widget_test_proxy.cc
@@ -4,10 +4,23 @@
#include "components/test_runner/web_widget_test_proxy.h"
+#include "components/test_runner/event_sender.h"
+
namespace test_runner {
-WebWidgetTestProxyBase::WebWidgetTestProxyBase() : web_widget_(nullptr) {}
+WebWidgetTestProxyBase::WebWidgetTestProxyBase()
+ : web_widget_(nullptr),
+ web_view_test_proxy_base_(nullptr),
+ event_sender_(new EventSender(this)) {}
WebWidgetTestProxyBase::~WebWidgetTestProxyBase() {}
+void WebWidgetTestProxyBase::Reset() {
+ event_sender_->Reset();
+}
+
+void WebWidgetTestProxyBase::BindTo(blink::WebLocalFrame* frame) {
+ event_sender_->Install(frame);
+}
+
} // namespace test_runner
« no previous file with comments | « components/test_runner/web_widget_test_proxy.h ('k') | content/public/test/layouttest_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698