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

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: 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_views.cc
diff --git a/views/widget/native_widget_views.cc b/views/widget/native_widget_views.cc
index 3bc341d0b2ea6ccd98fde37e4780c5a1423421ac..fd4a571a5b3eb2a07972c62c8417e7609e7a0090 100644
--- a/views/widget/native_widget_views.cc
+++ b/views/widget/native_widget_views.cc
@@ -346,7 +346,13 @@ void NativeWidgetViews::Hide() {
view_->SetVisible(false);
}
-void NativeWidgetViews::ShowNativeWidget(ShowState state) {
+void NativeWidgetViews::ShowWithState(ShowState state) {
+ Show();
+}
+
+void NativeWidgetViews::ShowMaximizedWithBounds(
+ const gfx::Rect& restored_bounds) {
+ Show();
}
bool NativeWidgetViews::IsVisible() const {

Powered by Google App Engine
This is Rietveld 408576698