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

Side by Side Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.h

Issue 2747693003: Add missing include guards in Cocoa code. (Closed)
Patch Set: Fix nit Created 3 years, 9 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 (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
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
8 // (padded with a round rect border and the New Tab Page theme behind).
9
10 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_TOOLBAR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_TOOLBAR_VIEW_H_
11 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_TOOLBAR_VIEW_H_ 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_TOOLBAR_VIEW_H_
12 7
13 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
14 9
15 #import "chrome/browser/ui/cocoa/animatable_view.h" 10 #import "chrome/browser/ui/cocoa/animatable_view.h"
16 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_state.h" 11 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_state.h"
17 12
18 class Profile; 13 class Profile;
19 14
20 // An interface to allow mocking of a BookmarkBarController by the 15 // An interface to allow mocking of a BookmarkBarController by the
21 // BookmarkBarToolbarView. 16 // BookmarkBarToolbarView.
22 @protocol BookmarkBarToolbarViewController <BookmarkBarState> 17 @protocol BookmarkBarToolbarViewController <BookmarkBarState>
23 // Displaying the bookmark toolbar background in bubble (floating) mode requires 18 // Displaying the bookmark toolbar background in bubble (floating) mode requires
24 // the size of the currently selected tab to properly calculate where the 19 // the size of the currently selected tab to properly calculate where the
25 // background image is joined. 20 // background image is joined.
26 - (int)currentTabContentsHeight; 21 - (int)currentTabContentsHeight;
27 22
28 // Current profile. 23 // Current profile.
29 - (Profile*)profile; 24 - (Profile*)profile;
30 25
31 @end 26 @end
32 27
28 // The BookmarkBarToolbarView is responsible for drawing the background of the
29 // BookmarkBar's toolbar in either of its two display modes - permanently
30 // attached (slimline with a stroke at the bottom edge) or New Tab Page style
31 // (padded with a round rect border and the New Tab Page theme behind).
33 @interface BookmarkBarToolbarView : AnimatableView { 32 @interface BookmarkBarToolbarView : AnimatableView {
34 @private 33 @private
35 // The controller which tells us how we should be drawing (as normal or as a 34 // The controller which tells us how we should be drawing (as normal or as a
36 // floating bar). Weak reference. 35 // floating bar). Weak reference.
37 id<BookmarkBarToolbarViewController> controller_; 36 id<BookmarkBarToolbarViewController> controller_;
38 } 37 }
39 38
40 // Exposed so that the controller can nil itself out 39 // Exposed so that the controller can nil itself out
41 - (void)setController:(id<BookmarkBarToolbarViewController>)controller; 40 - (void)setController:(id<BookmarkBarToolbarViewController>)controller;
42 @end 41 @end
43 42
44 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_TOOLBAR_VIEW_H_ 43 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_TOOLBAR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698