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

Unified Diff: views/widget/native_widget_views.cc

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_views.cc
diff --git a/views/widget/native_widget_views.cc b/views/widget/native_widget_views.cc
index 71ed959380ba59da5fe6e47cab7b629132b20585..b7748cb9e3d29143ef0b62442d4de7181d4c90d6 100644
--- a/views/widget/native_widget_views.cc
+++ b/views/widget/native_widget_views.cc
@@ -279,6 +279,11 @@ void NativeWidgetViews::Hide() {
}
void NativeWidgetViews::ShowNativeWidget(ShowState state) {
+ Show();
+}
+
+void NativeWidgetViews::ShowMaximized(const gfx::Rect& restored_bounds) {
+ Show();
}
bool NativeWidgetViews::IsVisible() const {

Powered by Google App Engine
This is Rietveld 408576698