| OLD | NEW |
| (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 } |
| OLD | NEW |