Index: chrome/browser/ui/gtk/tabs/tab_gtk.h |
diff --git a/chrome/browser/ui/gtk/tabs/tab_gtk.h b/chrome/browser/ui/gtk/tabs/tab_gtk.h |
index 460d25df2ef8a1961869c91d264cdf732dabf013..821120b87e2d26f1bae05b7b45d28f6c22b5110f 100644 |
--- a/chrome/browser/ui/gtk/tabs/tab_gtk.h |
+++ b/chrome/browser/ui/gtk/tabs/tab_gtk.h |
@@ -28,6 +28,9 @@ class TabGtk : public TabRendererGtk, |
// TabRenderer::Model. |
class TabDelegate { |
public: |
+ // Returns true if the specified Tab is active. |
+ virtual bool IsTabActive(const TabGtk* tab) const = 0; |
+ |
// Returns true if the specified Tab is selected. |
virtual bool IsTabSelected(const TabGtk* tab) const = 0; |
@@ -37,8 +40,14 @@ class TabGtk : public TabRendererGtk, |
// Returns true if the specified Tab is detached. |
virtual bool IsTabDetached(const TabGtk* tab) const = 0; |
- // Selects the specified Tab. |
- virtual void SelectTab(TabGtk* tab) = 0; |
+ // Activate the specified Tab. |
+ virtual void ActivateTab(TabGtk* tab) = 0; |
+ |
+ // Toggle selection of the specified Tab. |
+ virtual void ToggleTabSelection(TabGtk* tab) = 0; |
+ |
+ // Extends selection from the anchor to the specified Tab. |
+ virtual void ExtendTabSelection(TabGtk* tab) = 0; |
// Closes the specified Tab. |
virtual void CloseTab(TabGtk* tab) = 0; |
@@ -80,6 +89,9 @@ class TabGtk : public TabRendererGtk, |
// Returns the theme provider for icons and colors. |
virtual ui::ThemeProvider* GetThemeProvider() = 0; |
+ virtual TabStripModel* model() const = 0; |
+ virtual int GetIndexOfTab(const TabGtk* tab) const = 0; |
+ |
protected: |
virtual ~TabDelegate() {} |
}; |
@@ -101,6 +113,7 @@ class TabGtk : public TabRendererGtk, |
bool dragging() const { return dragging_; } |
// TabRendererGtk overrides: |
+ virtual bool IsActive() const; |
virtual bool IsSelected() const; |
virtual bool IsVisible() const; |
virtual void SetVisible(bool visible) const; |