diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-11 23:34:04 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-11 23:34:04 +0000 |
commit | 099e3eb41df072bbc3dd5dd0b007595cb2a0c634 (patch) | |
tree | 248424058d1486080fa0d43a49549be10833160d /chrome/browser/gtk/browser_window_gtk.h | |
parent | af9bebd7772e8b11bc6b2f7e908242993540cc5b (diff) | |
download | chromium_src-099e3eb41df072bbc3dd5dd0b007595cb2a0c634.zip chromium_src-099e3eb41df072bbc3dd5dd0b007595cb2a0c634.tar.gz chromium_src-099e3eb41df072bbc3dd5dd0b007595cb2a0c634.tar.bz2 |
Size popups by their contents, not the window's outer bounds.
(This problem was most annoying when a popup was meant to be exactly large enough to show a certain image.)
This fixes a BlockedPopupContainer interactive ui test.
Review URL: http://codereview.chromium.org/192058
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26050 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/browser_window_gtk.h')
-rw-r--r-- | chrome/browser/gtk/browser_window_gtk.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/gtk/browser_window_gtk.h b/chrome/browser/gtk/browser_window_gtk.h index d83b46b..4fb84e1 100644 --- a/chrome/browser/gtk/browser_window_gtk.h +++ b/chrome/browser/gtk/browser_window_gtk.h @@ -247,6 +247,11 @@ class BrowserWindowGtk : public BrowserWindow, // Save the window position in the prefs. void SaveWindowPosition(); + // Set the bounds of the current window. If |exterior| is true, set the size + // of the window itself, otherwise set the bounds of the web contents. In + // either case, set the position of the window. + void SetBoundsImpl(const gfx::Rect& bounds, bool exterior); + // Callback for when the custom frame alignment needs to be redrawn. // The content area includes the toolbar and web page but not the tab strip. static gboolean OnCustomFrameExpose(GtkWidget* widget, GdkEventExpose* event, |