| 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 // 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_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_TOOLBAR_VIEW_H_ | 10 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_TOOLBAR_VIEW_H_ |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 // background image is joined. | 25 // background image is joined. |
| 26 - (int)currentTabContentsHeight; | 26 - (int)currentTabContentsHeight; |
| 27 | 27 |
| 28 // Current profile. | 28 // Current profile. |
| 29 - (Profile*)profile; | 29 - (Profile*)profile; |
| 30 | 30 |
| 31 @end | 31 @end |
| 32 | 32 |
| 33 @interface BookmarkBarToolbarView : AnimatableView { | 33 @interface BookmarkBarToolbarView : AnimatableView { |
| 34 @private | 34 @private |
| 35 // The controller which tells us how we should be drawing (as normal or as a | 35 // The controller which tells us how we should be drawing (as normal or as a |
| 36 // floating bar). | 36 // floating bar). Weak reference. |
| 37 IBOutlet id<BookmarkBarToolbarViewController> controller_; | 37 id<BookmarkBarToolbarViewController> controller_; |
| 38 } | 38 } |
| 39 |
| 40 // Exposed so that the controller can nil itself out |
| 41 - (void)setController:(id<BookmarkBarToolbarViewController>)controller; |
| 39 @end | 42 @end |
| 40 | 43 |
| 41 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_TOOLBAR_VIEW_H_ | 44 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_TOOLBAR_VIEW_H_ |
| OLD | NEW |