Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: athena/screen/public/screen_manager.h

Issue 287253003: Add initial home card impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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>
9
8 #include "athena/athena_export.h" 10 #include "athena/athena_export.h"
9 11
10 namespace aura { 12 namespace aura {
11 class Window; 13 class Window;
12 } 14 }
13 15
14 namespace gfx { 16 namespace gfx {
15 class ImageSkia; 17 class ImageSkia;
16 } 18 }
17 19
18 namespace athena { 20 namespace athena {
19 21
20 // Mananges screen and UI components on the screen such as background, 22 // Mananges basic UI components on the screen such as background, and provide
21 // home card, etc. 23 // API for other UI components, such as window manager, home card, to
24 // create and manage their windows on the screen.
22 class ATHENA_EXPORT ScreenManager { 25 class ATHENA_EXPORT ScreenManager {
23 public: 26 public:
24 // Creates, returns and deletes the singleton object of the ScreenManager 27 // Creates, returns and deletes the singleton object of the ScreenManager
25 // implementation. 28 // implementation.
26 static ScreenManager* Create(aura::Window* root); 29 static ScreenManager* Create(aura::Window* root);
27 static ScreenManager* Get(); 30 static ScreenManager* Get();
28 static void Shutdown(); 31 static void Shutdown();
29 32
30 virtual ~ScreenManager() {} 33 virtual ~ScreenManager() {}
31 34
32 // Returns the container window for window on the screen. 35 // Creates the container window that is used when creating a normal
33 virtual aura::Window* GetContainerWindow() = 0; 36 // widget without specific parent.
37 virtual aura::Window* CreateDefaultContainer(const std::string& name) = 0;
38
39 // Creates the container window on the screen.
40 virtual aura::Window* CreateContainer(const std::string& name) = 0;
34 41
35 // Return the context object to be used for widget creation. 42 // Return the context object to be used for widget creation.
36 virtual aura::Window* GetContext() = 0; 43 virtual aura::Window* GetContext() = 0;
37 44
38 // Sets the background image. 45 // Sets the background image.
39 virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0; 46 virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0;
40 }; 47 };
41 48
42 } // namespace athena 49 } // namespace athena
43 50
44 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ 51 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698