| 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);
|
|
|