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

Unified Diff: ash/wm/maximize_mode/maximize_mode_window_manager.cc

Issue 2091263004: Moves a couple of the maximize mode classes to ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 4 years, 6 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/maximize_mode/maximize_mode_window_manager.cc
diff --git a/ash/wm/maximize_mode/maximize_mode_window_manager.cc b/ash/wm/maximize_mode/maximize_mode_window_manager.cc
index 8daec791fc66754206dbbfa7c36145323b4a2fb4..01f03b7667759553fff91778971cfc5ccad9361f 100644
--- a/ash/wm/maximize_mode/maximize_mode_window_manager.cc
+++ b/ash/wm/maximize_mode/maximize_mode_window_manager.cc
@@ -73,7 +73,8 @@ void MaximizeModeWindowManager::AddWindow(aura::Window* window) {
MaximizeAndTrackWindow(window);
}
-void MaximizeModeWindowManager::WindowStateDestroyed(aura::Window* window) {
+void MaximizeModeWindowManager::WindowStateDestroyed(WmWindow* wm_window) {
+ aura::Window* window = WmWindowAura::GetAuraWindow(wm_window);
// At this time ForgetWindow() should already have been called. If not,
// someone else must have replaced the "window manager's state object".
DCHECK(!window->HasObserver(this));
@@ -251,7 +252,8 @@ void MaximizeModeWindowManager::MaximizeAndTrackWindow(aura::Window* window) {
// We create and remember a maximize mode state which will attach itself to
// the provided state object.
- window_state_map_[window] = new MaximizeModeWindowState(window, this);
+ window_state_map_[window] =
+ new MaximizeModeWindowState(WmWindowAura::Get(window), this);
}
void MaximizeModeWindowManager::ForgetWindow(aura::Window* window) {
@@ -343,7 +345,8 @@ void MaximizeModeWindowManager::EnableBackdropBehindTopWindowOnEachDisplay(
controller->GetRootWindow(), kShellWindowId_DefaultContainer);
controller->workspace_controller()->SetMaximizeBackdropDelegate(
std::unique_ptr<WorkspaceLayoutManagerBackdropDelegate>(
- enable ? new WorkspaceBackdropDelegate(container) : NULL));
+ enable ? new WorkspaceBackdropDelegate(WmWindowAura::Get(container))
+ : nullptr));
}
}
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_window_manager.h ('k') | ash/wm/maximize_mode/maximize_mode_window_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698