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)themePatternPhaseForAlignment:(ThemePatternAlignment)alignment { | 36 - (NSPoint)themeImagePositionForAlignment:(ThemeImageAlignment)alignment { |
37 if ([self parentWindow]) { | 37 if ([self parentWindow]) { |
38 return [[[self parentWindow] windowController] | 38 return [[[self parentWindow] windowController] |
39 themePatternPhaseForAlignment:alignment]; | 39 themeImagePositionForAlignment:alignment]; |
40 } | 40 } |
41 return NSZeroPoint; | 41 return NSZeroPoint; |
42 } | 42 } |
43 | 43 |
44 @end | 44 @end |
45 | 45 |
46 @implementation TabWindowController | 46 @implementation TabWindowController |
47 | 47 |
48 - (id)initTabWindowControllerWithTabStrip:(BOOL)hasTabStrip { | 48 - (id)initTabWindowControllerWithTabStrip:(BOOL)hasTabStrip { |
49 NSRect contentRect = NSMakeRect(60, 229, 750, 600); | 49 NSRect contentRect = NSMakeRect(60, 229, 750, 600); |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 closeDeferred_ = YES; | 285 closeDeferred_ = YES; |
286 } | 286 } |
287 | 287 |
288 // 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 |
289 // position specific views. Base class implementation does nothing. | 289 // position specific views. Base class implementation does nothing. |
290 - (void)layoutSubviews { | 290 - (void)layoutSubviews { |
291 NOTIMPLEMENTED(); | 291 NOTIMPLEMENTED(); |
292 } | 292 } |
293 | 293 |
294 @end | 294 @end |
OLD | NEW |