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

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

Issue 2234033002: mash: Remove WorkspaceLayoutManagerDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: ash/common/wm/workspace/workspace_layout_manager.h
diff --git a/ash/common/wm/workspace/workspace_layout_manager.h b/ash/common/wm/workspace/workspace_layout_manager.h
index a91fc6156a892b3f2e40c87fe6284d7ca66805ca..19e47be92df464c818c63ccc9ee05dff30ef9bb5 100644
--- a/ash/common/wm/workspace/workspace_layout_manager.h
+++ b/ash/common/wm/workspace/workspace_layout_manager.h
@@ -26,7 +26,6 @@ class WmRootWindowController;
class WorkspaceLayoutManagerBackdropDelegate;
namespace wm {
-class WorkspaceLayoutManagerDelegate;
class WMEvent;
}
@@ -40,14 +39,9 @@ class ASH_EXPORT WorkspaceLayoutManager
public ShellObserver,
public wm::WindowStateObserver {
public:
- WorkspaceLayoutManager(
- WmWindow* window,
- std::unique_ptr<wm::WorkspaceLayoutManagerDelegate> delegate);
-
+ explicit WorkspaceLayoutManager(WmWindow* window);
~WorkspaceLayoutManager() override;
- void DeleteDelegate();
James Cook 2016/08/10 19:55:41 Nice to get rid of calls like this.
msw 2016/08/10 20:47:40 Acknowledged.
-
// 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.
@@ -127,8 +121,6 @@ class ASH_EXPORT WorkspaceLayoutManager
WmRootWindowController* root_window_controller_;
WmShell* shell_;
- std::unique_ptr<wm::WorkspaceLayoutManagerDelegate> delegate_;
-
// Set of windows we're listening to.
WindowSet windows_;

Powered by Google App Engine
This is Rietveld 408576698