From 099e3eb41df072bbc3dd5dd0b007595cb2a0c634 Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Fri, 11 Sep 2009 23:34:04 +0000 Subject: 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 --- chrome/browser/gtk/browser_window_gtk.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chrome/browser/gtk/browser_window_gtk.h') 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, -- cgit v1.1