summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/tab_controller.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/cocoa/tab_controller.h')
-rw-r--r--chrome/browser/cocoa/tab_controller.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/cocoa/tab_controller.h b/chrome/browser/cocoa/tab_controller.h
index 0760ccd..82f3bb5 100644
--- a/chrome/browser/cocoa/tab_controller.h
+++ b/chrome/browser/cocoa/tab_controller.h
@@ -8,6 +8,7 @@
#import <Cocoa/Cocoa.h>
@class TabView;
+@protocol TabControllerTarget;
// A class that manages a single tab in the tab strip. Set its target/action
// to be sent a message when the tab is selected by the user clicking. Setting
@@ -17,12 +18,11 @@
@interface TabController : NSViewController {
@private
IBOutlet NSButton *backgroundButton_;
- IBOutlet NSButton *closeButton_;
IBOutlet NSProgressIndicator *progressIndicator_;
BOOL selected_;
BOOL loading_;
NSImage *image_;
- id target_; // weak, where actions are sent, eg selectTab:
+ id<TabControllerTarget> target_; // weak, where actions are sent
SEL action_; // selector sent when tab is seleted by clicking
}
@@ -39,6 +39,10 @@
// The view associated with this controller, pre-casted as a TabView
- (TabView *)tabView;
+// Closes the associated TabView by relaying the message to |target_| to
+// perform the close.
+- (IBAction)closeTab:(id)sender;
+
@end
#endif // CHROME_BROWSER_COCOA_TAB_CONTROLLER_H_