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

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: 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 dab73f288a53236d2219f8fd303fe1e20d538aba..85d5a8bd3faa921b5935c85bf12cb3a618e99f34 100644
--- a/views/widget/native_widget_private.h
+++ b/views/widget/native_widget_private.h
@@ -183,6 +183,9 @@ class NativeWidgetPrivate : public NativeWidget {
virtual void EnableClose(bool enable) = 0;
virtual void Show() = 0;
virtual void Hide() = 0;
+ // Invoked if the initial show should maximize the window. |restored_bounds|
+ // gives the bounds the bounds the window should be when not maximized.
+ virtual void ShowMaximized(const gfx::Rect& restored_bounds) = 0;
virtual void ShowNativeWidget(ShowState state) = 0;
virtual bool IsVisible() const = 0;
virtual void Activate() = 0;

Powered by Google App Engine
This is Rietveld 408576698