 Chromium Code Reviews
 Chromium Code Reviews Issue 549603003:
  Create Mojo service for locking/unlocking screen orientation.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 549603003:
  Create Mojo service for locking/unlocking screen orientation.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| Index: content/public/common/screen_orientation.mojom | 
| diff --git a/content/public/common/screen_orientation.mojom b/content/public/common/screen_orientation.mojom | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..7d40436f89e318cf8d5a54803533fe57094a085c | 
| --- /dev/null | 
| +++ b/content/public/common/screen_orientation.mojom | 
| @@ -0,0 +1,33 @@ | 
| +// Copyright 2014 The Chromium Authors. All rights reserved. | 
| +// Use of this source code is governed by a BSD-style license that can be | 
| +// found in the LICENSE file. | 
| + | 
| +module content { | 
| + | 
| +enum ScreenOrientationLockType { | 
| + DEFAULT = 0, // Equivalent to unlock. | 
| + PORTRAIT_PRIMARY, | 
| + PORTRAIT_SECONDARY, | 
| + LANDSCAPE_PRIMARY, | 
| + LANDSCAPE_SECONDARY, | 
| + ANY, | 
| + LANDSCAPE, | 
| + PORTRAIT, | 
| + NATURAL, | 
| +}; | 
| + | 
| +enum ScreenOrientationLockResult { | 
| + // The lock was successfully applied. | 
| + SUCCESS, | 
| + | 
| + // Failed because locking isn't available on the platform. | 
| + ERROR_NOT_AVAILABLE, | 
| 
qsr
2014/09/22 13:01:48
Do we want to remove this, and instead not registe
 | 
| + | 
| + // Failed because fullscreen is required to lock. | 
| + ERROR_FULLSCREEN_REQUIRED, | 
| + | 
| + // Failed because another lock/unlock got called before this one ended. | 
| + ERROR_CANCELED, | 
| +}; | 
| + | 
| +} |