diff options
Diffstat (limited to 'chrome/browser/gtk/tab_contents_container_gtk.h')
| -rw-r--r-- | chrome/browser/gtk/tab_contents_container_gtk.h | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/chrome/browser/gtk/tab_contents_container_gtk.h b/chrome/browser/gtk/tab_contents_container_gtk.h index 0b3a959..ee28b0f 100644 --- a/chrome/browser/gtk/tab_contents_container_gtk.h +++ b/chrome/browser/gtk/tab_contents_container_gtk.h @@ -32,6 +32,9 @@ class TabContentsContainerGtk : public NotificationObserver, void SetTabContents(TabContents* tab_contents); TabContents* GetTabContents() const { return tab_contents_; } + void SetPreviewContents(TabContents* preview); + void PopPreviewContents(); + // Remove the tab from the hierarchy. void DetachTabContents(TabContents* tab_contents); @@ -46,15 +49,6 @@ class TabContentsContainerGtk : public NotificationObserver, virtual GtkWidget* GetWidgetForViewID(ViewID id); private: - // Add or remove observers for events that we care about. - void AddObservers(); - void RemoveObservers(); - - // Called when the RenderViewHost of the hosted TabContents has changed, e.g. - // to show an interstitial page. - void RenderViewHostChanged(RenderViewHost* old_host, - RenderViewHost* new_host); - // Called when a TabContents is destroyed. This gives us a chance to clean // up our internal state if the TabContents is somehow destroyed before we // get notified. @@ -66,11 +60,25 @@ class TabContentsContainerGtk : public NotificationObserver, GtkFloatingContainer* container, GtkAllocation* allocation, TabContentsContainerGtk* tab_contents_container); + // Add |contents| to the container and start showing it. + void PackTabContents(TabContents* contents); + + // Stop showing |contents|. + void HideTabContents(TabContents* contents); + + // Removes |preview_contents_|. + void RemovePreviewContents(); + NotificationRegistrar registrar_; - // The currently visible TabContents. + // The TabContents for the currently selected tab. This will be showing unless + // there is a preview contents. TabContents* tab_contents_; + // The current preview contents (for instant). If non-NULL, it will be + // visible. + TabContents* preview_contents_; + // The status bubble manager. Always non-NULL. StatusBubbleGtk* status_bubble_; |
