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 | 12 |
12 namespace aura { | 13 namespace aura { |
13 class Window; | 14 class Window; |
14 } | 15 } |
15 | 16 |
16 namespace gfx { | 17 namespace gfx { |
17 class ImageSkia; | 18 class ImageSkia; |
18 } | 19 } |
19 | 20 |
20 namespace ui { | 21 namespace ui { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
61 | 62 |
62 // Creates the container window on the screen. | 63 // Creates the container window on the screen. |
63 virtual aura::Window* CreateContainer(const ContainerParams& params) = 0; | 64 virtual aura::Window* CreateContainer(const ContainerParams& params) = 0; |
64 | 65 |
65 // Return the context object to be used for widget creation. | 66 // Return the context object to be used for widget creation. |
66 virtual aura::Window* GetContext() = 0; | 67 virtual aura::Window* GetContext() = 0; |
67 | 68 |
68 // Sets the background image. | 69 // Sets the background image. |
69 virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0; | 70 virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0; |
70 | 71 |
72 // Get/set screen rotation. | |
73 // TODO(flackr): Extract and use ash DisplayManager to get/set rotation | |
74 // instead: http://crbug.com/401044. | |
75 virtual gfx::Display::Rotation GetRotation() = 0; | |
oshima
2014/08/13 22:46:34
can you change to use use gfx::Screen::GetPrimaryD
flackr
2014/08/14 17:29:51
Do you mean in the implementation of this? Done. O
oshima
2014/08/14 19:28:53
The latter. We already have an API to get display
flackr
2014/08/14 21:04:09
Done.
| |
76 virtual void SetRotation(gfx::Display::Rotation rotation) = 0; | |
77 | |
71 // Returns the LayerAnimator to use to animate the entire screen (e.g. fade | 78 // Returns the LayerAnimator to use to animate the entire screen (e.g. fade |
72 // screen to white). | 79 // screen to white). |
73 virtual ui::LayerAnimator* GetScreenAnimator() = 0; | 80 virtual ui::LayerAnimator* GetScreenAnimator() = 0; |
74 | 81 |
75 // Create a focus rules. | 82 // Create a focus rules. |
76 // TODO(oshima): Make this virtual function. | 83 // TODO(oshima): Make this virtual function. |
77 static wm::FocusRules* CreateFocusRules(); | 84 static wm::FocusRules* CreateFocusRules(); |
78 }; | 85 }; |
79 | 86 |
80 } // namespace athena | 87 } // namespace athena |
81 | 88 |
82 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ | 89 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ |
OLD | NEW |