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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 mock_client->UpdateDeviceOrientation( | 312 mock_client->UpdateDeviceOrientation( |
313 render_view()->GetWebView()->mainFrame()->toWebLocalFrame(), orientation); | 313 render_view()->GetWebView()->mainFrame()->toWebLocalFrame(), orientation); |
314 } | 314 } |
315 | 315 |
316 void BlinkTestRunner::ResetScreenOrientation() { | 316 void BlinkTestRunner::ResetScreenOrientation() { |
317 test_runner::MockScreenOrientationClient* mock_client = | 317 test_runner::MockScreenOrientationClient* mock_client = |
318 proxy()->GetScreenOrientationClientMock(); | 318 proxy()->GetScreenOrientationClientMock(); |
319 mock_client->ResetData(); | 319 mock_client->ResetData(); |
320 } | 320 } |
321 | 321 |
322 void BlinkTestRunner::DidChangeBatteryStatus( | |
323 const blink::WebBatteryStatus& status) { | |
324 MockBatteryStatusChanged(status); | |
325 } | |
326 | |
327 void BlinkTestRunner::PrintMessage(const std::string& message) { | 322 void BlinkTestRunner::PrintMessage(const std::string& message) { |
328 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message)); | 323 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message)); |
329 } | 324 } |
330 | 325 |
331 void BlinkTestRunner::PostTask(test_runner::WebTask* task) { | 326 void BlinkTestRunner::PostTask(test_runner::WebTask* task) { |
332 Platform::current()->currentThread()->taskRunner()->postTask( | 327 Platform::current()->currentThread()->taskRunner()->postTask( |
333 WebTraceLocation(__FUNCTION__, __FILE__), | 328 WebTraceLocation(__FUNCTION__, __FILE__), |
334 new InvokeTaskHelper(make_scoped_ptr(task))); | 329 new InvokeTaskHelper(make_scoped_ptr(task))); |
335 } | 330 } |
336 | 331 |
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1006 get_bluetooth_events_callbacks_.pop_front(); | 1001 get_bluetooth_events_callbacks_.pop_front(); |
1007 callback.Run(events); | 1002 callback.Run(events); |
1008 } | 1003 } |
1009 | 1004 |
1010 void BlinkTestRunner::ReportLeakDetectionResult( | 1005 void BlinkTestRunner::ReportLeakDetectionResult( |
1011 const LeakDetectionResult& report) { | 1006 const LeakDetectionResult& report) { |
1012 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 1007 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
1013 } | 1008 } |
1014 | 1009 |
1015 } // namespace content | 1010 } // namespace content |
OLD | NEW |