diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-25 20:33:08 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-25 20:33:08 +0000 |
commit | b104681385715c6059b46597162f18a7c9409a7b (patch) | |
tree | 96b5ff874201aa92a1b9f95b974a7e93829f1c87 /content/shell/shell_win.cc | |
parent | a10011108aafb0a1c6bb07bb3e790925911e7bd7 (diff) | |
download | chromium_src-b104681385715c6059b46597162f18a7c9409a7b.zip chromium_src-b104681385715c6059b46597162f18a7c9409a7b.tar.gz chromium_src-b104681385715c6059b46597162f18a7c9409a7b.tar.bz2 |
Content shell: Don't automatically resize the window to preferred size.
BUG=90445,115784
TEST=the window remains the size the user specified
Review URL: http://codereview.chromium.org/9839091
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128824 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell/shell_win.cc')
-rw-r--r-- | content/shell/shell_win.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/shell/shell_win.cc b/content/shell/shell_win.cc index fc95b6e..47419ee 100644 --- a/content/shell/shell_win.cc +++ b/content/shell/shell_win.cc @@ -144,14 +144,14 @@ void Shell::PlatformCreateWindow(int width, int height) { ShowWindow(window_, SW_SHOW); - PlatformSizeTo(width, height); + SizeTo(width, height); } void Shell::PlatformSetContents() { SetParent(tab_contents_->GetView()->GetNativeView(), window_); } -void Shell::PlatformSizeTo(int width, int height) { +void Shell::SizeTo(int width, int height) { RECT rc, rw; GetClientRect(window_, &rc); GetWindowRect(window_, &rw); |