Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7324)

Unified Diff: chrome/browser/ui/browser_window.h

Issue 9517010: Change panels to be able to turn off autoresize. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address feedback and fix issue with preferred size and auto resize having the same callback. Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/browser_window.h
diff --git a/chrome/browser/ui/browser_window.h b/chrome/browser/ui/browser_window.h
index 7053e4934e255e286f85eebe71a64d39e469bb18..5a27041d07df0188dae76e5d9e35774d14a7effe 100644
--- a/chrome/browser/ui/browser_window.h
+++ b/chrome/browser/ui/browser_window.h
@@ -370,6 +370,10 @@ class BrowserWindow {
virtual void UpdatePreferredSize(content::WebContents* web_contents,
const gfx::Size& pref_size) {}
+ // Invoked when the contents auto-resized and the container should match it.
+ virtual void ResizeDueToAutoResize(content::WebContents* web_contents,
+ const gfx::Size& new_size) {}
+
// Construct a BrowserWindow implementation for the specified |browser|.
static BrowserWindow* CreateBrowserWindow(Browser* browser);

Powered by Google App Engine
This is Rietveld 408576698