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

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

Issue 8141003: [Mac] Restore the old bookmark menus now that the experiment is over. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_BUTTON_CELL_H_
6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_BUTTON_CELL_H_
7 #pragma once
8
9 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h"
10
11 class BookmarkNode;
12
13 // A button cell that handles drawing/highlighting of buttons in the
14 // bookmark bar. This cell forwards mouseEntered/mouseExited events
15 // to its control view so that pseudo-menu operations
16 // (e.g. hover-over to open) can be implemented.
17 @interface BookmarkBarFolderButtonCell : BookmarkButtonCell {
18 @private
19 scoped_nsobject<NSColor> frameColor_;
20 }
21
22 // Create a button cell which draws without a theme and with a frame
23 // color provided by the ThemeService defaults.
24 + (id)buttonCellForNode:(const BookmarkNode*)node
25 contextMenu:(NSMenu*)contextMenu
26 cellText:(NSString*)cellText
27 cellImage:(NSImage*)cellImage;
28
29 @end
30
31 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_BUTTON_CELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698