OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
blundell
2016/10/21 18:16:31
Is this duplicated with the one in //third_party/W
lunalu1
2016/10/24 16:57:36
Done.
| |
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.mojom; | |
6 | |
7 enum ScreenOrientationLockResult { | |
8 // The lock was successfully applied. | |
9 SCREEN_ORIENTATION_LOCK_RESULT_SUCCESS, | |
10 | |
11 // Failed because locking isn't available on the platform. | |
12 SCREEN_ORIENTATION_LOCK_RESULT_ERROR_NOT_AVAILABLE, | |
13 | |
14 // Failed because fullscreen is required to lock. | |
15 SCREEN_ORIENTATION_LOCK_RESULT_ERROR_FULLSCREEN_REQUIRED, | |
16 | |
17 // Failed because another lock/unlock got called before that one ended. | |
18 SCREEN_ORIENTATION_LOCK_RESULT_ERROR_CANCELED, | |
19 }; | |
20 | |
21 enum ScreenOrientationLockType { | |
22 DEFAULT = 0, // Equivalent to unlock. | |
23 PORTRAIT_PRIMARY, | |
24 PORTRAIT_SECONDARY, | |
25 LANDSCAPE_PRIMARY, | |
26 LANDSCAPE_SECONDARY, | |
27 ANY, | |
28 LANDSCAPE, | |
29 PORTRAIT, | |
30 NATURAL, | |
31 }; | |
OLD | NEW |