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

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

Issue 2265423007: [Material][Mac] Fix for bubble decoration text in dark theme (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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/location_bar/bubble_decoration.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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 { 48 - (BOOL)hasDarkTheme {
49 return [[self parentWindow] hasDarkTheme]; 49 return [[self parentWindow] hasDarkTheme];
50 } 50 }
51 51
52 - (BOOL)inIncognitoModeWithSystemTheme {
53 return [[self parentWindow] inIncognitoModeWithSystemTheme];
54 }
55
52 @end 56 @end
53 57
54 @implementation TabWindowController 58 @implementation TabWindowController
55 59
56 - (id)initTabWindowControllerWithTabStrip:(BOOL)hasTabStrip 60 - (id)initTabWindowControllerWithTabStrip:(BOOL)hasTabStrip
57 titleBar:(BOOL)hasTitleBar { 61 titleBar:(BOOL)hasTitleBar {
58 const CGFloat kDefaultWidth = 750; 62 const CGFloat kDefaultWidth = 750;
59 const CGFloat kDefaultHeight = 600; 63 const CGFloat kDefaultHeight = 600;
60 64
61 NSRect contentRect = NSMakeRect(60, 229, kDefaultWidth, kDefaultHeight); 65 NSRect contentRect = NSMakeRect(60, 229, kDefaultWidth, kDefaultHeight);
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 [visualEffectView addSubview:tabStripBackgroundView_]; 405 [visualEffectView addSubview:tabStripBackgroundView_];
402 } 406 }
403 407
404 // Called when the size of the window content area has changed. Override to 408 // Called when the size of the window content area has changed. Override to
405 // position specific views. Base class implementation does nothing. 409 // position specific views. Base class implementation does nothing.
406 - (void)layoutSubviews { 410 - (void)layoutSubviews {
407 NOTIMPLEMENTED(); 411 NOTIMPLEMENTED();
408 } 412 }
409 413
410 @end 414 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698