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 wm { | 21 namespace wm { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
57 | 58 |
58 // Creates the container window on the screen. | 59 // Creates the container window on the screen. |
59 virtual aura::Window* CreateContainer(const ContainerParams& params) = 0; | 60 virtual aura::Window* CreateContainer(const ContainerParams& params) = 0; |
60 | 61 |
61 // Return the context object to be used for widget creation. | 62 // Return the context object to be used for widget creation. |
62 virtual aura::Window* GetContext() = 0; | 63 virtual aura::Window* GetContext() = 0; |
63 | 64 |
64 // Sets the background image. | 65 // Sets the background image. |
65 virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0; | 66 virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0; |
66 | 67 |
68 // Get/set screen rotation. | |
69 virtual gfx::Display::Rotation GetRotation() = 0; | |
70 virtual void SetRotation(gfx::Display::Rotation rotation) = 0; | |
oshima
2014/08/01 17:15:11
this is ok for the time being, but we should extra
flackr
2014/08/06 14:13:51
Done.
| |
71 | |
67 // Create a focus rules. | 72 // Create a focus rules. |
68 // TODO(oshima): Make this virtual function. | 73 // TODO(oshima): Make this virtual function. |
69 static wm::FocusRules* CreateFocusRules(); | 74 static wm::FocusRules* CreateFocusRules(); |
70 }; | 75 }; |
71 | 76 |
72 } // namespace athena | 77 } // namespace athena |
73 | 78 |
74 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ | 79 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ |
OLD | NEW |