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

Unified Diff: Source/modules/screen_orientation/ScreenOrientation.cpp

Issue 200893004: Remove the ability to lock to multiple orientations. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/screen_orientation/ScreenOrientation.cpp
diff --git a/Source/modules/screen_orientation/ScreenOrientation.cpp b/Source/modules/screen_orientation/ScreenOrientation.cpp
index 1894c1651cfe53cc61abc7b787132715fa9b22ad..c3599c158db9445aea71d29f3973b8deb0c35ca1 100644
--- a/Source/modules/screen_orientation/ScreenOrientation.cpp
+++ b/Source/modules/screen_orientation/ScreenOrientation.cpp
@@ -130,21 +130,6 @@ const AtomicString& ScreenOrientation::orientation(Screen& screen)
return orientationToString(controller.orientation());
}
-bool ScreenOrientation::lockOrientation(Screen& screen, const Vector<String>& orientationsVector)
-{
- blink::WebScreenOrientations orientations = 0;
- for (size_t i = 0; i < orientationsVector.size(); ++i) {
- blink::WebScreenOrientations currentOrientation = stringToOrientations(AtomicString(orientationsVector[i]));
- if (!currentOrientation)
- return false;
- orientations |= currentOrientation;
- }
- if (!orientations)
- return false;
- ScreenOrientation::from(screen).lockOrientationAsync(orientations);
- return true;
-}
-
bool ScreenOrientation::lockOrientation(Screen& screen, const AtomicString& orientationString)
{
blink::WebScreenOrientations orientations = stringToOrientations(orientationString);
« no previous file with comments | « Source/modules/screen_orientation/ScreenOrientation.h ('k') | Source/modules/screen_orientation/ScreenOrientation.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698