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

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

Issue 2126953002: [Material][Mac] Fix the indicator and close button in a dragged tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaned up Created 4 years, 5 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/tabs/alert_indicator_button_cocoa.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 27 matching lines...) Expand all
38 } 38 }
39 39
40 - (ThemedWindowStyle)themedWindowStyle { 40 - (ThemedWindowStyle)themedWindowStyle {
41 return [[self parentWindow] themedWindowStyle]; 41 return [[self parentWindow] themedWindowStyle];
42 } 42 }
43 43
44 - (NSPoint)themeImagePositionForAlignment:(ThemeImageAlignment)alignment { 44 - (NSPoint)themeImagePositionForAlignment:(ThemeImageAlignment)alignment {
45 return [[self parentWindow] themeImagePositionForAlignment:alignment]; 45 return [[self parentWindow] themeImagePositionForAlignment:alignment];
46 } 46 }
47 47
48 - (BOOL)hasDarkTheme {
49 return [[self parentWindow] hasDarkTheme];
50 }
51
48 @end 52 @end
49 53
50 @implementation TabWindowController 54 @implementation TabWindowController
51 55
52 - (id)initTabWindowControllerWithTabStrip:(BOOL)hasTabStrip 56 - (id)initTabWindowControllerWithTabStrip:(BOOL)hasTabStrip
53 titleBar:(BOOL)hasTitleBar { 57 titleBar:(BOOL)hasTitleBar {
54 const CGFloat kDefaultWidth = 750; 58 const CGFloat kDefaultWidth = 750;
55 const CGFloat kDefaultHeight = 600; 59 const CGFloat kDefaultHeight = 600;
56 60
57 NSRect contentRect = NSMakeRect(60, 229, kDefaultWidth, kDefaultHeight); 61 NSRect contentRect = NSMakeRect(60, 229, kDefaultWidth, kDefaultHeight);
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 [visualEffectView addSubview:tabStripBackgroundView_]; 401 [visualEffectView addSubview:tabStripBackgroundView_];
398 } 402 }
399 403
400 // Called when the size of the window content area has changed. Override to 404 // Called when the size of the window content area has changed. Override to
401 // position specific views. Base class implementation does nothing. 405 // position specific views. Base class implementation does nothing.
402 - (void)layoutSubviews { 406 - (void)layoutSubviews {
403 NOTIMPLEMENTED(); 407 NOTIMPLEMENTED();
404 } 408 }
405 409
406 @end 410 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tabs/alert_indicator_button_cocoa.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698