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

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

Issue 67220: Reverting 13839,13838. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 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_controller.h ('k') | chrome/browser/cocoa/tab_controller_unittest.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 #import "base/mac_util.h"
6 #import "chrome/browser/cocoa/tab_controller.h" 5 #import "chrome/browser/cocoa/tab_controller.h"
7 #import "chrome/browser/cocoa/tab_controller_target.h" 6 #import "chrome/browser/cocoa/tab_controller_target.h"
8 7
9 @implementation TabController 8 @implementation TabController
10 9
11 @synthesize image = image_; 10 @synthesize image = image_;
12 @synthesize loading = loading_; 11 @synthesize loading = loading_;
13 @synthesize target = target_; 12 @synthesize target = target_;
14 @synthesize action = action_; 13 @synthesize action = action_;
15 14
16 + (float)minTabWidth { return 64.0; } 15 + (float)minTabWidth { return 64.0; }
17 + (float)maxTabWidth { return 220.0; } 16 + (float)maxTabWidth { return 220.0; }
18 17
19 - (TabView*)tabView { 18 - (TabView*)tabView {
20 return static_cast<TabView*>([self view]); 19 return static_cast<TabView*>([self view]);
21 } 20 }
22 21
23 - (id)init { 22 - (id)init {
24 self = [super initWithNibName:@"TabView" bundle:mac_util::MainAppBundle()]; 23 self = [super initWithNibName:@"TabView" bundle:nil];
25 if (self != nil) { 24 if (self != nil) {
26 [self setImage:[NSImage imageNamed:@"nav"]]; 25 [self setImage:[NSImage imageNamed:@"nav"]];
27 } 26 }
28 return self; 27 return self;
29 } 28 }
30 29
31 - (void)dealloc { 30 - (void)dealloc {
32 [image_ release]; 31 [image_ release];
33 [super dealloc]; 32 [super dealloc];
34 } 33 }
(...skipping 25 matching lines...) Expand all
60 - (void)setSelected:(BOOL)selected { 59 - (void)setSelected:(BOOL)selected {
61 if (selected_ != selected) 60 if (selected_ != selected)
62 [self internalSetSelected:selected]; 61 [self internalSetSelected:selected];
63 } 62 }
64 63
65 - (BOOL)selected { 64 - (BOOL)selected {
66 return selected_; 65 return selected_;
67 } 66 }
68 67
69 @end 68 @end
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/tab_controller.h ('k') | chrome/browser/cocoa/tab_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698