diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-30 00:38:38 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-30 00:38:38 +0000 |
commit | 1869411883c8ac422315fa702e3403df95bb0a3f (patch) | |
tree | 7983bb6c51bcca7b8102c6460e7bc2edee62a3f7 /chrome/browser/window_sizer.cc | |
parent | fe44a4cacc61eecda10d67f6dc11aa3f5f31189f (diff) | |
download | chromium_src-1869411883c8ac422315fa702e3403df95bb0a3f.zip chromium_src-1869411883c8ac422315fa702e3403df95bb0a3f.tar.gz chromium_src-1869411883c8ac422315fa702e3403df95bb0a3f.tar.bz2 |
Fixes to make a browser window come up with TOOLKIT_VIEWS.
TBR=sky
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/116007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17271 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/window_sizer.cc')
-rw-r--r-- | chrome/browser/window_sizer.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/window_sizer.cc b/chrome/browser/window_sizer.cc index e005676..890a4a6 100644 --- a/chrome/browser/window_sizer.cc +++ b/chrome/browser/window_sizer.cc @@ -116,6 +116,11 @@ void WindowSizer::GetBrowserWindowBounds(const std::wstring& app_name, Browser* browser, gfx::Rect* window_bounds, bool* maximized) { +#if defined(TOOLKIT_VIEWS) + *window_bounds = gfx::Rect(20, 20, 500, 500); + *maximized = false; + return; +#endif const WindowSizer sizer(new DefaultStateProvider(app_name, browser), CreateDefaultMonitorInfoProvider()); sizer.DetermineWindowBounds(specified_bounds, window_bounds, maximized); |