diff options
Diffstat (limited to 'chrome/browser/tab_contents/tab_contents_view.h')
-rw-r--r-- | chrome/browser/tab_contents/tab_contents_view.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/tab_contents_view.h b/chrome/browser/tab_contents/tab_contents_view.h index 2af4902..c5868b0 100644 --- a/chrome/browser/tab_contents/tab_contents_view.h +++ b/chrome/browser/tab_contents/tab_contents_view.h @@ -110,6 +110,11 @@ class TabContentsView : public RenderViewHostDelegate::View { // RenderWidgetHost is deleted. Removes |host| from internal maps. void RenderWidgetHostDestroyed(RenderWidgetHost* host); + // Invoked when the TabContents is notified that the RenderView has been + // fully created. The default implementation does nothing; override + // for platform-specific behavior is needed. + virtual void RenderViewCreated(RenderViewHost* host); + // Sets focus to the native widget for this tab. virtual void Focus() = 0; @@ -124,6 +129,12 @@ class TabContentsView : public RenderViewHostDelegate::View { // invoked, SetInitialFocus is invoked. virtual void RestoreFocus() = 0; + // Set and return the content's intrinsic width. + virtual void UpdatePreferredWidth(int pref_width); + int preferred_width() const { + return preferred_width_; + } + protected: TabContentsView() {} // Abstract interface. @@ -171,6 +182,9 @@ class TabContentsView : public RenderViewHostDelegate::View { typedef std::map<int, RenderWidgetHostView*> PendingWidgetViews; PendingWidgetViews pending_widget_views_; + // The page content's intrinsic width. + int preferred_width_; + DISALLOW_COPY_AND_ASSIGN(TabContentsView); }; |