diff options
author | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-02 17:41:44 +0000 |
---|---|---|
committer | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-02 17:41:44 +0000 |
commit | 078a10a1c64458e5f5c4fdf57edbbc935dd145ca (patch) | |
tree | ac6514112513237e157d5fa859509750bc022872 /chrome/browser/browser_window.h | |
parent | 799185ae9f4d034fd11b052cd3ff7ed1e12c10c2 (diff) | |
download | chromium_src-078a10a1c64458e5f5c4fdf57edbbc935dd145ca.zip chromium_src-078a10a1c64458e5f5c4fdf57edbbc935dd145ca.tar.gz chromium_src-078a10a1c64458e5f5c4fdf57edbbc935dd145ca.tar.bz2 |
Fix browser side handling of moveTo by resizing the content area; not the window.
BUG=27365
TEST=none
Review URL: http://codereview.chromium.org/661187
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40386 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, 10 insertions, 2 deletions
diff --git a/chrome/browser/browser_window.h b/chrome/browser/browser_window.h index ab38295..152e7dc 100644 --- a/chrome/browser/browser_window.h +++ b/chrome/browser/browser_window.h @@ -35,11 +35,19 @@ 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. - virtual void SetBounds(const gfx::Rect& bounds) = 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; // 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 |