summaryrefslogtreecommitdiffstats
path: root/views/widget/native_widget_gtk.h
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-19 18:36:47 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-19 18:36:47 +0000
commit85a6aab738a98be3b473dfe117053251a3865734 (patch)
treedae8937683bbb2d0152c8008533d5bacd41b9673 /views/widget/native_widget_gtk.h
parent3bb078951654ca9161207ac6afd375210beaddbb (diff)
downloadchromium_src-85a6aab738a98be3b473dfe117053251a3865734.zip
chromium_src-85a6aab738a98be3b473dfe117053251a3865734.tar.gz
chromium_src-85a6aab738a98be3b473dfe117053251a3865734.tar.bz2
Makes sure widget is created at right size before showing
it. Previously if we were going to maximize the window we would first create it at the restored size, then maximize it. On slower machines this could result in a noticeable relayout of the web page. BUG=11229 TEST=see bug. R=ben@chromium.org Review URL: http://codereview.chromium.org/7358005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93067 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/native_widget_gtk.h')
-rw-r--r--views/widget/native_widget_gtk.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/views/widget/native_widget_gtk.h b/views/widget/native_widget_gtk.h
index 4555691..3b38113 100644
--- a/views/widget/native_widget_gtk.h
+++ b/views/widget/native_widget_gtk.h
@@ -196,7 +196,9 @@ class NativeWidgetGtk : public internal::NativeWidgetPrivate,
virtual void EnableClose(bool enable) OVERRIDE;
virtual void Show() OVERRIDE;
virtual void Hide() OVERRIDE;
- virtual void ShowNativeWidget(ShowState state) OVERRIDE;
+ virtual void ShowMaximizedWithBounds(
+ const gfx::Rect& restored_bounds) OVERRIDE;
+ virtual void ShowWithState(ShowState state) OVERRIDE;
virtual bool IsVisible() const OVERRIDE;
virtual void Activate() OVERRIDE;
virtual void Deactivate() OVERRIDE;