Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_layout.h

Issue 2404783002: [Mac] Avoid "adding unknown subview" warning. (Closed)
Patch Set: Merged with head Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_LAYOUT_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_LAYOUT_H_
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_LAYOUT_H_ 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_LAYOUT_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #import "chrome/browser/ui/cocoa/fullscreen_toolbar_controller.h" 10 #import "chrome/browser/ui/cocoa/fullscreen_toolbar_controller.h"
11 11
12 namespace chrome { 12 namespace chrome {
13 13
14 // The height of the tab strip. 14 // The height of the tab strip.
15 extern const CGFloat kTabStripHeight; 15 extern const CGFloat kTabStripHeight;
16 16
17 // Returns true if windows should use NSFullSizeContentViewWindowMask style
18 // mask.
19 bool ShouldUseFullSizeContentView();
20
17 // The parameters used to calculate the layout of the views managed by the 21 // The parameters used to calculate the layout of the views managed by the
18 // BrowserWindowController. 22 // BrowserWindowController.
19 struct LayoutParameters { 23 struct LayoutParameters {
20 // The size of the content view of the window. 24 // The size of the content view of the window.
21 NSSize contentViewSize; 25 NSSize contentViewSize;
22 // The size of the window. 26 // The size of the window.
23 NSSize windowSize; 27 NSSize windowSize;
24 28
25 // Whether the controller is in any fullscreen mode. This parameter should be 29 // Whether the controller is in any fullscreen mode. This parameter should be
26 // NO if the controller is in the process of entering fullscreen. 30 // NO if the controller is in the process of entering fullscreen.
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 177
174 - (void)setHasDownloadShelf:(BOOL)hasDownloadShelf; 178 - (void)setHasDownloadShelf:(BOOL)hasDownloadShelf;
175 - (void)setDownloadShelfHeight:(CGFloat)downloadShelfHeight; 179 - (void)setDownloadShelfHeight:(CGFloat)downloadShelfHeight;
176 @end 180 @end
177 181
178 @interface BrowserWindowLayout (ExposedForTesting) 182 @interface BrowserWindowLayout (ExposedForTesting)
179 - (void)setOSYosemiteOrLater:(BOOL)osYosemiteOrLater; 183 - (void)setOSYosemiteOrLater:(BOOL)osYosemiteOrLater;
180 @end 184 @end
181 185
182 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_LAYOUT_H_ 186 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_LAYOUT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698