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

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

Issue 260009: Several background pattern fixes on the Mac.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/cocoa/tab_cell_unittest.mm ('k') | 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 @property(assign, nonatomic) SEL action; 57 @property(assign, nonatomic) SEL action;
58 58
59 // Minimum and maximum allowable tab width. The minimum width does not show 59 // Minimum and maximum allowable tab width. The minimum width does not show
60 // the icon or the close button. The selected tab always has at least a close 60 // the icon or the close button. The selected tab always has at least a close
61 // button so it has a different minimum width. 61 // button so it has a different minimum width.
62 + (float)minTabWidth; 62 + (float)minTabWidth;
63 + (float)maxTabWidth; 63 + (float)maxTabWidth;
64 + (float)minSelectedTabWidth; 64 + (float)minSelectedTabWidth;
65 65
66 // The view associated with this controller, pre-casted as a TabView 66 // The view associated with this controller, pre-casted as a TabView
67 - (TabView *)tabView; 67 - (TabView*)tabView;
68 68
69 // Closes the associated TabView by relaying the message to |target_| to 69 // Closes the associated TabView by relaying the message to |target_| to
70 // perform the close. 70 // perform the close.
71 - (IBAction)closeTab:(id)sender; 71 - (IBAction)closeTab:(id)sender;
72 72
73 // Dispatches the command in the tag to the registered target object. 73 // Dispatches the command in the tag to the registered target object.
74 - (IBAction)commandDispatch:(id)sender; 74 - (IBAction)commandDispatch:(id)sender;
75 75
76 // Replace the current icon view with the given view. |iconView| will be 76 // Replace the current icon view with the given view. |iconView| will be
77 // resized to the size of the current icon view. 77 // resized to the size of the current icon view.
78 - (void)setIconView:(NSView*)iconView; 78 - (void)setIconView:(NSView*)iconView;
79 - (NSView*)iconView; 79 - (NSView*)iconView;
80 80
81 // (Re)apply the current theme.
82 - (void)applyTheme;
83
84 // Called by the tabs to determine whether we are in rapid (tab) closure mode. 81 // Called by the tabs to determine whether we are in rapid (tab) closure mode.
85 // In this mode, we handle clicks slightly differently due to animation. 82 // In this mode, we handle clicks slightly differently due to animation.
86 // Ideally, tabs would know about their own animation and wouldn't need this. 83 // Ideally, tabs would know about their own animation and wouldn't need this.
87 - (BOOL)inRapidClosureMode; 84 - (BOOL)inRapidClosureMode;
88 85
86 // Update the title color to match the tabs current state.
87 - (void)updateTitleColor;
89 @end 88 @end
90 89
91 @interface TabController(TestingAPI) 90 @interface TabController(TestingAPI)
92 - (NSString *)toolTip; 91 - (NSString*)toolTip;
93 - (int)iconCapacity; 92 - (int)iconCapacity;
94 - (BOOL)shouldShowIcon; 93 - (BOOL)shouldShowIcon;
95 - (BOOL)shouldShowCloseButton; 94 - (BOOL)shouldShowCloseButton;
96 @end // TabController(TestingAPI) 95 @end // TabController(TestingAPI)
97 96
98 #endif // CHROME_BROWSER_COCOA_TAB_CONTROLLER_H_ 97 #endif // CHROME_BROWSER_COCOA_TAB_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/tab_cell_unittest.mm ('k') | chrome/browser/cocoa/tab_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698