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

Unified Diff: chrome/browser/ui/gtk/tabs/tab_gtk.h

Issue 6933037: Multi-tab selection for Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing context menu commands Created 9 years, 7 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 | « no previous file | chrome/browser/ui/gtk/tabs/tab_gtk.cc » ('j') | chrome/browser/ui/gtk/tabs/tab_gtk.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/tabs/tab_gtk.cc » ('j') | chrome/browser/ui/gtk/tabs/tab_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698