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

Unified Diff: chrome/browser/tab_contents/tab_contents_view_mac.h

Issue 362013: [Mac] Delay TabContents::Close() when event-tracking. (Closed)
Patch Set: Oops, included file moved. Created 11 years, 1 month 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/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_;
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view.h ('k') | chrome/browser/tab_contents/tab_contents_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698