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

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

Issue 465803002: Make the minimized home card not overlap activities on Athena (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
Index: athena/screen/public/screen_manager.h
diff --git a/athena/screen/public/screen_manager.h b/athena/screen/public/screen_manager.h
index 82ad85592bf7067f2b44a9bbddb58f9ac7b17d7f..c1c894569127ddc864530d75f7ae0cc9af94d08d 100644
--- a/athena/screen/public/screen_manager.h
+++ b/athena/screen/public/screen_manager.h
@@ -15,6 +15,8 @@ class Window;
namespace gfx {
class ImageSkia;
+class Insets;
+class Rect;
}
namespace ui {
@@ -26,6 +28,7 @@ class FocusRules;
}
namespace athena {
+class ScreenManagerDelegate;
// Mananges basic UI components on the screen such as background, and provide
// API for other UI components, such as window manager, home card, to
@@ -48,12 +51,19 @@ class ATHENA_EXPORT ScreenManager {
// Creates, returns and deletes the singleton object of the ScreenManager
// implementation.
- static ScreenManager* Create(aura::Window* root);
+ static ScreenManager* Create(ScreenManagerDelegate* delegate,
oshima 2014/08/14 00:19:02 Nice. I wonder if root window parameter should al
pkotwicz 2014/08/14 15:49:39 I do not think that the root window parameter shou
oshima 2014/08/14 17:16:37 I was thinking from multi display support point of
+ aura::Window* root);
static ScreenManager* Get();
static void Shutdown();
virtual ~ScreenManager() {}
+ // Returns the screen's work area.
+ virtual gfx::Rect GetWorkArea() = 0;
oshima 2014/08/14 00:19:03 a client code should use gfx::Screen::GetPrimaryDi
+
+ // Sets the screen's work area insets.
+ virtual void SetWorkAreaInsets(const gfx::Insets& insets) = 0;
+
// Creates the container window that is used when creating a normal
// widget without specific parent.
virtual aura::Window* CreateDefaultContainer(

Powered by Google App Engine
This is Rietveld 408576698