summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/constrained_window_impl.h
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-08 19:48:19 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-08 19:48:19 +0000
commit6f02bc09e8176a592e38ec118f70595a7672fcbf (patch)
treefc7b4f29058643cf9a94b166982815dd9fc70aec /chrome/browser/views/constrained_window_impl.h
parent942dd7327db269b13d8f1e3155f13165af723395 (diff)
downloadchromium_src-6f02bc09e8176a592e38ec118f70595a7672fcbf.zip
chromium_src-6f02bc09e8176a592e38ec118f70595a7672fcbf.tar.gz
chromium_src-6f02bc09e8176a592e38ec118f70595a7672fcbf.tar.bz2
Allow constrained popups to resize themselves...up to 10 times. (Then we ignore their pleas for resizes since they're obviously up to no good.)
BUG=1255747 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@585 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/constrained_window_impl.h')
-rw-r--r--chrome/browser/views/constrained_window_impl.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/views/constrained_window_impl.h b/chrome/browser/views/constrained_window_impl.h
index 31a6d04..7ccd067 100644
--- a/chrome/browser/views/constrained_window_impl.h
+++ b/chrome/browser/views/constrained_window_impl.h
@@ -67,7 +67,6 @@ class ConstrainedWindowImpl : public ConstrainedWindow,
// Overridden from ConstrainedWindow:
virtual void CloseConstrainedWindow();
virtual void ActivateConstrainedWindow();
- virtual void ResizeConstrainedWindow(int width, int height);
virtual void RepositionConstrainedWindowTo(const gfx::Point& anchor_point);
virtual bool IsSuppressedConstrainedWindow() const;
virtual void WasHidden();
@@ -138,12 +137,17 @@ class ConstrainedWindowImpl : public ConstrainedWindow,
void Init(TabContents* owner);
// Called after changing either the anchor point or titlebar
- // visibility of a suppressed popup. This does the actual resizing.
+ // visibility of a suppressed popup.
//
// @see RepositionConstrainedWindowTo
// @see SetTitlebarVisibilityPercentage
void ResizeConstrainedTitlebar();
+ // Called to change the size of a constrained window. Moves the
+ // window to the anchor point (taking titlebar visibility into
+ // account) and sets the pop up size.
+ void ResizeConstrainedWindow(int width, int height);
+
// Initialize the Constrained Window as a Constrained Dialog containing a
// ChromeViews::View client area.
void InitAsDialog(const gfx::Rect& initial_bounds);