| OLD | NEW | 
|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_BUTTON_CELL_H_ | 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_ | 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_BUTTON_CELL_H_ | 
| 7 #pragma once | 7 #pragma once | 
| 8 | 8 | 
| 9 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h" | 9 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h" | 
| 10 | 10 | 
| 11 class BookmarkNode; | 11 class BookmarkNode; | 
| 12 | 12 | 
| 13 // A button cell that handles drawing/highlighting of buttons in the | 13 // A button cell that handles drawing/highlighting of buttons in the | 
| 14 // bookmark bar.  This cell forwards mouseEntered/mouseExited events | 14 // bookmark bar.  This cell forwards mouseEntered/mouseExited events | 
| 15 // to its control view so that pseudo-menu operations | 15 // to its control view so that pseudo-menu operations | 
| 16 // (e.g. hover-over to open) can be implemented. | 16 // (e.g. hover-over to open) can be implemented. | 
| 17 @interface BookmarkBarFolderButtonCell : BookmarkButtonCell { | 17 @interface BookmarkBarFolderButtonCell : BookmarkButtonCell | 
| 18  @private |  | 
| 19   scoped_nsobject<NSColor> frameColor_; |  | 
| 20 } |  | 
| 21 | 18 | 
| 22 // Create a button cell which draws without a theme and with a frame | 19 // Create a button cell which draws without a theme and with a frame | 
| 23 // color provided by the ThemeService defaults. | 20 // color provided by the ThemeService defaults. | 
| 24 + (id)buttonCellForNode:(const BookmarkNode*)node | 21 + (id)buttonCellForNode:(const BookmarkNode*)node | 
| 25             contextMenu:(NSMenu*)contextMenu | 22             contextMenu:(NSMenu*)contextMenu | 
| 26                cellText:(NSString*)cellText | 23                cellText:(NSString*)cellText | 
| 27               cellImage:(NSImage*)cellImage; | 24               cellImage:(NSImage*)cellImage; | 
| 28 | 25 | 
| 29 @end | 26 @end | 
| 30 | 27 | 
| 31 #endif  // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_BUTTON_CELL_H_ | 28 #endif  // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_BUTTON_CELL_H_ | 
| OLD | NEW | 
|---|