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

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: Fixing build problem 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
« no previous file with comments | « ash/wm/maximize_mode/workspace_backdrop_delegate.cc ('k') | ash/wm/workspace/workspace_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6e2547a3ed1893146825d5c22b9738b64a99ebd1..ff15728179044abb3d17eda115cdd954af646b2c 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,7 @@ class WMEvent;
namespace internal {
class ShelfLayoutManager;
+class WorkspaceLayoutManagerDelegate;
// LayoutManager used on the window created for a workspace.
class ASH_EXPORT WorkspaceLayoutManager
@@ -50,6 +52,12 @@ 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(
+ scoped_ptr<WorkspaceLayoutManagerDelegate> delegate);
+
// Overridden from aura::LayoutManager:
virtual void OnWindowResized() OVERRIDE {}
virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE;
@@ -103,6 +111,18 @@ class ASH_EXPORT WorkspaceLayoutManager
// has changed.
void UpdateFullscreenState();
+ // Updates the bounds of the window for a stte type change from
+ // |old_show_type|.
+ void UpdateBoundsFromStateType(wm::WindowState* window_state,
+ wm::WindowStateType old_state_type);
+
+ // If |window_state| is maximized or fullscreen the bounds of the
+ // window are set and true is returned. Does nothing otherwise.
+ bool SetMaximizedOrFullscreenBounds(wm::WindowState* window_state);
+
+ // Animates the window bounds to |bounds|.
+ void SetChildBoundsAnimated(aura::Window* child, const gfx::Rect& bounds);
+
internal::ShelfLayoutManager* shelf_;
aura::Window* window_;
aura::Window* root_window_;
@@ -116,6 +136,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<WorkspaceLayoutManagerDelegate> backdrop_delegate_;
+
DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager);
};
« no previous file with comments | « ash/wm/maximize_mode/workspace_backdrop_delegate.cc ('k') | ash/wm/workspace/workspace_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698