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

Unified Diff: views/widget/native_widget_private.h

Issue 7358005: Makes sure widget is created at right size before showing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comment Created 9 years, 5 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: views/widget/native_widget_private.h
diff --git a/views/widget/native_widget_private.h b/views/widget/native_widget_private.h
index 5139c1f84730b16f524d58d53ae9af953943bd17..8062d8f5eb550dfaf7fd0c9d3d07a1fa641cfee3 100644
--- a/views/widget/native_widget_private.h
+++ b/views/widget/native_widget_private.h
@@ -190,7 +190,10 @@ class NativeWidgetPrivate : public NativeWidget {
virtual void EnableClose(bool enable) = 0;
virtual void Show() = 0;
virtual void Hide() = 0;
- virtual void ShowNativeWidget(ShowState state) = 0;
+ // Invoked if the initial show should maximize the window. |restored_bounds|
+ // is the bounds of the window when not maximized.
+ virtual void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) = 0;
+ virtual void ShowWithState(ShowState state) = 0;
virtual bool IsVisible() const = 0;
virtual void Activate() = 0;
virtual void Deactivate() = 0;

Powered by Google App Engine
This is Rietveld 408576698