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

Unified Diff: athena/screen/public/screen_manager.h

Issue 287163009: [Athena] minimum impl to add screen/background and test windows (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/screen/public/DEPS ('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
new file mode 100644
index 0000000000000000000000000000000000000000..78c4215de236df324e0364d22a5168853e6d2d4c
--- /dev/null
+++ b/athena/screen/public/screen_manager.h
@@ -0,0 +1,44 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_
+#define ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_
+
+#include "athena/athena_export.h"
+
+namespace aura {
+class Window;
+}
+
+namespace gfx {
+class ImageSkia;
+}
+
+namespace athena {
+
+// Mananges screen and UI components on the screen such as background,
+// home card, etc.
+class ATHENA_EXPORT ScreenManager {
+ public:
+ // Creates, returns and deletes the singleton object of the ScreenManager
+ // implementation.
+ static ScreenManager* Create(aura::Window* root);
+ static ScreenManager* Get();
+ static void Shutdown();
+
+ virtual ~ScreenManager() {}
+
+ // Returns the container window for window on the screen.
+ virtual aura::Window* GetContainerWindow() = 0;
+
+ // Return the context object to be used for widget creation.
+ virtual aura::Window* GetContext() = 0;
+
+ // Sets the background image.
+ virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0;
+};
+
+} // namespace athena
+
+#endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_
« no previous file with comments | « athena/screen/public/DEPS ('k') | athena/screen/screen_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698