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 gfx { | |
18 class ImageSkia; | |
19 class Insets; | |
20 } | |
21 | |
22 namespace ui { | 17 namespace ui { |
23 class LayerAnimator; | 18 class LayerAnimator; |
24 } | 19 } |
25 | 20 |
26 namespace wm { | 21 namespace wm { |
27 class FocusRules; | 22 class FocusRules; |
28 } | 23 } |
29 | 24 |
30 namespace athena { | 25 namespace athena { |
31 class ScreenManagerDelegate; | 26 class ScreenManagerDelegate; |
(...skipping 29 matching lines...) Expand all Loading... |
61 // widget without specific parent. | 56 // widget without specific parent. |
62 virtual aura::Window* CreateDefaultContainer( | 57 virtual aura::Window* CreateDefaultContainer( |
63 const ContainerParams& params) = 0; | 58 const ContainerParams& params) = 0; |
64 | 59 |
65 // Creates the container window on the screen. | 60 // Creates the container window on the screen. |
66 virtual aura::Window* CreateContainer(const ContainerParams& params) = 0; | 61 virtual aura::Window* CreateContainer(const ContainerParams& params) = 0; |
67 | 62 |
68 // Return the context object to be used for widget creation. | 63 // Return the context object to be used for widget creation. |
69 virtual aura::Window* GetContext() = 0; | 64 virtual aura::Window* GetContext() = 0; |
70 | 65 |
71 // Sets the background image. | |
72 virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0; | |
73 | |
74 // Set screen rotation. | 66 // Set screen rotation. |
75 // TODO(flackr): Extract and use ash DisplayManager to set rotation | 67 // TODO(flackr): Extract and use ash DisplayManager to set rotation |
76 // instead: http://crbug.com/401044. | 68 // instead: http://crbug.com/401044. |
77 virtual void SetRotation(gfx::Display::Rotation rotation) = 0; | 69 virtual void SetRotation(gfx::Display::Rotation rotation) = 0; |
78 | 70 |
79 // Returns the LayerAnimator to use to animate the entire screen (e.g. fade | 71 // Returns the LayerAnimator to use to animate the entire screen (e.g. fade |
80 // screen to white). | 72 // screen to white). |
81 virtual ui::LayerAnimator* GetScreenAnimator() = 0; | 73 virtual ui::LayerAnimator* GetScreenAnimator() = 0; |
82 }; | 74 }; |
83 | 75 |
84 } // namespace athena | 76 } // namespace athena |
85 | 77 |
86 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ | 78 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ |
OLD | NEW |