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

Unified Diff: chrome/browser/views/tabs/side_tab_strip_model.h

Issue 1001003: Allow dynamic switching in and out of sidetabs mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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/views/tabs/side_tab_strip_model.h
===================================================================
--- chrome/browser/views/tabs/side_tab_strip_model.h (revision 41630)
+++ chrome/browser/views/tabs/side_tab_strip_model.h (working copy)
@@ -7,12 +7,17 @@
#include "base/string16.h"
+namespace gfx {
+class Point;
+}
class SkBitmap;
// A model interface implemented by an object that can provide information
// about SideTabs in a SideTabStrip.
class SideTabStripModel {
public:
+ virtual ~SideTabStripModel() {}
+
// Returns metadata about the tab at the specified index.
virtual SkBitmap GetIcon(int index) const = 0;
virtual string16 GetTitle(int index) const = 0;
@@ -35,6 +40,10 @@
// Closes the tab at the specified index in the model.
virtual void CloseTab(int index) = 0;
+
+ // Shows a context menu for the tab at the specified index at the specified
+ // point in screen coords.
+ virtual void ShowContextMenu(int index, const gfx::Point& p) = 0;
};
#endif // CHROME_BROWSER_VIEWS_TABS_SIDE_TAB_STRIP_MODEL_H_

Powered by Google App Engine
This is Rietveld 408576698