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

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

Issue 7537030: Make panel adjust bounds per preferred size change notification on Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
« no previous file with comments | « chrome/browser/ui/browser_navigator.cc ('k') | chrome/browser/ui/panels/base_panel_browser_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_window.h
===================================================================
--- chrome/browser/ui/browser_window.h (revision 98900)
+++ chrome/browser/ui/browser_window.h (working copy)
@@ -33,6 +33,7 @@
namespace gfx {
class Rect;
+class Size;
}
class Extension;
@@ -344,6 +345,13 @@
virtual void ShowKeyboardOverlay(gfx::NativeWindow owning_window) = 0;
#endif
+ // Invoked when the preferred size of the contents in current tab has been
+ // changed. We might choose to update the window size to accomodate this
+ // change.
+ // Note that this won't be fired if we change tabs.
+ virtual void UpdatePreferredSize(TabContents* tab_contents,
+ const gfx::Size& pref_size) {}
+
// Construct a BrowserWindow implementation for the specified |browser|.
static BrowserWindow* CreateBrowserWindow(Browser* browser);
« no previous file with comments | « chrome/browser/ui/browser_navigator.cc ('k') | chrome/browser/ui/panels/base_panel_browser_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698