| 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" |
| 11 #include "ui/gfx/display.h" | 11 #include "ui/gfx/display.h" |
| 12 | 12 |
| 13 namespace aura { | 13 namespace aura { |
| 14 class Window; | 14 class Window; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace ui { | |
| 18 class LayerAnimator; | |
| 19 } | |
| 20 | |
| 21 namespace wm { | |
| 22 class FocusRules; | |
| 23 } | |
| 24 | |
| 25 namespace athena { | 17 namespace athena { |
| 26 class ScreenManagerDelegate; | 18 class ScreenManagerDelegate; |
| 27 | 19 |
| 28 // Mananges basic UI components on the screen such as background, and provide | 20 // Mananges basic UI components on the screen such as background, and provide |
| 29 // API for other UI components, such as window manager, home card, to | 21 // API for other UI components, such as window manager, home card, to |
| 30 // create and manage their windows on the screen. | 22 // create and manage their windows on the screen. |
| 31 class ATHENA_EXPORT ScreenManager { | 23 class ATHENA_EXPORT ScreenManager { |
| 32 public: | 24 public: |
| 33 struct ContainerParams { | 25 struct ContainerParams { |
| 34 ContainerParams(const std::string& name, int z_order_priority); | 26 ContainerParams(const std::string& name, int z_order_priority); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 61 virtual aura::Window* CreateContainer(const ContainerParams& params) = 0; | 53 virtual aura::Window* CreateContainer(const ContainerParams& params) = 0; |
| 62 | 54 |
| 63 // Return the context object to be used for widget creation. | 55 // Return the context object to be used for widget creation. |
| 64 virtual aura::Window* GetContext() = 0; | 56 virtual aura::Window* GetContext() = 0; |
| 65 | 57 |
| 66 // Set screen rotation. | 58 // Set screen rotation. |
| 67 // TODO(flackr): Extract and use ash DisplayManager to set rotation | 59 // TODO(flackr): Extract and use ash DisplayManager to set rotation |
| 68 // instead: http://crbug.com/401044. | 60 // instead: http://crbug.com/401044. |
| 69 virtual void SetRotation(gfx::Display::Rotation rotation) = 0; | 61 virtual void SetRotation(gfx::Display::Rotation rotation) = 0; |
| 70 virtual void SetRotationLocked(bool rotation_locked) = 0; | 62 virtual void SetRotationLocked(bool rotation_locked) = 0; |
| 71 | |
| 72 // Returns the LayerAnimator to use to animate the entire screen (e.g. fade | |
| 73 // screen to white). | |
| 74 virtual ui::LayerAnimator* GetScreenAnimator() = 0; | |
| 75 }; | 63 }; |
| 76 | 64 |
| 77 } // namespace athena | 65 } // namespace athena |
| 78 | 66 |
| 79 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ | 67 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ |
| OLD | NEW |