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

Unified Diff: chrome/browser/cocoa/tab_controller.h

Issue 155173: Add context menus to tabs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 5 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
« no previous file with comments | « chrome/app/nibs/en.lproj/TabView.xib ('k') | chrome/browser/cocoa/tab_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/tab_controller.h
===================================================================
--- chrome/browser/cocoa/tab_controller.h (revision 20045)
+++ chrome/browser/cocoa/tab_controller.h (working copy)
@@ -34,8 +34,9 @@
@interface TabController : NSViewController {
@private
- IBOutlet NSButton *backgroundButton_;
+ IBOutlet NSButton* backgroundButton_;
IBOutlet NSView* iconView_;
+ IBOutlet NSMenu* contextMenu_;
BOOL selected_;
TabLoadingState loadingState_;
id<TabControllerTarget> target_; // weak, where actions are sent
@@ -59,6 +60,9 @@
// perform the close.
- (IBAction)closeTab:(id)sender;
+// Dispatches the command in the tag to the registered target object.
+- (IBAction)commandDispatch:(id)sender;
+
// Replace the current icon view with the given view. |iconView| will be
// resized to the size of the current icon view.
- (void)setIconView:(NSView*)iconView;
« no previous file with comments | « chrome/app/nibs/en.lproj/TabView.xib ('k') | chrome/browser/cocoa/tab_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698