| 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 #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/presentation_mode_controller.h" | 10 #import "chrome/browser/ui/cocoa/presentation_mode_controller.h" |
| 11 | 11 |
| 12 namespace chrome { | 12 namespace chrome { |
| 13 | 13 |
| 14 // Returns the height of the tab strip. | 14 // The height of the tab strip. |
| 15 CGFloat TabStripHeight(); | 15 extern const CGFloat kTabStripHeight; |
| 16 | 16 |
| 17 // The parameters used to calculate the layout of the views managed by the | 17 // The parameters used to calculate the layout of the views managed by the |
| 18 // BrowserWindowController. | 18 // BrowserWindowController. |
| 19 struct LayoutParameters { | 19 struct LayoutParameters { |
| 20 // The size of the content view of the window. | 20 // The size of the content view of the window. |
| 21 NSSize contentViewSize; | 21 NSSize contentViewSize; |
| 22 // The size of the window. | 22 // The size of the window. |
| 23 NSSize windowSize; | 23 NSSize windowSize; |
| 24 | 24 |
| 25 // Whether the controller is in any fullscreen mode. This parameter should be | 25 // Whether the controller is in any fullscreen mode. This parameter should be |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 | 174 |
| 175 - (void)setHasDownloadShelf:(BOOL)hasDownloadShelf; | 175 - (void)setHasDownloadShelf:(BOOL)hasDownloadShelf; |
| 176 - (void)setDownloadShelfHeight:(CGFloat)downloadShelfHeight; | 176 - (void)setDownloadShelfHeight:(CGFloat)downloadShelfHeight; |
| 177 @end | 177 @end |
| 178 | 178 |
| 179 @interface BrowserWindowLayout (ExposedForTesting) | 179 @interface BrowserWindowLayout (ExposedForTesting) |
| 180 - (void)setOSYosemiteOrLater:(BOOL)osYosemiteOrLater; | 180 - (void)setOSYosemiteOrLater:(BOOL)osYosemiteOrLater; |
| 181 @end | 181 @end |
| 182 | 182 |
| 183 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_LAYOUT_H_ | 183 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_LAYOUT_H_ |
| OLD | NEW |