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

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

Issue 181002: Reverting 24700. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/cocoa/tab_cell.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 17 matching lines...) Expand all
28 // loading content via a spinner. 28 // loading content via a spinner.
29 // 29 //
30 // The tab has the notion of an "icon view" which can be used to display 30 // The tab has the notion of an "icon view" which can be used to display
31 // identifying characteristics such as a favicon, or since it's a full-fledged 31 // identifying characteristics such as a favicon, or since it's a full-fledged
32 // view, something with state and animation such as a throbber for illustrating 32 // view, something with state and animation such as a throbber for illustrating
33 // progress. The default in the nib is an image view so nothing special is 33 // progress. The default in the nib is an image view so nothing special is
34 // required if that's all you need. 34 // required if that's all you need.
35 35
36 @interface TabController : NSViewController { 36 @interface TabController : NSViewController {
37 @private 37 @private
38 IBOutlet NSButton* backgroundButton_;
38 IBOutlet NSView* iconView_; 39 IBOutlet NSView* iconView_;
39 IBOutlet NSTextField* titleView_;
40 IBOutlet NSMenu* contextMenu_; 40 IBOutlet NSMenu* contextMenu_;
41 IBOutlet NSButton* closeButton_; 41 IBOutlet NSButton* closeButton_;
42 42
43 BOOL selected_; 43 BOOL selected_;
44 TabLoadingState loadingState_; 44 TabLoadingState loadingState_;
45 id<TabControllerTarget> target_; // weak, where actions are sent 45 id<TabControllerTarget> target_; // weak, where actions are sent
46 SEL action_; // selector sent when tab is selected by clicking 46 SEL action_; // selector sent when tab is selected by clicking
47 } 47 }
48 48
49 @property(assign, nonatomic) TabLoadingState loadingState; 49 @property(assign, nonatomic) TabLoadingState loadingState;
(...skipping 17 matching lines...) Expand all
67 - (IBAction)closeTab:(id)sender; 67 - (IBAction)closeTab:(id)sender;
68 68
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.
78 - (void)applyTheme;
79 @end 77 @end
80 78
81 @interface TabController(TestingAPI) 79 @interface TabController(TestingAPI)
82 - (NSString *)toolTip; 80 - (NSString *)toolTip;
83 - (int)iconCapacity; 81 - (int)iconCapacity;
84 - (BOOL)shouldShowIcon; 82 - (BOOL)shouldShowIcon;
85 - (BOOL)shouldShowCloseBox; 83 - (BOOL)shouldShowCloseBox;
86 @end // TabController(TestingAPI) 84 @end // TabController(TestingAPI)
87 85
88 #endif // CHROME_BROWSER_COCOA_TAB_CONTROLLER_H_ 86 #endif // CHROME_BROWSER_COCOA_TAB_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/tab_cell.mm ('k') | chrome/browser/cocoa/tab_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698