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

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

Issue 1989633002: Revert "[Material][Mac] Reduced the area above tabs by 2 pts" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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