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

Unified Diff: ash/wm/workspace/workspace_layout_manager.h

Issue 169643005: Adding a gray semi transparent backdrop behind the topmost window within the default container (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Created 6 years, 9 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: ash/wm/workspace/workspace_layout_manager.h
diff --git a/ash/wm/workspace/workspace_layout_manager.h b/ash/wm/workspace/workspace_layout_manager.h
index 1c20d2edafcefbfe0577450426088eeaded03544..0bfec6a8c38377b73b7f837805d4ef4260acc1a0 100644
--- a/ash/wm/workspace/workspace_layout_manager.h
+++ b/ash/wm/workspace/workspace_layout_manager.h
@@ -13,6 +13,7 @@
#include "ash/wm/wm_types.h"
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/memory/scoped_ptr.h"
#include "ui/aura/client/activation_change_observer.h"
#include "ui/aura/layout_manager.h"
#include "ui/aura/window_observer.h"
@@ -36,6 +37,18 @@ class WMEvent;
namespace internal {
class ShelfLayoutManager;
+class WorkspaceLayoutManagerBackdrop;
sky 2014/03/06 21:34:13 You shouldn't need this.
Mr4D (OOO till 08-26) 2014/03/07 01:00:12 Done.
+
+// A delegate which can be set to create and control a backdrop which gets
+// placed below the top level window.
+class MaximizeBackdropDelegate {
sky 2014/03/06 21:34:13 Move to own header and name WorkspaceLayoutManager
Mr4D (OOO till 08-26) 2014/03/07 01:00:12 Done.
+ public:
+ MaximizeBackdropDelegate() {}
+ virtual ~MaximizeBackdropDelegate() {}
+
+ // Call to restack the backdrop.
+ virtual void RestackBackdrop() = 0;
+};
// LayoutManager used on the window created for a workspace.
class ASH_EXPORT WorkspaceLayoutManager
@@ -50,6 +63,11 @@ class ASH_EXPORT WorkspaceLayoutManager
void SetShelf(internal::ShelfLayoutManager* shelf);
+ // A delegate which can be set to add a backdrop behind the top most visible
+ // window. With the call the ownership of the delegate will be transferred to
+ // the WorkspaceLayoutManager.
+ void SetMaximizeBackdropDelegate(MaximizeBackdropDelegate* delegate);
sky 2014/03/06 21:34:13 Make take scoped_ptr.
Mr4D (OOO till 08-26) 2014/03/07 01:00:12 Done.
+
// Overridden from aura::LayoutManager:
virtual void OnWindowResized() OVERRIDE {}
virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE;
@@ -128,6 +146,10 @@ class ASH_EXPORT WorkspaceLayoutManager
// True if this workspace is currently in fullscreen mode.
bool is_fullscreen_;
+ // A window which covers the full container and which gets inserted behind the
+ // topmost visible window.
+ scoped_ptr<MaximizeBackdropDelegate> backdrop_delegate_;
+
DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager);
};

Powered by Google App Engine
This is Rietveld 408576698