OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ | 5 #ifndef ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ |
6 #define ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ | 6 #define ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "athena/athena_export.h" | 10 #include "athena/athena_export.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // Creates the container window on the screen. | 60 // Creates the container window on the screen. |
61 virtual aura::Window* CreateContainer(const ContainerParams& params) = 0; | 61 virtual aura::Window* CreateContainer(const ContainerParams& params) = 0; |
62 | 62 |
63 // Return the context object to be used for widget creation. | 63 // Return the context object to be used for widget creation. |
64 virtual aura::Window* GetContext() = 0; | 64 virtual aura::Window* GetContext() = 0; |
65 | 65 |
66 // Set screen rotation. | 66 // Set screen rotation. |
67 // TODO(flackr): Extract and use ash DisplayManager to set rotation | 67 // TODO(flackr): Extract and use ash DisplayManager to set rotation |
68 // instead: http://crbug.com/401044. | 68 // instead: http://crbug.com/401044. |
69 virtual void SetRotation(gfx::Display::Rotation rotation) = 0; | 69 virtual void SetRotation(gfx::Display::Rotation rotation) = 0; |
| 70 virtual void SetRotationLocked(bool rotation_locked) = 0; |
70 | 71 |
71 // Returns the LayerAnimator to use to animate the entire screen (e.g. fade | 72 // Returns the LayerAnimator to use to animate the entire screen (e.g. fade |
72 // screen to white). | 73 // screen to white). |
73 virtual ui::LayerAnimator* GetScreenAnimator() = 0; | 74 virtual ui::LayerAnimator* GetScreenAnimator() = 0; |
74 }; | 75 }; |
75 | 76 |
76 } // namespace athena | 77 } // namespace athena |
77 | 78 |
78 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ | 79 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ |
OLD | NEW |