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

Side by Side 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 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_widget_test_proxy.h" 5 #include "components/test_runner/web_widget_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 WebWidgetTestProxyBase::WebWidgetTestProxyBase() : web_widget_(nullptr) {} 11 WebWidgetTestProxyBase::WebWidgetTestProxyBase()
12 : web_widget_(nullptr),
13 web_view_test_proxy_base_(nullptr),
14 event_sender_(new EventSender(this)) {}
10 15
11 WebWidgetTestProxyBase::~WebWidgetTestProxyBase() {} 16 WebWidgetTestProxyBase::~WebWidgetTestProxyBase() {}
12 17
18 void WebWidgetTestProxyBase::Reset() {
19 event_sender_->Reset();
20 }
21
22 void WebWidgetTestProxyBase::BindTo(blink::WebLocalFrame* frame) {
23 event_sender_->Install(frame);
24 }
25
13 } // namespace test_runner 26 } // namespace test_runner
OLDNEW
« 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