Chromium Code Reviews| Index: third_party/WebKit/public/platform/modules/screen_orientation/screen_orientation.mojom |
| diff --git a/third_party/WebKit/public/platform/modules/screen_orientation/screen_orientation.mojom b/third_party/WebKit/public/platform/modules/screen_orientation/screen_orientation.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e91d0a29138a74daf75322fc33eed6839850c48d |
| --- /dev/null |
| +++ b/third_party/WebKit/public/platform/modules/screen_orientation/screen_orientation.mojom |
| @@ -0,0 +1,31 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
|
mlamouri (slow - plz ping)
2016/11/13 00:26:36
FWIW, I would call this screen_orientation_lock_ty
lunalu1
2016/11/16 18:46:59
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +module blink.mojom; |
| + |
| +enum ScreenOrientationLockResult { |
| + // The lock was successfully applied. |
| + SCREEN_ORIENTATION_LOCK_RESULT_SUCCESS, |
| + |
| + // Failed because locking isn't available on the platform. |
| + SCREEN_ORIENTATION_LOCK_RESULT_ERROR_NOT_AVAILABLE, |
| + |
| + // Failed because fullscreen is required to lock. |
| + SCREEN_ORIENTATION_LOCK_RESULT_ERROR_FULLSCREEN_REQUIRED, |
| + |
| + // Failed because another lock/unlock got called before that one ended. |
| + SCREEN_ORIENTATION_LOCK_RESULT_ERROR_CANCELED, |
| +}; |
| + |
| +enum ScreenOrientationLockType { |
| + DEFAULT = 0, // Equivalent to unlock. |
| + PORTRAIT_PRIMARY, |
| + PORTRAIT_SECONDARY, |
| + LANDSCAPE_PRIMARY, |
| + LANDSCAPE_SECONDARY, |
| + ANY, |
| + LANDSCAPE, |
| + PORTRAIT, |
| + NATURAL, |
| +}; |