| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/tab_window_controller.h" | 5 #import "chrome/browser/ui/cocoa/tabs/tab_window_controller.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #import "base/mac/sdk_forward_declarations.h" | 8 #import "base/mac/sdk_forward_declarations.h" |
| 9 #import "chrome/browser/ui/cocoa/browser_window_layout.h" | 9 #import "chrome/browser/ui/cocoa/browser_window_layout.h" |
| 10 #import "chrome/browser/ui/cocoa/fast_resize_view.h" | 10 #import "chrome/browser/ui/cocoa/fast_resize_view.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 initWithFrame:NSMakeRect(0, | 86 initWithFrame:NSMakeRect(0, |
| 87 NSMaxY([windowView bounds]) - | 87 NSMaxY([windowView bounds]) - |
| 88 kBrowserFrameViewPaintHeight, | 88 kBrowserFrameViewPaintHeight, |
| 89 NSWidth([windowView bounds]), | 89 NSWidth([windowView bounds]), |
| 90 kBrowserFrameViewPaintHeight)]); | 90 kBrowserFrameViewPaintHeight)]); |
| 91 [tabStripBackgroundView_ | 91 [tabStripBackgroundView_ |
| 92 setAutoresizingMask:NSViewWidthSizable | NSViewMinYMargin]; | 92 setAutoresizingMask:NSViewWidthSizable | NSViewMinYMargin]; |
| 93 [self insertTabStripBackgroundViewIntoWindow:window titleBar:hasTitleBar]; | 93 [self insertTabStripBackgroundViewIntoWindow:window titleBar:hasTitleBar]; |
| 94 | 94 |
| 95 tabStripView_.reset([[TabStripView alloc] | 95 tabStripView_.reset([[TabStripView alloc] |
| 96 initWithFrame:NSMakeRect(0, 0, kDefaultWidth, | 96 initWithFrame:NSMakeRect( |
| 97 chrome::TabStripHeight())]); | 97 0, 0, kDefaultWidth, chrome::kTabStripHeight)]); |
| 98 [tabStripView_ setAutoresizingMask:NSViewWidthSizable | | 98 [tabStripView_ setAutoresizingMask:NSViewWidthSizable | |
| 99 NSViewMinYMargin]; | 99 NSViewMinYMargin]; |
| 100 if (hasTabStrip) | 100 if (hasTabStrip) |
| 101 [windowView addSubview:tabStripView_]; | 101 [windowView addSubview:tabStripView_]; |
| 102 } | 102 } |
| 103 return self; | 103 return self; |
| 104 } | 104 } |
| 105 | 105 |
| 106 - (NSView*)tabStripBackgroundView { | 106 - (NSView*)tabStripBackgroundView { |
| 107 return tabStripBackgroundView_; | 107 return tabStripBackgroundView_; |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 [visualEffectView addSubview:tabStripBackgroundView_]; | 390 [visualEffectView addSubview:tabStripBackgroundView_]; |
| 391 } | 391 } |
| 392 | 392 |
| 393 // Called when the size of the window content area has changed. Override to | 393 // Called when the size of the window content area has changed. Override to |
| 394 // position specific views. Base class implementation does nothing. | 394 // position specific views. Base class implementation does nothing. |
| 395 - (void)layoutSubviews { | 395 - (void)layoutSubviews { |
| 396 NOTIMPLEMENTED(); | 396 NOTIMPLEMENTED(); |
| 397 } | 397 } |
| 398 | 398 |
| 399 @end | 399 @end |
| OLD | NEW |