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

Side by Side Diff: content/shell/renderer/webkit_test_runner.cc

Issue 268673015: Support screen.lockOrientation() / screen.unlockOrientation() when running layout tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Take feedback into consideration Created 6 years, 7 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 | Annotate | Revision Log
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/webkit_test_runner.h" 5 #include "content/shell/renderer/webkit_test_runner.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <clocale> 8 #include <clocale>
9 #include <cmath> 9 #include <cmath>
10 10
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 void WebKitTestRunner::setDeviceOrientationData( 250 void WebKitTestRunner::setDeviceOrientationData(
251 const WebDeviceOrientationData& data) { 251 const WebDeviceOrientationData& data) {
252 SetMockDeviceOrientationData(data); 252 SetMockDeviceOrientationData(data);
253 } 253 }
254 254
255 void WebKitTestRunner::setScreenOrientation( 255 void WebKitTestRunner::setScreenOrientation(
256 const WebScreenOrientationType& orientation) { 256 const WebScreenOrientationType& orientation) {
257 SetMockScreenOrientation(orientation); 257 SetMockScreenOrientation(orientation);
258 } 258 }
259 259
260 void WebKitTestRunner::resetScreenOrientation() {
261 ResetMockScreenOrientation();
262 }
263
260 void WebKitTestRunner::printMessage(const std::string& message) { 264 void WebKitTestRunner::printMessage(const std::string& message) {
261 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message)); 265 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message));
262 } 266 }
263 267
264 void WebKitTestRunner::postTask(WebTask* task) { 268 void WebKitTestRunner::postTask(WebTask* task) {
265 Platform::current()->callOnMainThread(InvokeTaskHelper, task); 269 Platform::current()->callOnMainThread(InvokeTaskHelper, task);
266 } 270 }
267 271
268 void WebKitTestRunner::postDelayedTask(WebTask* task, long long ms) { 272 void WebKitTestRunner::postDelayedTask(WebTask* task, long long ms) {
269 base::MessageLoop::current()->PostDelayedTask( 273 base::MessageLoop::current()->PostDelayedTask(
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 754
751 leak_detector_->TryLeakDetection(main_frame); 755 leak_detector_->TryLeakDetection(main_frame);
752 } 756 }
753 757
754 void WebKitTestRunner::ReportLeakDetectionResult( 758 void WebKitTestRunner::ReportLeakDetectionResult(
755 const LeakDetectionResult& report) { 759 const LeakDetectionResult& report) {
756 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 760 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
757 } 761 }
758 762
759 } // namespace content 763 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698