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

Unified Diff: ash/wm/workspace_controller.cc

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/workspace_controller.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace_controller.cc
diff --git a/ash/wm/workspace_controller.cc b/ash/wm/workspace_controller.cc
index a47772720ef2668bcca22e63888865589f40e00a..08f2a42b5fc8e8e284610f9f6634734de3068927 100644
--- a/ash/wm/workspace_controller.cc
+++ b/ash/wm/workspace_controller.cc
@@ -10,12 +10,13 @@
#include "ash/shelf/shelf_layout_manager.h"
#include "ash/shell.h"
#include "ash/shell_window_ids.h"
+#include "ash/wm/common/workspace/workspace_layout_manager_delegate.h"
#include "ash/wm/window_animations.h"
#include "ash/wm/window_state.h"
#include "ash/wm/window_util.h"
#include "ash/wm/workspace/workspace_event_handler.h"
#include "ash/wm/workspace/workspace_layout_manager.h"
-#include "ash/wm/workspace/workspace_layout_manager_delegate.h"
+#include "ash/wm/workspace/workspace_layout_manager_backdrop_delegate.h"
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/window.h"
#include "ui/aura/window_event_dispatcher.h"
@@ -40,11 +41,14 @@ bool IsDockedAreaVisible(const ShelfLayoutManager* shelf) {
} // namespace
-WorkspaceController::WorkspaceController(aura::Window* viewport)
+WorkspaceController::WorkspaceController(
+ aura::Window* viewport,
+ std::unique_ptr<wm::WorkspaceLayoutManagerDelegate> delegate)
: viewport_(viewport),
shelf_(NULL),
event_handler_(new WorkspaceEventHandler),
- layout_manager_(new WorkspaceLayoutManager(viewport)) {
+ layout_manager_(
+ new WorkspaceLayoutManager(viewport, std::move(delegate))) {
SetWindowVisibilityAnimationTransition(
viewport_, ::wm::ANIMATE_NONE);
@@ -101,7 +105,6 @@ WorkspaceWindowState WorkspaceController::GetWindowState() const {
void WorkspaceController::SetShelf(ShelfLayoutManager* shelf) {
shelf_ = shelf;
- layout_manager_->SetShelf(shelf);
}
void WorkspaceController::DoInitialAnimation() {
@@ -134,7 +137,7 @@ void WorkspaceController::DoInitialAnimation() {
}
void WorkspaceController::SetMaximizeBackdropDelegate(
- std::unique_ptr<WorkspaceLayoutManagerDelegate> delegate) {
+ std::unique_ptr<WorkspaceLayoutManagerBackdropDelegate> delegate) {
layout_manager_->SetMaximizeBackdropDelegate(std::move(delegate));
}
« no previous file with comments | « ash/wm/workspace_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698