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; |
} |