| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "app/theme_provider.h" | |
| 8 #include "base/logging.h" | 7 #include "base/logging.h" |
| 9 #import "chrome/browser/ui/cocoa/focus_tracker.h" | 8 #import "chrome/browser/ui/cocoa/focus_tracker.h" |
| 10 #import "chrome/browser/ui/cocoa/tabs/tab_strip_view.h" | 9 #import "chrome/browser/ui/cocoa/tabs/tab_strip_view.h" |
| 11 #import "chrome/browser/ui/cocoa/themed_window.h" | 10 #import "chrome/browser/ui/cocoa/themed_window.h" |
| 11 #include "ui/base/theme_provider.h" |
| 12 | 12 |
| 13 @interface TabWindowController(PRIVATE) | 13 @interface TabWindowController(PRIVATE) |
| 14 - (void)setUseOverlay:(BOOL)useOverlay; | 14 - (void)setUseOverlay:(BOOL)useOverlay; |
| 15 @end | 15 @end |
| 16 | 16 |
| 17 @interface TabWindowOverlayWindow : NSWindow | 17 @interface TabWindowOverlayWindow : NSWindow |
| 18 @end | 18 @end |
| 19 | 19 |
| 20 @implementation TabWindowOverlayWindow | 20 @implementation TabWindowOverlayWindow |
| 21 | 21 |
| 22 - (ThemeProvider*)themeProvider { | 22 - (ui::ThemeProvider*)themeProvider { |
| 23 if ([self parentWindow]) | 23 if ([self parentWindow]) |
| 24 return [[[self parentWindow] windowController] themeProvider]; | 24 return [[[self parentWindow] windowController] themeProvider]; |
| 25 return NULL; | 25 return NULL; |
| 26 } | 26 } |
| 27 | 27 |
| 28 - (ThemedWindowStyle)themedWindowStyle { | 28 - (ThemedWindowStyle)themedWindowStyle { |
| 29 if ([self parentWindow]) | 29 if ([self parentWindow]) |
| 30 return [[[self parentWindow] windowController] themedWindowStyle]; | 30 return [[[self parentWindow] windowController] themedWindowStyle]; |
| 31 return NO; | 31 return NO; |
| 32 } | 32 } |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 closeDeferred_ = YES; | 347 closeDeferred_ = YES; |
| 348 } | 348 } |
| 349 | 349 |
| 350 // Called when the size of the window content area has changed. Override to | 350 // Called when the size of the window content area has changed. Override to |
| 351 // position specific views. Base class implementation does nothing. | 351 // position specific views. Base class implementation does nothing. |
| 352 - (void)layoutSubviews { | 352 - (void)layoutSubviews { |
| 353 NOTIMPLEMENTED(); | 353 NOTIMPLEMENTED(); |
| 354 } | 354 } |
| 355 | 355 |
| 356 @end | 356 @end |
| OLD | NEW |