OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // The BookmarkBarToolbarView is responsible for drawing the background of the | 5 // The BookmarkBarToolbarView is responsible for drawing the background of the |
6 // BookmarkBar's toolbar in either of its two display modes - permanently | 6 // BookmarkBar's toolbar in either of its two display modes - permanently |
7 // attached (slimline with a stroke at the bottom edge) or New Tab Page style | 7 // attached (slimline with a stroke at the bottom edge) or New Tab Page style |
8 // (padded with a round rect border and the New Tab Page theme behind). | 8 // (padded with a round rect border and the New Tab Page theme behind). |
9 | 9 |
10 #ifndef CHROME_BROWSER_COCOA_BOOKMARK_BAR_TOOLBAR_VIEW_H_ | 10 #ifndef CHROME_BROWSER_COCOA_BOOKMARK_BAR_TOOLBAR_VIEW_H_ |
(...skipping 15 matching lines...) Expand all Loading... |
26 // size of the currently selected tab to properly calculate where the | 26 // size of the currently selected tab to properly calculate where the |
27 // background image is joined. | 27 // background image is joined. |
28 - (int)currentTabContentsHeight; | 28 - (int)currentTabContentsHeight; |
29 | 29 |
30 // Current theme provider, passed to the cross platform NtpBackgroundUtil class. | 30 // Current theme provider, passed to the cross platform NtpBackgroundUtil class. |
31 - (ThemeProvider*)themeProvider; | 31 - (ThemeProvider*)themeProvider; |
32 | 32 |
33 // Returns true if the bookmark bar should be drawn as if it's a disconnected | 33 // Returns true if the bookmark bar should be drawn as if it's a disconnected |
34 // bookmark bar on the New Tag Page. | 34 // bookmark bar on the New Tag Page. |
35 - (BOOL)drawAsFloatingBar; | 35 - (BOOL)drawAsFloatingBar; |
| 36 |
36 @end | 37 @end |
37 | 38 |
38 @interface BookmarkBarToolbarView : BackgroundGradientView { | 39 @interface BookmarkBarToolbarView : BackgroundGradientView { |
39 @private | 40 @private |
40 // The controller which tells us how we should be drawing (as normal or as a | 41 // The controller which tells us how we should be drawing (as normal or as a |
41 // floating bar). | 42 // floating bar). |
42 IBOutlet id<BookmarkBarToolbarViewController> controller_; | 43 IBOutlet id<BookmarkBarToolbarViewController> controller_; |
43 | |
44 // The bookmark bar's contents. | |
45 IBOutlet BookmarkBarView* buttonView_; | |
46 } | 44 } |
47 | |
48 // Called by our controller to layout our subviews, so that on new tab pages, | |
49 // we have a border. | |
50 - (void)layoutViews; | |
51 | |
52 @end | 45 @end |
53 | 46 |
54 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_TOOLBAR_VIEW_H_ | 47 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_TOOLBAR_VIEW_H_ |
OLD | NEW |