summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/tabs/tab.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/tabs/tab.h')
-rw-r--r--chrome/browser/views/tabs/tab.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/views/tabs/tab.h b/chrome/browser/views/tabs/tab.h
index 5534e82..17134e1 100644
--- a/chrome/browser/views/tabs/tab.h
+++ b/chrome/browser/views/tabs/tab.h
@@ -84,6 +84,10 @@ class Tab : public TabRenderer,
virtual bool IsSelected() const;
private:
+ class ContextMenuController;
+
+ friend class ContextMenuController;
+
// views::View overrides:
virtual bool HasHitTestMask() const;
virtual void GetHitTestMask(gfx::Path* mask) const;
@@ -110,6 +114,9 @@ class Tab : public TabRenderer,
// representation. Used by GetViewForPoint for hit-testing.
void MakePathForTab(gfx::Path* path) const;
+ // Invoked when the context menu closes.
+ void ContextMenuClosed();
+
// An instance of a delegate object that can perform various actions based on
// user gestures.
TabDelegate* delegate_;
@@ -117,6 +124,9 @@ class Tab : public TabRenderer,
// True if the tab is being animated closed.
bool closing_;
+ // If non-null it means we're showing a menu for the tab.
+ ContextMenuController* menu_controller_;
+
DISALLOW_COPY_AND_ASSIGN(Tab);
};