Index: chrome/browser/tab_contents/tab_contents_view_mac.h |
diff --git a/chrome/browser/tab_contents/tab_contents_view_mac.h b/chrome/browser/tab_contents/tab_contents_view_mac.h |
index 99e9f2284005ee32686f58b084a111186cca36ac..4da82675bcd2c05dc3dc97eaeb03e21b2ece035f 100644 |
--- a/chrome/browser/tab_contents/tab_contents_view_mac.h |
+++ b/chrome/browser/tab_contents/tab_contents_view_mac.h |
@@ -44,6 +44,7 @@ class TabContentsViewMac : public TabContentsView, |
// lifetime. This doesn't need to be the case, but is this way currently |
// because that's what was easiest when they were split. |
explicit TabContentsViewMac(TabContents* web_contents); |
+ virtual ~TabContentsViewMac(); |
// TabContentsView implementation -------------------------------------------- |
@@ -66,6 +67,8 @@ class TabContentsViewMac : public TabContentsView, |
bool activatable); |
virtual void ShowCreatedWidgetInternal(RenderWidgetHostView* widget_host_view, |
const gfx::Rect& initial_pos); |
+ virtual bool IsEventTracking() const; |
+ virtual void CloseTabAfterEventTracking(); |
// Backend implementation of RenderViewHostDelegate::View. |
virtual void ShowContextMenu(const ContextMenuParams& params); |
@@ -82,6 +85,10 @@ class TabContentsViewMac : public TabContentsView, |
const NotificationSource& source, |
const NotificationDetails& details); |
+ // A helper method for closing the tab in the |
+ // CloseTabAfterEventTracking() implementation. |
+ void CloseTab(); |
+ |
private: |
// The Cocoa NSView that lives in the view hierarchy. |
scoped_nsobject<TabContentsViewCocoa> cocoa_view_; |