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

Side by Side Diff: chrome/browser/ui/cocoa/tabs/tab_window_controller.mm

Issue 1971343004: [Material][Mac] Reduced the area above tabs by 2 pts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed test Created 4 years, 7 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
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_layout_unittest.mm ('k') | no next file » | 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) 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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_layout_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698