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