| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 initWithFrame:NSMakeRect(0, | 84 initWithFrame:NSMakeRect(0, |
| 85 NSMaxY([windowView bounds]) - | 85 NSMaxY([windowView bounds]) - |
| 86 kBrowserFrameViewPaintHeight, | 86 kBrowserFrameViewPaintHeight, |
| 87 NSWidth([windowView bounds]), | 87 NSWidth([windowView bounds]), |
| 88 kBrowserFrameViewPaintHeight)]); | 88 kBrowserFrameViewPaintHeight)]); |
| 89 [tabStripBackgroundView_ | 89 [tabStripBackgroundView_ |
| 90 setAutoresizingMask:NSViewWidthSizable | NSViewMinYMargin]; | 90 setAutoresizingMask:NSViewWidthSizable | NSViewMinYMargin]; |
| 91 [self insertTabStripBackgroundViewIntoWindow:window]; | 91 [self insertTabStripBackgroundViewIntoWindow:window]; |
| 92 | 92 |
| 93 tabStripView_.reset([[TabStripView alloc] | 93 tabStripView_.reset([[TabStripView alloc] |
| 94 initWithFrame:NSMakeRect( | 94 initWithFrame:NSMakeRect(0, 0, kDefaultWidth, |
| 95 0, 0, kDefaultWidth, chrome::kTabStripHeight)]); | 95 chrome::TabStripHeight())]); |
| 96 [tabStripView_ setAutoresizingMask:NSViewWidthSizable | | 96 [tabStripView_ setAutoresizingMask:NSViewWidthSizable | |
| 97 NSViewMinYMargin]; | 97 NSViewMinYMargin]; |
| 98 if (hasTabStrip) | 98 if (hasTabStrip) |
| 99 [windowView addSubview:tabStripView_]; | 99 [windowView addSubview:tabStripView_]; |
| 100 } | 100 } |
| 101 return self; | 101 return self; |
| 102 } | 102 } |
| 103 | 103 |
| 104 - (NSView*)tabStripBackgroundView { | 104 - (NSView*)tabStripBackgroundView { |
| 105 return tabStripBackgroundView_; | 105 return tabStripBackgroundView_; |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 [visualEffectView addSubview:tabStripBackgroundView_]; | 383 [visualEffectView addSubview:tabStripBackgroundView_]; |
| 384 } | 384 } |
| 385 | 385 |
| 386 // Called when the size of the window content area has changed. Override to | 386 // Called when the size of the window content area has changed. Override to |
| 387 // position specific views. Base class implementation does nothing. | 387 // position specific views. Base class implementation does nothing. |
| 388 - (void)layoutSubviews { | 388 - (void)layoutSubviews { |
| 389 NOTIMPLEMENTED(); | 389 NOTIMPLEMENTED(); |
| 390 } | 390 } |
| 391 | 391 |
| 392 @end | 392 @end |
| OLD | NEW |