OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/version_independent_window.h" | 5 #import "chrome/browser/ui/cocoa/version_independent_window.h" |
6 | 6 |
7 #include "base/command_line.h" | |
8 #include "base/logging.h" | 7 #include "base/logging.h" |
9 #include "base/mac/mac_util.h" | |
10 #include "chrome/common/chrome_switches.h" | |
11 | 8 |
12 @interface VersionIndependentWindow () | 9 @interface VersionIndependentWindow () |
13 | 10 |
14 + (BOOL)shouldUseFullSizeContentViewForStyle:(NSUInteger)windowStyle; | 11 + (BOOL)shouldUseFullSizeContentViewForStyle:(NSUInteger)windowStyle; |
15 | 12 |
16 - (NSView*)chromeWindowView; | 13 - (NSView*)chromeWindowView; |
17 | 14 |
18 @end | 15 @end |
19 | 16 |
20 // This view always takes the size of its superview. It is intended to be used | 17 // This view always takes the size of its superview. It is intended to be used |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 return [super contentRectForFrameRect:fRect styleMask:aStyle]; | 121 return [super contentRectForFrameRect:fRect styleMask:aStyle]; |
125 } | 122 } |
126 | 123 |
127 - (NSRect)contentRectForFrameRect:(NSRect)frameRect { | 124 - (NSRect)contentRectForFrameRect:(NSRect)frameRect { |
128 if (chromeWindowView_) | 125 if (chromeWindowView_) |
129 return frameRect; | 126 return frameRect; |
130 return [super contentRectForFrameRect:frameRect]; | 127 return [super contentRectForFrameRect:frameRect]; |
131 } | 128 } |
132 | 129 |
133 @end | 130 @end |
OLD | NEW |