Index: chrome/browser/cocoa/tab_controller.mm |
diff --git a/chrome/browser/cocoa/tab_controller.mm b/chrome/browser/cocoa/tab_controller.mm |
index 96d7e5d5a625be9e873fcee242dd13f1924769d5..75f860da9a9029369f124bf74476f8562882155f 100644 |
--- a/chrome/browser/cocoa/tab_controller.mm |
+++ b/chrome/browser/cocoa/tab_controller.mm |
@@ -182,4 +182,14 @@ |
[titleView_ setTextColor:color ? color : [NSColor textColor]]; |
[[self view] setNeedsDisplay:YES]; |
} |
+ |
+// Called by the tabs to determine whether we are in rapid (tab) closure mode. |
+- (BOOL)inRapidClosureMode { |
+ if ([[self target] respondsToSelector:@selector(inRapidClosureMode)]) { |
+ return [[self target] performSelector:@selector(inRapidClosureMode)] ? |
+ YES : NO; |
+ } |
+ return NO; |
+} |
+ |
@end |