OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/mac_util.h" | 5 #include "base/mac_util.h" |
6 #include "chrome/browser/cocoa/nsimage_cache.h" | |
7 #import "chrome/browser/cocoa/tab_controller.h" | 6 #import "chrome/browser/cocoa/tab_controller.h" |
8 #import "chrome/browser/cocoa/tab_controller_target.h" | 7 #import "chrome/browser/cocoa/tab_controller_target.h" |
9 #import "chrome/browser/cocoa/tab_view.h" | 8 #import "chrome/browser/cocoa/tab_view.h" |
10 #import "third_party/GTM/AppKit/GTMTheme.h" | 9 #import "third_party/GTM/AppKit/GTMTheme.h" |
11 | 10 |
12 @interface TabController(Private) | 11 @interface TabController(Private) |
13 - (void)updateVisibility; | 12 - (void)updateVisibility; |
14 @end | 13 @end |
15 | 14 |
16 @implementation TabController | 15 @implementation TabController |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 // Called by the tabs to determine whether we are in rapid (tab) closure mode. | 240 // Called by the tabs to determine whether we are in rapid (tab) closure mode. |
242 - (BOOL)inRapidClosureMode { | 241 - (BOOL)inRapidClosureMode { |
243 if ([[self target] respondsToSelector:@selector(inRapidClosureMode)]) { | 242 if ([[self target] respondsToSelector:@selector(inRapidClosureMode)]) { |
244 return [[self target] performSelector:@selector(inRapidClosureMode)] ? | 243 return [[self target] performSelector:@selector(inRapidClosureMode)] ? |
245 YES : NO; | 244 YES : NO; |
246 } | 245 } |
247 return NO; | 246 return NO; |
248 } | 247 } |
249 | 248 |
250 @end | 249 @end |
OLD | NEW |