diff options
author | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-24 17:57:12 +0000 |
---|---|---|
committer | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-24 17:57:12 +0000 |
commit | e561e20e4220751a8eb243ea5da7eb154180c6da (patch) | |
tree | 21cb95f4ed21f8f753b3768af2920b1f96b01418 /chrome/browser/browser_window.h | |
parent | 4def84918982a6c01649b5e4eadfac4904c1c847 (diff) | |
download | chromium_src-e561e20e4220751a8eb243ea5da7eb154180c6da.zip chromium_src-e561e20e4220751a8eb243ea5da7eb154180c6da.tar.gz chromium_src-e561e20e4220751a8eb243ea5da7eb154180c6da.tar.bz2 |
Revert "Fix browser side handling of moveTo by resizing the content area; not the window."
This reverts commit 2ce3ea80b627f58acb97802b0cc182b3a2bdf809 (r40386).
This seems to tickle some weird race condition where the renderer and the
browser process disagree about the size of the window. I'm reverting this
change as 38685 is scarier then 27365.
TEST=none
BUG=38785,27365
Review URL: http://codereview.chromium.org/1259004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42494 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_window.h')
-rw-r--r-- | chrome/browser/browser_window.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/chrome/browser/browser_window.h b/chrome/browser/browser_window.h index a4ff572..484e6bb 100644 --- a/chrome/browser/browser_window.h +++ b/chrome/browser/browser_window.h @@ -37,19 +37,11 @@ class Rect; // NOTE: All getters may return NULL. class BrowserWindow { public: - enum BoundsType { - WINDOW_BOUNDS = 0, - CONTENT_BOUNDS - }; - // Show the window, or activates it if it's already visible. virtual void Show() = 0; - // Sets the window's size and position to the specified values. SetBounds - // will always move the window so its window origin is bounds.origin(), but - // will change either the size of the window or the content area based on - // |bounds_type|. - virtual void SetBounds(const gfx::Rect& bounds, BoundsType bounds_type) = 0; + // Sets the window's size and position to the specified values. + virtual void SetBounds(const gfx::Rect& bounds) = 0; // Closes the frame as soon as possible. If the frame is not in a drag // session, it will close immediately; otherwise, it will move offscreen (so |