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

Unified Diff: content/test/layouttest_support.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 side-by-side diff with in-line comments
Download patch
Index: content/test/layouttest_support.cc
diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc
index f8d9a3aaca804bf454805352b7afd6c73e9637d0..588d1de6106e36dbb430b7462aae103c5d504d5e 100644
--- a/content/test/layouttest_support.cc
+++ b/content/test/layouttest_support.cc
@@ -108,6 +108,11 @@ void SetMockScreenOrientation(
SetMockScreenOrientationForTesting(orientation);
}
+void ResetMockScreenOrientation()
+{
+ RendererWebKitPlatformSupportImpl::ResetMockScreenOrientationForTesting();
+}
+
void EnableRendererLayoutTestMode() {
RenderThreadImpl::current()->set_layout_test_mode(true);
}

Powered by Google App Engine
This is Rietveld 408576698