OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ |
| 6 #define ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ |
| 7 |
| 8 #include "athena/athena_export.h" |
| 9 |
| 10 namespace aura { |
| 11 class Window; |
| 12 } |
| 13 |
| 14 namespace gfx { |
| 15 class ImageSkia; |
| 16 } |
| 17 |
| 18 namespace athena { |
| 19 |
| 20 // Mananges screen and UI components on the screen such as background, |
| 21 // home card, etc. |
| 22 class ATHENA_EXPORT ScreenManager { |
| 23 public: |
| 24 // Creates, returns and deletes the singleton object of the ScreenManager |
| 25 // implementation. |
| 26 static ScreenManager* Create(aura::Window* root); |
| 27 static ScreenManager* Get(); |
| 28 static void Shutdown(); |
| 29 |
| 30 virtual ~ScreenManager() {} |
| 31 |
| 32 // Returns the container window for window on the screen. |
| 33 virtual aura::Window* GetContainerWindow() = 0; |
| 34 |
| 35 // Return the context object to be used for widget creation. |
| 36 virtual aura::Window* GetContext() = 0; |
| 37 |
| 38 // Sets the background image. |
| 39 virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0; |
| 40 }; |
| 41 |
| 42 } // namespace athena |
| 43 |
| 44 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ |
OLD | NEW |