OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PRIVATE_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ |
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ |
7 | 7 |
8 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 8 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
9 | 9 |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 // Returns YES if the bookmark bar should be placed below the infobar, NO | 59 // Returns YES if the bookmark bar should be placed below the infobar, NO |
60 // otherwise. | 60 // otherwise. |
61 - (BOOL)placeBookmarkBarBelowInfoBar; | 61 - (BOOL)placeBookmarkBarBelowInfoBar; |
62 | 62 |
63 // Lays out the bookmark bar at the given maximum y-coordinate, with the given | 63 // Lays out the bookmark bar at the given maximum y-coordinate, with the given |
64 // width; returns the new maximum y (below the bookmark bar). Note that one must | 64 // width; returns the new maximum y (below the bookmark bar). Note that one must |
65 // call it with the appropriate |maxY| which depends on whether or not the | 65 // call it with the appropriate |maxY| which depends on whether or not the |
66 // bookmark bar is shown as the NTP bubble or not (use | 66 // bookmark bar is shown as the NTP bubble or not (use |
67 // |-placeBookmarkBarBelowInfoBar|). | 67 // |-placeBookmarkBarBelowInfoBar|). |
68 - (CGFloat)layoutBookmarkBarAtMinX:(CGFloat)minX | 68 - (CGFloat)layoutTopBookmarkBarAtMinX:(CGFloat)minX |
69 maxY:(CGFloat)maxY | 69 maxY:(CGFloat)maxY |
70 width:(CGFloat)width; | 70 width:(CGFloat)width; |
| 71 |
| 72 // Lays out the bookmark at the bottom of the content area. |
| 73 - (void)layoutBottomBookmarkBarInContentFrame:(NSRect)contentFrame; |
71 | 74 |
72 // Lay out the view which draws the background for the floating bar when in | 75 // Lay out the view which draws the background for the floating bar when in |
73 // presentation mode, with the given frame and presentation-mode-status. Should | 76 // presentation mode, with the given frame and presentation-mode-status. Should |
74 // be called even when not in presentation mode to hide the backing view. | 77 // be called even when not in presentation mode to hide the backing view. |
75 - (void)layoutFloatingBarBackingView:(NSRect)frame | 78 - (void)layoutFloatingBarBackingView:(NSRect)frame |
76 presentationMode:(BOOL)presentationMode; | 79 presentationMode:(BOOL)presentationMode; |
77 | 80 |
78 // Lays out the infobar at the given maximum y-coordinate, with the given width; | 81 // Lays out the infobar at the given maximum y-coordinate, with the given width; |
79 // returns the new maximum y (below the infobar). | 82 // returns the new maximum y (below the infobar). |
80 - (CGFloat)layoutInfoBarAtMinX:(CGFloat)minX | 83 - (CGFloat)layoutInfoBarAtMinX:(CGFloat)minX |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 | 147 |
145 // Allows/prevents bar visibility locks and releases from updating the visual | 148 // Allows/prevents bar visibility locks and releases from updating the visual |
146 // state. Enabling makes changes instantaneously; disabling cancels any | 149 // state. Enabling makes changes instantaneously; disabling cancels any |
147 // timers/animation. | 150 // timers/animation. |
148 - (void)enableBarVisibilityUpdates; | 151 - (void)enableBarVisibilityUpdates; |
149 - (void)disableBarVisibilityUpdates; | 152 - (void)disableBarVisibilityUpdates; |
150 | 153 |
151 @end // @interface BrowserWindowController(Private) | 154 @end // @interface BrowserWindowController(Private) |
152 | 155 |
153 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ | 156 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_PRIVATE_H_ |
OLD | NEW |