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/layout_test/blink_test_runner.h" | 5 #include "content/shell/renderer/layout_test/blink_test_runner.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <clocale> | 10 #include <clocale> |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 render_view()->SetEditCommandForNextKeyEvent(name, value); | 271 render_view()->SetEditCommandForNextKeyEvent(name, value); |
272 } | 272 } |
273 | 273 |
274 void BlinkTestRunner::SetGamepadProvider( | 274 void BlinkTestRunner::SetGamepadProvider( |
275 test_runner::GamepadController* controller) { | 275 test_runner::GamepadController* controller) { |
276 std::unique_ptr<MockGamepadProvider> provider( | 276 std::unique_ptr<MockGamepadProvider> provider( |
277 new MockGamepadProvider(controller)); | 277 new MockGamepadProvider(controller)); |
278 SetMockGamepadProvider(std::move(provider)); | 278 SetMockGamepadProvider(std::move(provider)); |
279 } | 279 } |
280 | 280 |
281 void BlinkTestRunner::SetDeviceLightData(const double data) { | |
282 SetMockDeviceLightData(data); | |
283 } | |
284 | |
285 void BlinkTestRunner::SetDeviceMotionData(const MotionData& data) { | 281 void BlinkTestRunner::SetDeviceMotionData(const MotionData& data) { |
286 SetMockDeviceMotionData(data); | 282 SetMockDeviceMotionData(data); |
287 } | 283 } |
288 | 284 |
289 void BlinkTestRunner::SetDeviceOrientationData(const OrientationData& data) { | 285 void BlinkTestRunner::SetDeviceOrientationData(const OrientationData& data) { |
290 SetMockDeviceOrientationData(data); | 286 SetMockDeviceOrientationData(data); |
291 } | 287 } |
292 | 288 |
293 void BlinkTestRunner::PrintMessageToStderr(const std::string& message) { | 289 void BlinkTestRunner::PrintMessageToStderr(const std::string& message) { |
294 Send(new ShellViewHostMsg_PrintMessageToStderr(routing_id(), message)); | 290 Send(new ShellViewHostMsg_PrintMessageToStderr(routing_id(), message)); |
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1057 void BlinkTestRunner::ReportLeakDetectionResult( | 1053 void BlinkTestRunner::ReportLeakDetectionResult( |
1058 const LeakDetectionResult& report) { | 1054 const LeakDetectionResult& report) { |
1059 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 1055 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
1060 } | 1056 } |
1061 | 1057 |
1062 void BlinkTestRunner::OnDestruct() { | 1058 void BlinkTestRunner::OnDestruct() { |
1063 delete this; | 1059 delete this; |
1064 } | 1060 } |
1065 | 1061 |
1066 } // namespace content | 1062 } // namespace content |
OLD | NEW |