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

Side by Side Diff: content/public/common/screen_orientation.mojom

Issue 549603003: Create Mojo service for locking/unlocking screen orientation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 6 years, 3 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module content {
6
7 enum ScreenOrientationLockType {
8 DEFAULT = 0, // Equivalent to unlock.
9 PORTRAIT_PRIMARY,
10 PORTRAIT_SECONDARY,
11 LANDSCAPE_PRIMARY,
12 LANDSCAPE_SECONDARY,
13 ANY,
14 LANDSCAPE,
15 PORTRAIT,
16 NATURAL,
17 };
18
19 enum ScreenOrientationLockResult {
20 // The lock was successfully applied.
21 SUCCESS,
22
23 // Failed because locking isn't available on the platform.
24 ERROR_NOT_AVAILABLE,
25
26 // Failed because fullscreen is required to lock.
27 ERROR_FULLSCREEN_REQUIRED,
28
29 // Failed because another lock/unlock got called before this one ended.
30 ERROR_CANCELED,
31 };
32
33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698