Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: content/shell/renderer/layout_test/blink_test_runner.cc

Issue 1740843002: Revert of Migrates battery_status from content/renderer/ to WebKit/platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
305 void BlinkTestRunner::PrintMessage(const std::string& message) { 310 void BlinkTestRunner::PrintMessage(const std::string& message) {
306 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message)); 311 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message));
307 } 312 }
308 313
309 void BlinkTestRunner::PostTask(test_runner::WebTask* task) { 314 void BlinkTestRunner::PostTask(test_runner::WebTask* task) {
310 Platform::current()->currentThread()->taskRunner()->postTask( 315 Platform::current()->currentThread()->taskRunner()->postTask(
311 WebTraceLocation(__FUNCTION__, __FILE__), 316 WebTraceLocation(__FUNCTION__, __FILE__),
312 new InvokeTaskHelper(make_scoped_ptr(task))); 317 new InvokeTaskHelper(make_scoped_ptr(task)));
313 } 318 }
314 319
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
1026 get_bluetooth_events_callbacks_.pop_front(); 1031 get_bluetooth_events_callbacks_.pop_front();
1027 callback.Run(events); 1032 callback.Run(events);
1028 } 1033 }
1029 1034
1030 void BlinkTestRunner::ReportLeakDetectionResult( 1035 void BlinkTestRunner::ReportLeakDetectionResult(
1031 const LeakDetectionResult& report) { 1036 const LeakDetectionResult& report) {
1032 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 1037 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
1033 } 1038 }
1034 1039
1035 } // namespace content 1040 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_runner.h ('k') | content/test/layouttest_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698