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

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

Issue 2391883006: Mojo-ify implementation of screen orientation locking/unlocking. (Closed)
Patch Set: Ensure correct ordering between ViewMsg_Resize and screen orientation messages Created 4 years, 2 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 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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698