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

Unified Diff: components/test_runner/web_frame_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: Created 4 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: components/test_runner/web_frame_test_proxy.cc
diff --git a/components/test_runner/web_frame_test_proxy.cc b/components/test_runner/web_frame_test_proxy.cc
index bb00adea1a3431f767e4436a4582d89d8343d137..6311389a30bf8283a22be79c527363eac088ecd2 100644
--- a/components/test_runner/web_frame_test_proxy.cc
+++ b/components/test_runner/web_frame_test_proxy.cc
@@ -4,9 +4,27 @@
#include "components/test_runner/web_frame_test_proxy.h"
+#include "components/test_runner/event_sender.h"
+
namespace test_runner {
-WebFrameTestProxyBase::WebFrameTestProxyBase() : web_frame_(nullptr) {}
+WebFrameTestProxyBase::WebFrameTestProxyBase()
+ : web_frame_(nullptr),
+ web_test_proxy_base_(nullptr),
+ event_sender_(new EventSender(this)) {}
+
WebFrameTestProxyBase::~WebFrameTestProxyBase() {}
+void WebFrameTestProxyBase::SetSendWheelGestures(bool send_gestures) {
+ event_sender_->set_send_wheel_gestures(send_gestures);
+}
+
+void WebFrameTestProxyBase::Reset() {
+ event_sender_->Reset();
+}
+
+void WebFrameTestProxyBase::BindTo(blink::WebLocalFrame* frame) {
+ event_sender_->Install(frame);
+}
+
} // namespace test_runner

Powered by Google App Engine
This is Rietveld 408576698