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

Side by Side Diff: chrome/browser/cocoa/tab_controller.h

Issue 174461: (Mac) Make mashing the close tab button work. (Closed)
Patch Set: Rebased to ToT. Created 11 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/cocoa/tab_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CHROME_BROWSER_COCOA_TAB_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_COCOA_TAB_CONTROLLER_H_
6 #define CHROME_BROWSER_COCOA_TAB_CONTROLLER_H_ 6 #define CHROME_BROWSER_COCOA_TAB_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 // The loading/waiting state of the tab. 10 // The loading/waiting state of the tab.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // Dispatches the command in the tag to the registered target object. 69 // Dispatches the command in the tag to the registered target object.
70 - (IBAction)commandDispatch:(id)sender; 70 - (IBAction)commandDispatch:(id)sender;
71 71
72 // Replace the current icon view with the given view. |iconView| will be 72 // Replace the current icon view with the given view. |iconView| will be
73 // resized to the size of the current icon view. 73 // resized to the size of the current icon view.
74 - (void)setIconView:(NSView*)iconView; 74 - (void)setIconView:(NSView*)iconView;
75 - (NSView*)iconView; 75 - (NSView*)iconView;
76 76
77 // (Re)apply the current theme. 77 // (Re)apply the current theme.
78 - (void)applyTheme; 78 - (void)applyTheme;
79
80 // Called by the tabs to determine whether we are in rapid (tab) closure mode.
81 // In this mode, we handle clicks slightly differently due to animation.
82 // Ideally, tabs would know about their own animation and wouldn't need this.
83 - (BOOL)inRapidClosureMode;
84
79 @end 85 @end
80 86
81 @interface TabController(TestingAPI) 87 @interface TabController(TestingAPI)
82 - (NSString *)toolTip; 88 - (NSString *)toolTip;
83 - (int)iconCapacity; 89 - (int)iconCapacity;
84 - (BOOL)shouldShowIcon; 90 - (BOOL)shouldShowIcon;
85 - (BOOL)shouldShowCloseBox; 91 - (BOOL)shouldShowCloseBox;
86 @end // TabController(TestingAPI) 92 @end // TabController(TestingAPI)
87 93
88 #endif // CHROME_BROWSER_COCOA_TAB_CONTROLLER_H_ 94 #endif // CHROME_BROWSER_COCOA_TAB_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/cocoa/tab_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698