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

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

Issue 1888153002: WorkspaceLayoutManagerDelegate -> WorkspaceLayoutManagerBackdropDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: =default and merge Created 4 years, 8 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.h ('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 7685356ed23828d76e25e175dd5e3259e1ea7255..cfe50349d9d09bc10844159167c0ae282ab6567d 100644
--- a/ash/wm/workspace/workspace_layout_manager.h
+++ b/ash/wm/workspace/workspace_layout_manager.h
@@ -30,11 +30,11 @@ class Layer;
}
namespace ash {
-class ShelfLayoutManager;
-class WorkspaceLayoutManagerDelegate;
+class WorkspaceLayoutManagerBackdropDelegate;
namespace wm {
class WindowState;
+class WorkspaceLayoutManagerDelegate;
class WMEvent;
}
@@ -47,16 +47,19 @@ class ASH_EXPORT WorkspaceLayoutManager
public ShellObserver,
public wm::WindowStateObserver {
public:
- explicit WorkspaceLayoutManager(aura::Window* window);
+ WorkspaceLayoutManager(
+ aura::Window* window,
+ std::unique_ptr<wm::WorkspaceLayoutManagerDelegate> delegate);
+
~WorkspaceLayoutManager() override;
- void SetShelf(ShelfLayoutManager* shelf);
+ void DeleteDelegate();
// 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(
- std::unique_ptr<WorkspaceLayoutManagerDelegate> delegate);
+ std::unique_ptr<WorkspaceLayoutManagerBackdropDelegate> delegate);
// Overridden from aura::LayoutManager:
void OnWindowResized() override {}
@@ -129,10 +132,11 @@ class ASH_EXPORT WorkspaceLayoutManager
// Animates the window bounds to |bounds|.
void SetChildBoundsAnimated(aura::Window* child, const gfx::Rect& bounds);
- ShelfLayoutManager* shelf_;
aura::Window* window_;
aura::Window* root_window_;
+ std::unique_ptr<wm::WorkspaceLayoutManagerDelegate> delegate_;
+
// Set of windows we're listening to.
WindowSet windows_;
@@ -144,7 +148,7 @@ class ASH_EXPORT WorkspaceLayoutManager
// A window which covers the full container and which gets inserted behind the
// topmost visible window.
- std::unique_ptr<WorkspaceLayoutManagerDelegate> backdrop_delegate_;
+ std::unique_ptr<WorkspaceLayoutManagerBackdropDelegate> backdrop_delegate_;
DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager);
};
« no previous file with comments | « ash/wm/maximize_mode/workspace_backdrop_delegate.h ('k') | ash/wm/workspace/workspace_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698