| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |