| 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 27 matching lines...) Expand all Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |