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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « athena/main/placeholder.cc ('k') | athena/screen/screen_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/screen/public/screen_manager.h
diff --git a/athena/screen/public/screen_manager.h b/athena/screen/public/screen_manager.h
index 78c4215de236df324e0364d22a5168853e6d2d4c..c2914fe88f9f6443a99643a7ee4d139d0757a03c 100644
--- a/athena/screen/public/screen_manager.h
+++ b/athena/screen/public/screen_manager.h
@@ -5,6 +5,8 @@
#ifndef ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_
#define ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_
+#include <string>
+
#include "athena/athena_export.h"
namespace aura {
@@ -17,8 +19,9 @@ class ImageSkia;
namespace athena {
-// Mananges screen and UI components on the screen such as background,
-// home card, etc.
+// Mananges basic UI components on the screen such as background, and provide
+// API for other UI components, such as window manager, home card, to
+// create and manage their windows on the screen.
class ATHENA_EXPORT ScreenManager {
public:
// Creates, returns and deletes the singleton object of the ScreenManager
@@ -29,8 +32,12 @@ class ATHENA_EXPORT ScreenManager {
virtual ~ScreenManager() {}
- // Returns the container window for window on the screen.
- virtual aura::Window* GetContainerWindow() = 0;
+ // Creates the container window that is used when creating a normal
+ // widget without specific parent.
+ virtual aura::Window* CreateDefaultContainer(const std::string& name) = 0;
+
+ // Creates the container window on the screen.
+ virtual aura::Window* CreateContainer(const std::string& name) = 0;
// Return the context object to be used for widget creation.
virtual aura::Window* GetContext() = 0;
« no previous file with comments | « athena/main/placeholder.cc ('k') | athena/screen/screen_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698