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

Unified Diff: ash/wm/window_state.cc

Issue 68033003: Undocks window first before side-snapping bounds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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 1a06a58da1bb0a0b876bb2c64457d10d234feab1..f58684af5f1c331f817ab8e329e788bac225a86c 100644
--- a/ash/wm/window_state.cc
+++ b/ash/wm/window_state.cc
@@ -58,6 +58,15 @@ ui::WindowShowState WindowState::GetShowState() const {
return window_->GetProperty(aura::client::kShowStateKey);
}
+void WindowState::SetWindowShowType(WindowShowType window_show_type) {
+ window_show_type_ = window_show_type;
pkotwicz 2013/11/18 16:25:20 SnapSizer actually calls WindowState::SnapWindow()
varkha 2013/11/20 00:11:13 Done. Removed (in favor of sending notifications w
+ // TODO(oshima): Notify only when the state has changed.
+ // Doing so break a few tests now.
+ FOR_EACH_OBSERVER(
+ WindowStateObserver, observer_list_,
+ OnWindowShowTypeChanged(this, ToWindowShowType(GetShowState())));
+}
+
bool WindowState::IsMinimized() const {
return GetShowState() == ui::SHOW_STATE_MINIMIZED;
}

Powered by Google App Engine
This is Rietveld 408576698