OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_test_proxy.h" | 5 #include "components/test_runner/web_test_proxy.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "components/test_runner/accessibility_controller.h" | 10 #include "components/test_runner/accessibility_controller.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 WebTestProxyBase::~WebTestProxyBase() { | 32 WebTestProxyBase::~WebTestProxyBase() { |
33 test_interfaces_->WindowClosed(this); | 33 test_interfaces_->WindowClosed(this); |
34 } | 34 } |
35 | 35 |
36 void WebTestProxyBase::SetInterfaces(WebTestInterfaces* interfaces) { | 36 void WebTestProxyBase::SetInterfaces(WebTestInterfaces* interfaces) { |
37 test_interfaces_ = interfaces->GetTestInterfaces(); | 37 test_interfaces_ = interfaces->GetTestInterfaces(); |
38 test_interfaces_->WindowOpened(this); | 38 test_interfaces_->WindowOpened(this); |
39 } | 39 } |
40 | 40 |
41 void WebTestProxyBase::SetSendWheelGestures(bool send_gestures) { | |
42 event_sender_->set_send_wheel_gestures(send_gestures); | |
43 } | |
44 | |
45 void WebTestProxyBase::Reset() { | 41 void WebTestProxyBase::Reset() { |
46 accessibility_controller_->Reset(); | 42 accessibility_controller_->Reset(); |
47 event_sender_->Reset(); | 43 event_sender_->Reset(); |
48 // text_input_controller_ doesn't have any state to reset. | 44 // text_input_controller_ doesn't have any state to reset. |
49 view_test_runner_->Reset(); | 45 view_test_runner_->Reset(); |
50 } | 46 } |
51 | 47 |
52 void WebTestProxyBase::BindTo(blink::WebLocalFrame* frame) { | 48 void WebTestProxyBase::BindTo(blink::WebLocalFrame* frame) { |
53 accessibility_controller_->Install(frame); | 49 accessibility_controller_->Install(frame); |
54 event_sender_->Install(frame); | 50 event_sender_->Install(frame); |
55 text_input_controller_->Install(frame); | 51 text_input_controller_->Install(frame); |
56 view_test_runner_->Install(frame); | 52 view_test_runner_->Install(frame); |
57 } | 53 } |
58 | 54 |
59 } // namespace test_runner | 55 } // namespace test_runner |
OLD | NEW |