| 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" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 // True if the container will grab all of input events. | 45 // True if the container will grab all of input events. |
| 46 bool grab_inputs; | 46 bool grab_inputs; |
| 47 | 47 |
| 48 // Defines the z_order priority of the container. | 48 // Defines the z_order priority of the container. |
| 49 int z_order_priority; | 49 int z_order_priority; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 // Creates, returns and deletes the singleton object of the ScreenManager | 52 // Creates, returns and deletes the singleton object of the ScreenManager |
| 53 // implementation. | 53 // implementation. |
| 54 static ScreenManager* Create(ScreenManagerDelegate* delegate, | 54 static ScreenManager* Create(aura::Window* root); |
| 55 aura::Window* root); | |
| 56 static ScreenManager* Get(); | 55 static ScreenManager* Get(); |
| 57 static void Shutdown(); | 56 static void Shutdown(); |
| 58 | 57 |
| 59 virtual ~ScreenManager() {} | 58 virtual ~ScreenManager() {} |
| 60 | 59 |
| 61 // Sets the screen's work area insets. | |
| 62 virtual void SetWorkAreaInsets(const gfx::Insets& insets) = 0; | |
| 63 | |
| 64 // Creates the container window that is used when creating a normal | 60 // Creates the container window that is used when creating a normal |
| 65 // widget without specific parent. | 61 // widget without specific parent. |
| 66 virtual aura::Window* CreateDefaultContainer( | 62 virtual aura::Window* CreateDefaultContainer( |
| 67 const ContainerParams& params) = 0; | 63 const ContainerParams& params) = 0; |
| 68 | 64 |
| 69 // Creates the container window on the screen. | 65 // Creates the container window on the screen. |
| 70 virtual aura::Window* CreateContainer(const ContainerParams& params) = 0; | 66 virtual aura::Window* CreateContainer(const ContainerParams& params) = 0; |
| 71 | 67 |
| 72 // Return the context object to be used for widget creation. | 68 // Return the context object to be used for widget creation. |
| 73 virtual aura::Window* GetContext() = 0; | 69 virtual aura::Window* GetContext() = 0; |
| 74 | 70 |
| 75 // Sets the background image. | 71 // Sets the background image. |
| 76 virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0; | 72 virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0; |
| 77 | 73 |
| 78 // Set screen rotation. | 74 // Set screen rotation. |
| 79 // TODO(flackr): Extract and use ash DisplayManager to set rotation | 75 // TODO(flackr): Extract and use ash DisplayManager to set rotation |
| 80 // instead: http://crbug.com/401044. | 76 // instead: http://crbug.com/401044. |
| 81 virtual void SetRotation(gfx::Display::Rotation rotation) = 0; | 77 virtual void SetRotation(gfx::Display::Rotation rotation) = 0; |
| 82 | 78 |
| 83 // Returns the LayerAnimator to use to animate the entire screen (e.g. fade | 79 // Returns the LayerAnimator to use to animate the entire screen (e.g. fade |
| 84 // screen to white). | 80 // screen to white). |
| 85 virtual ui::LayerAnimator* GetScreenAnimator() = 0; | 81 virtual ui::LayerAnimator* GetScreenAnimator() = 0; |
| 86 | |
| 87 // Create a focus rules. | |
| 88 // TODO(oshima): Make this virtual function. | |
| 89 static wm::FocusRules* CreateFocusRules(); | |
| 90 }; | 82 }; |
| 91 | 83 |
| 92 } // namespace athena | 84 } // namespace athena |
| 93 | 85 |
| 94 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ | 86 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ |
| OLD | NEW |