OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/shell/renderer/webkit_test_runner.h" | 5 #include "content/shell/renderer/webkit_test_runner.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <clocale> | 8 #include <clocale> |
9 #include <cmath> | 9 #include <cmath> |
10 | 10 |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 | 194 |
195 void WebKitTestRunner::clearEditCommand() { | 195 void WebKitTestRunner::clearEditCommand() { |
196 render_view()->ClearEditCommands(); | 196 render_view()->ClearEditCommands(); |
197 } | 197 } |
198 | 198 |
199 void WebKitTestRunner::setEditCommand(const std::string& name, | 199 void WebKitTestRunner::setEditCommand(const std::string& name, |
200 const std::string& value) { | 200 const std::string& value) { |
201 render_view()->SetEditCommandForNextKeyEvent(name, value); | 201 render_view()->SetEditCommandForNextKeyEvent(name, value); |
202 } | 202 } |
203 | 203 |
204 void WebKitTestRunner::setGamepadData(const WebGamepads& gamepads) { | 204 void WebKitTestRunner::setGamepadProvider( |
205 SetMockGamepads(gamepads); | 205 RendererGamepadProvider* provider) { |
206 } | 206 SetMockGamepadProvider(provider); |
207 | |
208 void WebKitTestRunner::didConnectGamepad( | |
209 int index, | |
210 const blink::WebGamepad& gamepad) { | |
211 MockGamepadConnected(index, gamepad); | |
212 } | |
213 | |
214 void WebKitTestRunner::didDisconnectGamepad( | |
215 int index, | |
216 const blink::WebGamepad& gamepad) { | |
217 MockGamepadDisconnected(index, gamepad); | |
218 } | 207 } |
219 | 208 |
220 void WebKitTestRunner::setDeviceMotionData(const WebDeviceMotionData& data) { | 209 void WebKitTestRunner::setDeviceMotionData(const WebDeviceMotionData& data) { |
221 SetMockDeviceMotionData(data); | 210 SetMockDeviceMotionData(data); |
222 } | 211 } |
223 | 212 |
224 void WebKitTestRunner::setDeviceOrientationData( | 213 void WebKitTestRunner::setDeviceOrientationData( |
225 const WebDeviceOrientationData& data) { | 214 const WebDeviceOrientationData& data) { |
226 SetMockDeviceOrientationData(data); | 215 SetMockDeviceOrientationData(data); |
227 } | 216 } |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
723 | 712 |
724 leak_detector_->TryLeakDetection(main_frame); | 713 leak_detector_->TryLeakDetection(main_frame); |
725 } | 714 } |
726 | 715 |
727 void WebKitTestRunner::ReportLeakDetectionResult( | 716 void WebKitTestRunner::ReportLeakDetectionResult( |
728 const LeakDetectionResult& report) { | 717 const LeakDetectionResult& report) { |
729 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 718 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
730 } | 719 } |
731 | 720 |
732 } // namespace content | 721 } // namespace content |
OLD | NEW |