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

Unified Diff: ash/wm/dock/docked_window_layout_manager.cc

Issue 1890713002: Adds WmWindow and converts WindowState to use it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge again 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/default_state.cc ('k') | ash/wm/dock/docked_window_layout_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/dock/docked_window_layout_manager.cc
diff --git a/ash/wm/dock/docked_window_layout_manager.cc b/ash/wm/dock/docked_window_layout_manager.cc
index f7103b727df42b5f3433d2af9659907e3f6c32f1..6984077606d43d900b160b4aafe0ce98bd66dacf 100644
--- a/ash/wm/dock/docked_window_layout_manager.cc
+++ b/ash/wm/dock/docked_window_layout_manager.cc
@@ -18,6 +18,7 @@
#include "ash/wm/window_properties.h"
#include "ash/wm/window_resizer.h"
#include "ash/wm/window_state.h"
+#include "ash/wm/window_state_aura.h"
#include "ash/wm/window_util.h"
#include "ash/wm/workspace_controller.h"
#include "base/auto_reset.h"
@@ -838,7 +839,7 @@ void DockedWindowLayoutManager::OnShelfAlignmentChanged(
void DockedWindowLayoutManager::OnPreWindowStateTypeChange(
wm::WindowState* window_state,
wm::WindowStateType old_type) {
- aura::Window* window = window_state->window();
+ aura::Window* window = window_state->aura_window();
if (IsPopupOrTransient(window))
return;
// The window property will still be set, but no actual change will occur
@@ -962,7 +963,7 @@ void DockedWindowLayoutManager::MaybeMinimizeChildrenExcept(
void DockedWindowLayoutManager::MinimizeDockedWindow(
wm::WindowState* window_state) {
- DCHECK(!IsPopupOrTransient(window_state->window()));
+ DCHECK(!IsPopupOrTransient(window_state->aura_window()));
window_state->window()->Hide();
if (window_state->IsActive())
window_state->Deactivate();
@@ -971,7 +972,7 @@ void DockedWindowLayoutManager::MinimizeDockedWindow(
void DockedWindowLayoutManager::RestoreDockedWindow(
wm::WindowState* window_state) {
- aura::Window* window = window_state->window();
+ aura::Window* window = window_state->aura_window();
DCHECK(!IsPopupOrTransient(window));
// Always place restored window at the bottom shuffling the other windows up.
// TODO(varkha): add a separate container for docked windows to keep track
« no previous file with comments | « ash/wm/default_state.cc ('k') | ash/wm/dock/docked_window_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698