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

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

Issue 9706012: Add abstractions that let embedders drive tests of WebContents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove CONTENT_EXPORT on statically linked functions. Merge to head for commit. Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 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_
11 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_TOOLBAR_VIEW_H_ 11 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_TOOLBAR_VIEW_H_
12 #pragma once 12 #pragma once
13 13
14 #import <Cocoa/Cocoa.h> 14 #import <Cocoa/Cocoa.h>
15 15
16 #import "chrome/browser/ui/cocoa/animatable_view.h" 16 #import "chrome/browser/ui/cocoa/animatable_view.h"
17 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_state.h" 17 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_state.h"
18 18
19 @class BookmarkBarView; 19 @class BookmarkBarView;
20 class TabContents;
21 20
22 namespace ui { 21 namespace ui {
23 class ThemeProvider; 22 class ThemeProvider;
24 } 23 }
25 24
26 // An interface to allow mocking of a BookmarkBarController by the 25 // An interface to allow mocking of a BookmarkBarController by the
27 // BookmarkBarToolbarView. 26 // BookmarkBarToolbarView.
28 @protocol BookmarkBarToolbarViewController <BookmarkBarState> 27 @protocol BookmarkBarToolbarViewController <BookmarkBarState>
29 // Displaying the bookmark toolbar background in bubble (floating) mode requires 28 // Displaying the bookmark toolbar background in bubble (floating) mode requires
30 // the size of the currently selected tab to properly calculate where the 29 // the size of the currently selected tab to properly calculate where the
31 // background image is joined. 30 // background image is joined.
32 - (int)currentTabContentsHeight; 31 - (int)currentTabContentsHeight;
33 32
34 // Current theme provider, passed to the cross platform NtpBackgroundUtil class. 33 // Current theme provider, passed to the cross platform NtpBackgroundUtil class.
35 - (ui::ThemeProvider*)themeProvider; 34 - (ui::ThemeProvider*)themeProvider;
36 35
37 @end 36 @end
38 37
39 @interface BookmarkBarToolbarView : AnimatableView { 38 @interface BookmarkBarToolbarView : AnimatableView {
40 @private 39 @private
41 // The controller which tells us how we should be drawing (as normal or as a 40 // The controller which tells us how we should be drawing (as normal or as a
42 // floating bar). 41 // floating bar).
43 IBOutlet id<BookmarkBarToolbarViewController> controller_; 42 IBOutlet id<BookmarkBarToolbarViewController> controller_;
44 } 43 }
45 @end 44 @end
46 45
47 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_TOOLBAR_VIEW_H_ 46 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_TOOLBAR_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_window.h ('k') | chrome/browser/ui/cocoa/content_settings/collected_cookies_mac_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698