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

Side by Side 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, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/test_runner/web_frame_test_proxy.h" 5 #include "components/test_runner/web_frame_test_proxy.h"
6 6
7 #include "components/test_runner/event_sender.h"
8
7 namespace test_runner { 9 namespace test_runner {
8 10
9 WebFrameTestProxyBase::WebFrameTestProxyBase() : web_frame_(nullptr) {} 11 WebFrameTestProxyBase::WebFrameTestProxyBase()
12 : web_frame_(nullptr),
13 web_test_proxy_base_(nullptr),
14 event_sender_(new EventSender(this)) {}
15
10 WebFrameTestProxyBase::~WebFrameTestProxyBase() {} 16 WebFrameTestProxyBase::~WebFrameTestProxyBase() {}
11 17
18 void WebFrameTestProxyBase::SetSendWheelGestures(bool send_gestures) {
19 event_sender_->set_send_wheel_gestures(send_gestures);
20 }
21
22 void WebFrameTestProxyBase::Reset() {
23 event_sender_->Reset();
24 }
25
26 void WebFrameTestProxyBase::BindTo(blink::WebLocalFrame* frame) {
27 event_sender_->Install(frame);
28 }
29
12 } // namespace test_runner 30 } // namespace test_runner
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698