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

Unified Diff: ash/wm/window_state.cc

Issue 38073004: Not moving a docked window when restoring a previously maximized window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Not moving a docked window when restoring a previously maximized window (IsDocked local to TabDragC… Created 7 years, 2 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/window_state.cc
diff --git a/ash/wm/window_state.cc b/ash/wm/window_state.cc
index d037a76c5588ed9b09530a388f4e63a7ea32c376..c441524d1e5329e09d026f84867ab1af2bc2fd77 100644
--- a/ash/wm/window_state.cc
+++ b/ash/wm/window_state.cc
@@ -75,6 +75,11 @@ bool WindowState::IsActive() const {
return IsActiveWindow(window_);
}
+bool WindowState::IsDocked() const {
+ return window_->parent() &&
+ window_->parent()->id() == internal::kShellWindowId_DockedContainer;
+}
+
bool WindowState::CanMaximize() const {
return window_->GetProperty(aura::client::kCanMaximizeKey);
}

Powered by Google App Engine
This is Rietveld 408576698