Chromium Code Reviews| 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" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 44 BOOL shouldShowAvatar; | 44 BOOL shouldShowAvatar; |
| 45 // Whether to use the new avatar button. Only needs to be set when | 45 // Whether to use the new avatar button. Only needs to be set when |
| 46 // shouldShowAvatar is YES. | 46 // shouldShowAvatar is YES. |
| 47 BOOL shouldUseNewAvatar; | 47 BOOL shouldUseNewAvatar; |
| 48 // The size of the avatar button. Only needs to be set when shouldShowAvatar | 48 // The size of the avatar button. Only needs to be set when shouldShowAvatar |
| 49 // is YES. | 49 // is YES. |
| 50 NSSize avatarSize; | 50 NSSize avatarSize; |
| 51 // The line width that will generate a 1 pixel wide line for the avatar's | 51 // The line width that will generate a 1 pixel wide line for the avatar's |
| 52 // superview. Only needs to be set when shouldShowAvatar is YES. | 52 // superview. Only needs to be set when shouldShowAvatar is YES. |
| 53 CGFloat avatarLineWidth; | 53 CGFloat avatarLineWidth; |
| 54 | 54 |
|
tapted
2015/10/12 23:56:43
nit: remove newline
| |
| 55 // Hosted apps hide and show the toolbar (location bar) independently of | |
| 56 // whether it is available as a browser feature. | |
| 57 BOOL toolbarHidden; | |
|
tapted
2015/10/12 23:56:43
nit: newline after (otherwise it looks like the co
tapted
2015/10/13 00:00:19
Also, maybe this can be obsoleted by setting toolb
dominickn
2015/10/15 06:22:28
Changes discarded.
| |
| 55 BOOL hasToolbar; | 58 BOOL hasToolbar; |
| 56 BOOL hasLocationBar; | 59 BOOL hasLocationBar; |
| 57 CGFloat toolbarHeight; | 60 CGFloat toolbarHeight; |
| 58 | 61 |
| 59 BOOL bookmarkBarHidden; | 62 BOOL bookmarkBarHidden; |
| 60 // If the bookmark bar is not hidden, then the bookmark bar should either be | 63 // If the bookmark bar is not hidden, then the bookmark bar should either be |
| 61 // directly below the omnibox, or directly below the info bar. This parameter | 64 // directly below the omnibox, or directly below the info bar. This parameter |
| 62 // selects between those 2 cases. | 65 // selects between those 2 cases. |
| 63 BOOL placeBookmarkBarBelowInfoBar; | 66 BOOL placeBookmarkBarBelowInfoBar; |
| 64 CGFloat bookmarkBarHeight; | 67 CGFloat bookmarkBarHeight; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 152 - (void)setFullscreenMenubarOffset:(CGFloat)menubarOffset; | 155 - (void)setFullscreenMenubarOffset:(CGFloat)menubarOffset; |
| 153 - (void)setFullscreenToolbarFraction:(CGFloat)toolbarFraction; | 156 - (void)setFullscreenToolbarFraction:(CGFloat)toolbarFraction; |
| 154 | 157 |
| 155 - (void)setHasTabStrip:(BOOL)hasTabStrip; | 158 - (void)setHasTabStrip:(BOOL)hasTabStrip; |
| 156 - (void)setFullscreenButtonFrame:(NSRect)frame; | 159 - (void)setFullscreenButtonFrame:(NSRect)frame; |
| 157 - (void)setShouldShowAvatar:(BOOL)shouldShowAvatar; | 160 - (void)setShouldShowAvatar:(BOOL)shouldShowAvatar; |
| 158 - (void)setShouldUseNewAvatar:(BOOL)shouldUseNewAvatar; | 161 - (void)setShouldUseNewAvatar:(BOOL)shouldUseNewAvatar; |
| 159 - (void)setAvatarSize:(NSSize)avatarSize; | 162 - (void)setAvatarSize:(NSSize)avatarSize; |
| 160 - (void)setAvatarLineWidth:(CGFloat)avatarLineWidth; | 163 - (void)setAvatarLineWidth:(CGFloat)avatarLineWidth; |
| 161 | 164 |
| 165 - (void)setToolbarHidden:(BOOL)toolbarHidden; | |
| 162 - (void)setHasToolbar:(BOOL)hasToolbar; | 166 - (void)setHasToolbar:(BOOL)hasToolbar; |
| 163 - (void)setHasLocationBar:(BOOL)hasLocationBar; | 167 - (void)setHasLocationBar:(BOOL)hasLocationBar; |
| 164 - (void)setToolbarHeight:(CGFloat)toolbarHeight; | 168 - (void)setToolbarHeight:(CGFloat)toolbarHeight; |
| 165 | 169 |
| 166 - (void)setBookmarkBarHidden:(BOOL)bookmarkBarHidden; | 170 - (void)setBookmarkBarHidden:(BOOL)bookmarkBarHidden; |
| 167 - (void)setPlaceBookmarkBarBelowInfoBar:(BOOL)placeBookmarkBarBelowInfoBar; | 171 - (void)setPlaceBookmarkBarBelowInfoBar:(BOOL)placeBookmarkBarBelowInfoBar; |
| 168 - (void)setBookmarkBarHeight:(CGFloat)bookmarkBarHeight; | 172 - (void)setBookmarkBarHeight:(CGFloat)bookmarkBarHeight; |
| 169 | 173 |
| 170 // The height of the info bar, not including the top arrow. | 174 // The height of the info bar, not including the top arrow. |
| 171 - (void)setInfoBarHeight:(CGFloat)infoBarHeight; | 175 - (void)setInfoBarHeight:(CGFloat)infoBarHeight; |
| 172 // The min Y of the bubble point, relative to the toolbar. | 176 // The min Y of the bubble point, relative to the toolbar. |
| 173 - (void)setPageInfoBubblePointY:(CGFloat)pageInfoBubblePointY; | 177 - (void)setPageInfoBubblePointY:(CGFloat)pageInfoBubblePointY; |
| 174 | 178 |
| 175 - (void)setHasDownloadShelf:(BOOL)hasDownloadShelf; | 179 - (void)setHasDownloadShelf:(BOOL)hasDownloadShelf; |
| 176 - (void)setDownloadShelfHeight:(CGFloat)downloadShelfHeight; | 180 - (void)setDownloadShelfHeight:(CGFloat)downloadShelfHeight; |
| 177 @end | 181 @end |
| 178 | 182 |
| 179 @interface BrowserWindowLayout (ExposedForTesting) | 183 @interface BrowserWindowLayout (ExposedForTesting) |
| 180 - (void)setOSYosemiteOrLater:(BOOL)osYosemiteOrLater; | 184 - (void)setOSYosemiteOrLater:(BOOL)osYosemiteOrLater; |
| 181 @end | 185 @end |
| 182 | 186 |
| 183 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_LAYOUT_H_ | 187 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_LAYOUT_H_ |
| OLD | NEW |