| 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 #include <algorithm> | 8 #include <algorithm> |
| 9 #include <clocale> | 9 #include <clocale> |
| 10 #include <cmath> | 10 #include <cmath> |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 mock_client->UpdateDeviceOrientation( | 294 mock_client->UpdateDeviceOrientation( |
| 295 render_view()->GetWebView()->mainFrame()->toWebLocalFrame(), orientation); | 295 render_view()->GetWebView()->mainFrame()->toWebLocalFrame(), orientation); |
| 296 } | 296 } |
| 297 | 297 |
| 298 void BlinkTestRunner::ResetScreenOrientation() { | 298 void BlinkTestRunner::ResetScreenOrientation() { |
| 299 test_runner::MockScreenOrientationClient* mock_client = | 299 test_runner::MockScreenOrientationClient* mock_client = |
| 300 proxy()->GetScreenOrientationClientMock(); | 300 proxy()->GetScreenOrientationClientMock(); |
| 301 mock_client->ResetData(); | 301 mock_client->ResetData(); |
| 302 } | 302 } |
| 303 | 303 |
| 304 void BlinkTestRunner::DidChangeBatteryStatus( | |
| 305 const blink::WebBatteryStatus& status) { | |
| 306 MockBatteryStatusChanged(status); | |
| 307 } | |
| 308 | |
| 309 void BlinkTestRunner::PrintMessage(const std::string& message) { | 304 void BlinkTestRunner::PrintMessage(const std::string& message) { |
| 310 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message)); | 305 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message)); |
| 311 } | 306 } |
| 312 | 307 |
| 313 void BlinkTestRunner::PostTask(test_runner::WebTask* task) { | 308 void BlinkTestRunner::PostTask(test_runner::WebTask* task) { |
| 314 Platform::current()->currentThread()->taskRunner()->postTask( | 309 Platform::current()->currentThread()->taskRunner()->postTask( |
| 315 WebTraceLocation(__FUNCTION__, __FILE__), | 310 WebTraceLocation(__FUNCTION__, __FILE__), |
| 316 new InvokeTaskHelper(make_scoped_ptr(task))); | 311 new InvokeTaskHelper(make_scoped_ptr(task))); |
| 317 } | 312 } |
| 318 | 313 |
| (...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1030 get_bluetooth_events_callbacks_.pop_front(); | 1025 get_bluetooth_events_callbacks_.pop_front(); |
| 1031 callback.Run(events); | 1026 callback.Run(events); |
| 1032 } | 1027 } |
| 1033 | 1028 |
| 1034 void BlinkTestRunner::ReportLeakDetectionResult( | 1029 void BlinkTestRunner::ReportLeakDetectionResult( |
| 1035 const LeakDetectionResult& report) { | 1030 const LeakDetectionResult& report) { |
| 1036 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 1031 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
| 1037 } | 1032 } |
| 1038 | 1033 |
| 1039 } // namespace content | 1034 } // namespace content |
| OLD | NEW |