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

Unified Diff: chrome/browser/views/tabs/side_tab.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.h
===================================================================
--- chrome/browser/views/tabs/side_tab.h (revision 41630)
+++ chrome/browser/views/tabs/side_tab.h (working copy)
@@ -26,9 +26,13 @@
// Closes the tab.
virtual void CloseTab(SideTab* tab) = 0;
+
+ // Shows a context menu for the tab at the specified point in screen coords.
+ virtual void ShowContextMenu(SideTab* tab, const gfx::Point& p) = 0;
};
class SideTab : public views::View,
+ public views::ContextMenuController,
public views::ButtonListener,
public AnimationDelegate {
public:
@@ -48,6 +52,11 @@
// views::ButtonListener implementation:
virtual void ButtonPressed(views::Button* sender, const views::Event& event);
+ // views::ContextMenuController implementation:
+ virtual void ShowContextMenu(views::View* source,
+ const gfx::Point& p,
+ bool is_mouse_gesture);
+
// views::View Overrides:
virtual void Layout();
virtual void Paint(gfx::Canvas* canvas);

Powered by Google App Engine
This is Rietveld 408576698