OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/ui/cocoa/tabs/side_tab_strip_controller.h" | 5 #import "chrome/browser/ui/cocoa/tabs/side_tab_strip_controller.h" |
6 | 6 |
7 @implementation SideTabStripController | 7 @implementation SideTabStripController |
8 | 8 |
9 // TODO(pinkerton): Still need to figure out several things: | 9 // TODO(pinkerton): Still need to figure out several things: |
10 // - new tab button placement and layout | 10 // - new tab button placement and layout |
11 // - animating tabs in and out | 11 // - animating tabs in and out |
12 // - being able to drop a tab elsewhere besides the 1st position | 12 // - being able to drop a tab elsewhere besides the 1st position |
13 // - how to load a different tab view nib for each tab. | 13 // - how to load a different tab view nib for each tab. |
14 | 14 |
15 - (id)initWithView:(TabStripView*)view | 15 - (id)initWithView:(TabStripView*)view |
16 switchView:(NSView*)switchView | 16 switchView:(NSView*)switchView |
17 browser:(Browser*)browser | 17 browser:(Browser*)browser |
18 delegate:(id<TabStripControllerDelegate>)delegate { | 18 delegate:(id<TabStripControllerDelegate>)delegate { |
19 self = [super initWithView:view | 19 self = [super initWithView:view |
20 switchView:switchView | 20 switchView:switchView |
21 browser:browser | 21 browser:browser |
22 delegate:delegate]; | 22 delegate:delegate]; |
23 if (self) { | 23 if (self) { |
24 // Side tabs have no indent since they are not sharing space with the | 24 // Side tabs have no indent since they are not sharing space with the |
25 // window controls. | 25 // window controls. |
26 [self setIndentForControls:0.0]; | 26 [self setLeftIndentForControls:0.0]; |
27 verticalLayout_ = YES; | 27 verticalLayout_ = YES; |
28 } | 28 } |
29 return self; | 29 return self; |
30 } | 30 } |
31 | 31 |
32 @end | 32 @end |
33 | 33 |
OLD | NEW |