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 | 11 |
12 namespace aura { | 12 namespace aura { |
13 class Window; | 13 class Window; |
14 } | 14 } |
15 | 15 |
16 namespace gfx { | 16 namespace gfx { |
17 class ImageSkia; | 17 class ImageSkia; |
18 } | 18 } |
19 | 19 |
| 20 namespace ui { |
| 21 class LayerAnimator; |
| 22 } |
| 23 |
20 namespace wm { | 24 namespace wm { |
21 class FocusRules; | 25 class FocusRules; |
22 } | 26 } |
23 | 27 |
24 namespace athena { | 28 namespace athena { |
25 | 29 |
26 // Mananges basic UI components on the screen such as background, and provide | 30 // Mananges basic UI components on the screen such as background, and provide |
27 // API for other UI components, such as window manager, home card, to | 31 // API for other UI components, such as window manager, home card, to |
28 // create and manage their windows on the screen. | 32 // create and manage their windows on the screen. |
29 class ATHENA_EXPORT ScreenManager { | 33 class ATHENA_EXPORT ScreenManager { |
(...skipping 27 matching lines...) Expand all Loading... |
57 | 61 |
58 // Creates the container window on the screen. | 62 // Creates the container window on the screen. |
59 virtual aura::Window* CreateContainer(const ContainerParams& params) = 0; | 63 virtual aura::Window* CreateContainer(const ContainerParams& params) = 0; |
60 | 64 |
61 // Return the context object to be used for widget creation. | 65 // Return the context object to be used for widget creation. |
62 virtual aura::Window* GetContext() = 0; | 66 virtual aura::Window* GetContext() = 0; |
63 | 67 |
64 // Sets the background image. | 68 // Sets the background image. |
65 virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0; | 69 virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0; |
66 | 70 |
| 71 // Returns the LayerAnimator to use to animate the entire screen (e.g. fade |
| 72 // screen to white). |
| 73 virtual ui::LayerAnimator* GetScreenAnimator() = 0; |
| 74 |
67 // Create a focus rules. | 75 // Create a focus rules. |
68 // TODO(oshima): Make this virtual function. | 76 // TODO(oshima): Make this virtual function. |
69 static wm::FocusRules* CreateFocusRules(); | 77 static wm::FocusRules* CreateFocusRules(); |
70 }; | 78 }; |
71 | 79 |
72 } // namespace athena | 80 } // namespace athena |
73 | 81 |
74 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ | 82 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ |
OLD | NEW |