diff options
Diffstat (limited to 'ash/wm/window_state.cc')
-rw-r--r-- | ash/wm/window_state.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ash/wm/window_state.cc b/ash/wm/window_state.cc index d037a76..c441524 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); } |