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

Unified Diff: ui/views/widget/widget.h

Issue 434343004: Call OnNativeWindowChanged after maximizing and restoring. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. 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/widget.h
diff --git a/ui/views/widget/widget.h b/ui/views/widget/widget.h
index d4770b5fb3874f3b2c96d7687c4555c81e00938e..91058bb4677c88e04bab27a1f3f2b3abcc00520e 100644
--- a/ui/views/widget/widget.h
+++ b/ui/views/widget/widget.h
@@ -756,6 +756,7 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
virtual gfx::Size GetMaximumSize() const OVERRIDE;
virtual void OnNativeWidgetMove() OVERRIDE;
virtual void OnNativeWidgetSizeChanged(const gfx::Size& new_size) OVERRIDE;
+ virtual void OnNativeWidgetWindowShowStateChanged() OVERRIDE;
virtual void OnNativeWidgetBeginUserBoundsChange() OVERRIDE;
virtual void OnNativeWidgetEndUserBoundsChange() OVERRIDE;
virtual bool HasFocusManager() const OVERRIDE;
@@ -817,6 +818,9 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
// window delegate.
void SaveWindowPlacement();
+ // Avoid saving session state during startup procedures.
sky 2014/08/12 13:21:28 This comment is cryptic. Maybe: // Invokes SaveWin
jackhou1 2014/08/13 01:57:51 Done.
+ void SaveWindowPlacementIfInitialized();
+
// Sizes and positions the window just after it is created.
void SetInitialBounds(const gfx::Rect& bounds);

Powered by Google App Engine
This is Rietveld 408576698