summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/bookmark_bar_toolbar_view.h
diff options
context:
space:
mode:
authorerg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-06 00:28:35 +0000
committererg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-06 00:28:35 +0000
commit20ede07176ece47e95efa8f355ee68a61166b68c (patch)
tree87b994d26fba0129ab5c28998f7ba9e99c04c735 /chrome/browser/cocoa/bookmark_bar_toolbar_view.h
parent48285173b623d950ecb04be6fd120f464c447e61 (diff)
downloadchromium_src-20ede07176ece47e95efa8f355ee68a61166b68c.zip
chromium_src-20ede07176ece47e95efa8f355ee68a61166b68c.tar.gz
chromium_src-20ede07176ece47e95efa8f355ee68a61166b68c.tar.bz2
Mac: Implements the special bookmark bar on NTP.
Based mostly on Ben's patch, but made it compile, work, and descoped moving the bookmark bar around the view heiarchy. XIB modification: The root view is now a BookmarkBarToolbarView instead of an NSView and is [BookmarkBarController view]. BUG=17625 Review URL: http://codereview.chromium.org/246034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28074 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/bookmark_bar_toolbar_view.h')
-rw-r--r--chrome/browser/cocoa/bookmark_bar_toolbar_view.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/bookmark_bar_toolbar_view.h b/chrome/browser/cocoa/bookmark_bar_toolbar_view.h
new file mode 100644
index 0000000..2808cc5
--- /dev/null
+++ b/chrome/browser/cocoa/bookmark_bar_toolbar_view.h
@@ -0,0 +1,25 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// The BookmarkBarToolbarView is responsible for drawing the background of the
+// BookmarkBar's toolbar in either of its two display modes - permanently
+// attached (slimline with a stroke at the bottom edge) or New Tab Page style
+// (padded with a round rect border and the New Tab Page theme behind).
+
+#ifndef CHROME_BROWSER_COCOA_BOOKMARK_BAR_TOOLBAR_VIEW_H_
+#define CHROME_BROWSER_COCOA_BOOKMARK_BAR_TOOLBAR_VIEW_H_
+
+#import <Cocoa/Cocoa.h>
+
+#import "chrome/browser/cocoa/background_gradient_view.h"
+
+@protocol BookmarkBarFloating;
+
+@interface BookmarkBarToolbarView : BackgroundGradientView {
+ @private
+ IBOutlet id<BookmarkBarFloating> controller_;
+}
+@end
+
+#endif // CHROME_BROWSER_COCOA_BOOKMARK_BAR_TOOLBAR_VIEW_H_