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

Unified Diff: chrome/browser/ui/cocoa/tabs/tab_controller_target.h

Issue 7080064: [Mac] Refactor the logic of tab dragging out of TabView and into a new helper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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/ui/cocoa/tabs/tab_controller_target.h
diff --git a/chrome/browser/ui/cocoa/tabs/tab_controller_target.h b/chrome/browser/ui/cocoa/tabs/tab_controller_target.h
index f495e55a1c1f9e5615df9ec4241df575bf5154d0..3478b73f2e344b6014bacdb85fb0551679b57ce9 100644
--- a/chrome/browser/ui/cocoa/tabs/tab_controller_target.h
+++ b/chrome/browser/ui/cocoa/tabs/tab_controller_target.h
@@ -10,6 +10,7 @@
#include "chrome/browser/ui/tabs/tab_menu_model.h"
@class TabController;
+@protocol TabDraggingEventTarget;
// A protocol to be implemented by a TabController's target.
@protocol TabControllerTarget
@@ -28,6 +29,9 @@
- (ui::SimpleMenuModel*)contextMenuModelForController:(TabController*)controller
menuDelegate:(ui::SimpleMenuModel::Delegate*)delegate;
+// Returns a weak reference to the controller that manages dragging of tabs.
+- (id<TabDraggingEventTarget>)dragController;
+
@end
#endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_TARGET_H_

Powered by Google App Engine
This is Rietveld 408576698