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

Unified Diff: chrome/browser/tab_contents/tab_contents_delegate.h

Issue 1989002: The app launcher had a height of zero as it was not getting preferred size up... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 8 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/tab_contents/tab_contents_delegate.h
===================================================================
--- chrome/browser/tab_contents/tab_contents_delegate.h (revision 46482)
+++ chrome/browser/tab_contents/tab_contents_delegate.h (working copy)
@@ -286,8 +286,14 @@
// Returns whether infobars are enabled. Overrideable by child classes.
virtual bool infobars_enabled() { return true; }
+ // Whether the renderer should report its preferred size when it changes by
+ // calling UpdatePreferredSize().
+ // Note that this is set when the RenderViewHost is created and cannot be
+ // changed after that.
+ virtual bool ShouldEnablePreferredSizeNotifications() { return false; }
+
// Notification that the preferred size of the contents has changed.
- // Only called if RenderViewHost::EnablePreferredSizeChangedMode() was called.
+ // Only called if ShouldEnablePreferredSizeNotifications() returns true.
virtual void UpdatePreferredSize(const gfx::Size& pref_size) {}
protected:

Powered by Google App Engine
This is Rietveld 408576698