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

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

Issue 2862003004: Mac: Fix infobar anchor under Harmony. (Closed)
Patch Set: s/. I/ i/ Created 3 years, 7 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_LAYOUT_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_LAYOUT_H_
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_LAYOUT_H_ 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_LAYOUT_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #import "chrome/browser/ui/cocoa/fullscreen/fullscreen_toolbar_controller.h" 10 #import "chrome/browser/ui/cocoa/fullscreen/fullscreen_toolbar_controller.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // directly below the omnibox, or directly below the info bar. This parameter 65 // directly below the omnibox, or directly below the info bar. This parameter
66 // selects between those 2 cases. 66 // selects between those 2 cases.
67 BOOL placeBookmarkBarBelowInfoBar; 67 BOOL placeBookmarkBarBelowInfoBar;
68 CGFloat bookmarkBarHeight; 68 CGFloat bookmarkBarHeight;
69 69
70 // The height of the info bar, not including the top arrow. 70 // The height of the info bar, not including the top arrow.
71 CGFloat infoBarHeight; 71 CGFloat infoBarHeight;
72 // The distance from the bottom of the location icon to the bottom of the 72 // The distance from the bottom of the location icon to the bottom of the
73 // toolbar. Only needs to be set if infoBarHeight is not 0 and hasToolbar is 73 // toolbar. Only needs to be set if infoBarHeight is not 0 and hasToolbar is
74 // YES. 74 // YES.
75 CGFloat pageInfoBubblePointY; 75 CGFloat infoBarAnchorPointY;
76 76
77 BOOL hasDownloadShelf; 77 BOOL hasDownloadShelf;
78 CGFloat downloadShelfHeight; 78 CGFloat downloadShelfHeight;
79 79
80 // This parameter exists so that unit tests can configure the OS version. 80 // This parameter exists so that unit tests can configure the OS version.
81 BOOL isOSYosemiteOrLater; 81 BOOL isOSYosemiteOrLater;
82 }; 82 };
83 83
84 // The parameters required to lay out the tab strip and its components. 84 // The parameters required to lay out the tab strip and its components.
85 struct TabStripLayout { 85 struct TabStripLayout {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 - (void)setHasToolbar:(BOOL)hasToolbar; 165 - (void)setHasToolbar:(BOOL)hasToolbar;
166 - (void)setHasLocationBar:(BOOL)hasLocationBar; 166 - (void)setHasLocationBar:(BOOL)hasLocationBar;
167 - (void)setToolbarHeight:(CGFloat)toolbarHeight; 167 - (void)setToolbarHeight:(CGFloat)toolbarHeight;
168 168
169 - (void)setBookmarkBarHidden:(BOOL)bookmarkBarHidden; 169 - (void)setBookmarkBarHidden:(BOOL)bookmarkBarHidden;
170 - (void)setPlaceBookmarkBarBelowInfoBar:(BOOL)placeBookmarkBarBelowInfoBar; 170 - (void)setPlaceBookmarkBarBelowInfoBar:(BOOL)placeBookmarkBarBelowInfoBar;
171 - (void)setBookmarkBarHeight:(CGFloat)bookmarkBarHeight; 171 - (void)setBookmarkBarHeight:(CGFloat)bookmarkBarHeight;
172 172
173 // The height of the info bar, not including the top arrow. 173 // The height of the info bar, not including the top arrow.
174 - (void)setInfoBarHeight:(CGFloat)infoBarHeight; 174 - (void)setInfoBarHeight:(CGFloat)infoBarHeight;
175 // The min Y of the bubble point, relative to the toolbar. 175 // The min Y of the infobar anchor point, relative to the toolbar.
176 - (void)setPageInfoBubblePointY:(CGFloat)pageInfoBubblePointY; 176 - (void)setInfoBarAnchorPointY:(CGFloat)infoBarAnchorPointY;
177 177
178 - (void)setHasDownloadShelf:(BOOL)hasDownloadShelf; 178 - (void)setHasDownloadShelf:(BOOL)hasDownloadShelf;
179 - (void)setDownloadShelfHeight:(CGFloat)downloadShelfHeight; 179 - (void)setDownloadShelfHeight:(CGFloat)downloadShelfHeight;
180 @end 180 @end
181 181
182 @interface BrowserWindowLayout (ExposedForTesting) 182 @interface BrowserWindowLayout (ExposedForTesting)
183 - (void)setOSYosemiteOrLater:(BOOL)osYosemiteOrLater; 183 - (void)setOSYosemiteOrLater:(BOOL)osYosemiteOrLater;
184 @end 184 @end
185 185
186 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_LAYOUT_H_ 186 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_LAYOUT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller_private.mm ('k') | chrome/browser/ui/cocoa/browser_window_layout.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698