| 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 "chrome/browser/ui/cocoa/fast_resize_view.h" | 8 #import "chrome/browser/ui/cocoa/fast_resize_view.h" |
| 9 #import "chrome/browser/ui/cocoa/framed_browser_window.h" | 9 #import "chrome/browser/ui/cocoa/framed_browser_window.h" |
| 10 #import "chrome/browser/ui/cocoa/tabs/tab_strip_view.h" | 10 #import "chrome/browser/ui/cocoa/tabs/tab_strip_view.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 return [[[self parentWindow] windowController] themeProvider]; | 26 return [[[self parentWindow] windowController] themeProvider]; |
| 27 return NULL; | 27 return NULL; |
| 28 } | 28 } |
| 29 | 29 |
| 30 - (ThemedWindowStyle)themedWindowStyle { | 30 - (ThemedWindowStyle)themedWindowStyle { |
| 31 if ([self parentWindow]) | 31 if ([self parentWindow]) |
| 32 return [[[self parentWindow] windowController] themedWindowStyle]; | 32 return [[[self parentWindow] windowController] themedWindowStyle]; |
| 33 return NO; | 33 return NO; |
| 34 } | 34 } |
| 35 | 35 |
| 36 - (NSPoint)themePatternPhase { | 36 - (NSPoint)themePatternPhaseForAlignment:(ThemePatternAlignment)alignment { |
| 37 if ([self parentWindow]) | 37 if ([self parentWindow]) { |
| 38 return [[[self parentWindow] windowController] themePatternPhase]; | 38 return [[[self parentWindow] windowController] |
| 39 themePatternPhaseForAlignment:alignment]; |
| 40 } |
| 39 return NSZeroPoint; | 41 return NSZeroPoint; |
| 40 } | 42 } |
| 41 | 43 |
| 42 @end | 44 @end |
| 43 | 45 |
| 44 @implementation TabWindowController | 46 @implementation TabWindowController |
| 45 | 47 |
| 46 - (id)initTabWindowControllerWithTabStrip:(BOOL)hasTabStrip { | 48 - (id)initTabWindowControllerWithTabStrip:(BOOL)hasTabStrip { |
| 47 NSRect contentRect = NSMakeRect(60, 229, 750, 600); | 49 NSRect contentRect = NSMakeRect(60, 229, 750, 600); |
| 48 base::scoped_nsobject<FramedBrowserWindow> window( | 50 base::scoped_nsobject<FramedBrowserWindow> window( |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 closeDeferred_ = YES; | 285 closeDeferred_ = YES; |
| 284 } | 286 } |
| 285 | 287 |
| 286 // Called when the size of the window content area has changed. Override to | 288 // Called when the size of the window content area has changed. Override to |
| 287 // position specific views. Base class implementation does nothing. | 289 // position specific views. Base class implementation does nothing. |
| 288 - (void)layoutSubviews { | 290 - (void)layoutSubviews { |
| 289 NOTIMPLEMENTED(); | 291 NOTIMPLEMENTED(); |
| 290 } | 292 } |
| 291 | 293 |
| 292 @end | 294 @end |
| OLD | NEW |