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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 void WebKitTestRunner::setEditCommand(const std::string& name, | 200 void WebKitTestRunner::setEditCommand(const std::string& name, |
201 const std::string& value) { | 201 const std::string& value) { |
202 render_view()->SetEditCommandForNextKeyEvent(name, value); | 202 render_view()->SetEditCommandForNextKeyEvent(name, value); |
203 } | 203 } |
204 | 204 |
205 void WebKitTestRunner::setGamepadProvider( | 205 void WebKitTestRunner::setGamepadProvider( |
206 RendererGamepadProvider* provider) { | 206 RendererGamepadProvider* provider) { |
207 SetMockGamepadProvider(provider); | 207 SetMockGamepadProvider(provider); |
208 } | 208 } |
209 | 209 |
| 210 void WebKitTestRunner::setDeviceLightData(const double data) { |
| 211 SetMockDeviceLightData(data); |
| 212 } |
| 213 |
210 void WebKitTestRunner::setDeviceMotionData(const WebDeviceMotionData& data) { | 214 void WebKitTestRunner::setDeviceMotionData(const WebDeviceMotionData& data) { |
211 SetMockDeviceMotionData(data); | 215 SetMockDeviceMotionData(data); |
212 } | 216 } |
213 | 217 |
214 void WebKitTestRunner::setDeviceOrientationData( | 218 void WebKitTestRunner::setDeviceOrientationData( |
215 const WebDeviceOrientationData& data) { | 219 const WebDeviceOrientationData& data) { |
216 SetMockDeviceOrientationData(data); | 220 SetMockDeviceOrientationData(data); |
217 } | 221 } |
218 | 222 |
219 void WebKitTestRunner::setScreenOrientation( | 223 void WebKitTestRunner::setScreenOrientation( |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 | 722 |
719 leak_detector_->TryLeakDetection(main_frame); | 723 leak_detector_->TryLeakDetection(main_frame); |
720 } | 724 } |
721 | 725 |
722 void WebKitTestRunner::ReportLeakDetectionResult( | 726 void WebKitTestRunner::ReportLeakDetectionResult( |
723 const LeakDetectionResult& report) { | 727 const LeakDetectionResult& report) { |
724 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 728 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
725 } | 729 } |
726 | 730 |
727 } // namespace content | 731 } // namespace content |
OLD | NEW |