| 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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::setGamepadProvider( | 204 void WebKitTestRunner::setGamepadProvider( |
| 205 RendererGamepadProvider* provider) { | 205 RendererGamepadProvider* provider) { |
| 206 SetMockGamepadProvider(provider); | 206 SetMockGamepadProvider(provider); |
| 207 } | 207 } |
| 208 | 208 |
| 209 void WebKitTestRunner::setDeviceLightData(const double data) { |
| 210 SetMockDeviceLightData(data); |
| 211 } |
| 212 |
| 209 void WebKitTestRunner::setDeviceMotionData(const WebDeviceMotionData& data) { | 213 void WebKitTestRunner::setDeviceMotionData(const WebDeviceMotionData& data) { |
| 210 SetMockDeviceMotionData(data); | 214 SetMockDeviceMotionData(data); |
| 211 } | 215 } |
| 212 | 216 |
| 213 void WebKitTestRunner::setDeviceOrientationData( | 217 void WebKitTestRunner::setDeviceOrientationData( |
| 214 const WebDeviceOrientationData& data) { | 218 const WebDeviceOrientationData& data) { |
| 215 SetMockDeviceOrientationData(data); | 219 SetMockDeviceOrientationData(data); |
| 216 } | 220 } |
| 217 | 221 |
| 218 void WebKitTestRunner::setScreenOrientation( | 222 void WebKitTestRunner::setScreenOrientation( |
| (...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 | 716 |
| 713 leak_detector_->TryLeakDetection(main_frame); | 717 leak_detector_->TryLeakDetection(main_frame); |
| 714 } | 718 } |
| 715 | 719 |
| 716 void WebKitTestRunner::ReportLeakDetectionResult( | 720 void WebKitTestRunner::ReportLeakDetectionResult( |
| 717 const LeakDetectionResult& report) { | 721 const LeakDetectionResult& report) { |
| 718 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 722 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
| 719 } | 723 } |
| 720 | 724 |
| 721 } // namespace content | 725 } // namespace content |
| OLD | NEW |