summaryrefslogtreecommitdiffstats
path: root/content/public/browser/web_contents_delegate.h
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-23 18:08:17 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-23 18:08:17 +0000
commitb7a756d47f9b8295729d21a2a0d5ed8582da4e8f (patch)
tree4ae68bf009d359ce85edcee27f1026becbcc384b /content/public/browser/web_contents_delegate.h
parent545dd93c61b3c0ce100b628a11d920fab19fe9b0 (diff)
downloadchromium_src-b7a756d47f9b8295729d21a2a0d5ed8582da4e8f.zip
chromium_src-b7a756d47f9b8295729d21a2a0d5ed8582da4e8f.tar.gz
chromium_src-b7a756d47f9b8295729d21a2a0d5ed8582da4e8f.tar.bz2
Change grow box computation back to a method on BrowserWindow
This is a revert of http://codereview.chromium.org/3547008, which was added to implement sidebars. aa has reverted most of the sidebar code ( http://codereview.chromium.org/9006027/ ), so this is no longer needed. This not only makes the code simpler (look at all the red), but also fixes a long-standing regression on Mac that was caused by the CL this reverts. Parts of the windows part with help form sky@. This does not add back the code in rwhv_win that was added by mad@ for bug 458, since it has since then bitrotted, and it's not used anyway. If someone wants to attack 458 again, http://codereview.chromium.org/16488/diff/1101/chrome/browser/renderer_host/render_widget_host_view_win.cc should be fairly easy to add back. BUG=458,70482,107646 TEST=Not too much stuff breaks; resize box looks good again on 10.5/10.6 TBR=avi Review URL: http://codereview.chromium.org/9265018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118700 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public/browser/web_contents_delegate.h')
-rw-r--r--content/public/browser/web_contents_delegate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h
index 53584dc..d19ee91 100644
--- a/content/public/browser/web_contents_delegate.h
+++ b/content/public/browser/web_contents_delegate.h
@@ -162,6 +162,10 @@ class CONTENT_EXPORT WebContentsDelegate {
// Reloading can be disabled e. g. for the DevTools window.
virtual bool CanReloadContents(WebContents* source) const;
+ // Return the rect where to display the resize corner, if any, otherwise
+ // an empty rect.
+ virtual gfx::Rect GetRootWindowResizerRect() const;
+
// Invoked prior to showing before unload handler confirmation dialog.
virtual void WillRunBeforeUnloadConfirm() {}