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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 mock_client->UpdateDeviceOrientation( | 314 mock_client->UpdateDeviceOrientation( |
315 render_view()->GetWebView()->mainFrame()->toWebLocalFrame(), orientation); | 315 render_view()->GetWebView()->mainFrame()->toWebLocalFrame(), orientation); |
316 } | 316 } |
317 | 317 |
318 void BlinkTestRunner::ResetScreenOrientation() { | 318 void BlinkTestRunner::ResetScreenOrientation() { |
319 test_runner::MockScreenOrientationClient* mock_client = | 319 test_runner::MockScreenOrientationClient* mock_client = |
320 proxy()->GetScreenOrientationClientMock(); | 320 proxy()->GetScreenOrientationClientMock(); |
321 mock_client->ResetData(); | 321 mock_client->ResetData(); |
322 } | 322 } |
323 | 323 |
324 void BlinkTestRunner::DidChangeBatteryStatus( | |
325 const blink::WebBatteryStatus& status) { | |
326 MockBatteryStatusChanged(status); | |
327 } | |
328 | |
329 void BlinkTestRunner::PrintMessage(const std::string& message) { | 324 void BlinkTestRunner::PrintMessage(const std::string& message) { |
330 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message)); | 325 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message)); |
331 } | 326 } |
332 | 327 |
333 void BlinkTestRunner::PostTask(test_runner::WebTask* task) { | 328 void BlinkTestRunner::PostTask(test_runner::WebTask* task) { |
334 Platform::current()->currentThread()->taskRunner()->postTask( | 329 Platform::current()->currentThread()->taskRunner()->postTask( |
335 WebTraceLocation(__FUNCTION__, __FILE__), | 330 WebTraceLocation(__FUNCTION__, __FILE__), |
336 new InvokeTaskHelper(make_scoped_ptr(task))); | 331 new InvokeTaskHelper(make_scoped_ptr(task))); |
337 } | 332 } |
338 | 333 |
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1046 get_bluetooth_events_callbacks_.pop_front(); | 1041 get_bluetooth_events_callbacks_.pop_front(); |
1047 callback.Run(events); | 1042 callback.Run(events); |
1048 } | 1043 } |
1049 | 1044 |
1050 void BlinkTestRunner::ReportLeakDetectionResult( | 1045 void BlinkTestRunner::ReportLeakDetectionResult( |
1051 const LeakDetectionResult& report) { | 1046 const LeakDetectionResult& report) { |
1052 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 1047 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
1053 } | 1048 } |
1054 | 1049 |
1055 } // namespace content | 1050 } // namespace content |
OLD | NEW |