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

Unified Diff: ui/views/widget/native_widget_aura.cc

Issue 434343004: Call OnNativeWindowChanged after maximizing and restoring. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implement in all subclasses. Created 6 years, 4 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: ui/views/widget/native_widget_aura.cc
diff --git a/ui/views/widget/native_widget_aura.cc b/ui/views/widget/native_widget_aura.cc
index e57a4ff0bc0ecb56c12fba415058f0d60a13b85f..0aba3dce6759e431036b452bdafbcb75e56c7dde 100644
--- a/ui/views/widget/native_widget_aura.cc
+++ b/ui/views/widget/native_widget_aura.cc
@@ -738,6 +738,13 @@ void NativeWidgetAura::OnBoundsChanged(const gfx::Rect& old_bounds,
delegate_->OnNativeWidgetSizeChanged(new_bounds.size());
}
+void NativeWidgetAura::OnPropertyChanged(const void* key, intptr_t old) {
+ if (key == aura::client::kShowStateKey) {
+ delegate_->OnNativeWidgetWindowShowStateChanged(
sky 2014/08/06 17:23:00 Won't this result in double the notifications if t
jackhou1 2014/08/11 05:41:06 Yeah, SaveWindowPlacement gets called twice. I thi
+ static_cast<ui::WindowShowState>(old));
+ }
+}
+
gfx::NativeCursor NativeWidgetAura::GetCursor(const gfx::Point& point) {
return cursor_;
}

Powered by Google App Engine
This is Rietveld 408576698