OLD | NEW |
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 |
OLD | NEW |