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

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 (delegating IsDocked to non… 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 1aade08d89d2feb9c3df9cb3be9502711279c64e..74b0f0666096d2c115b19849ea886a1daa6dc485 100644
--- a/ash/wm/window_state.cc
+++ b/ash/wm/window_state.cc
@@ -74,6 +74,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