| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BUTTON_CELL_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BUTTON_CELL_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BUTTON_CELL_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BUTTON_CELL_H_ |
| 7 | 7 |
| 8 #import "chrome/browser/ui/cocoa/gradient_button_cell.h" | 8 #import "chrome/browser/ui/cocoa/gradient_button_cell.h" |
| 9 | 9 |
| 10 @class BookmarkContextMenuCocoaController; | 10 @class BookmarkContextMenuCocoaController; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 + (id)buttonCellForNode:(const bookmarks::BookmarkNode*)node | 48 + (id)buttonCellForNode:(const bookmarks::BookmarkNode*)node |
| 49 text:(NSString*)text | 49 text:(NSString*)text |
| 50 image:(NSImage*)image | 50 image:(NSImage*)image |
| 51 menuController:(BookmarkContextMenuCocoaController*)menuController; | 51 menuController:(BookmarkContextMenuCocoaController*)menuController; |
| 52 | 52 |
| 53 // Create a button cell not attached to any node which draws with a theme. | 53 // Create a button cell not attached to any node which draws with a theme. |
| 54 + (id)buttonCellWithText:(NSString*)text | 54 + (id)buttonCellWithText:(NSString*)text |
| 55 image:(NSImage*)image | 55 image:(NSImage*)image |
| 56 menuController:(BookmarkContextMenuCocoaController*)menuController; | 56 menuController:(BookmarkContextMenuCocoaController*)menuController; |
| 57 | 57 |
| 58 // Create an |OffTheSideButtonCell| (aka the overflow chevron.) |
| 59 + (id)offTheSideButtonCell; |
| 60 |
| 58 // Initialize a button cell which draws with a theme. | 61 // Initialize a button cell which draws with a theme. |
| 59 // Designated initializer. | 62 // Designated initializer. |
| 60 - (id)initForNode:(const bookmarks::BookmarkNode*)node | 63 - (id)initForNode:(const bookmarks::BookmarkNode*)node |
| 61 text:(NSString*)text | 64 text:(NSString*)text |
| 62 image:(NSImage*)image | 65 image:(NSImage*)image |
| 63 menuController:(BookmarkContextMenuCocoaController*)menuController; | 66 menuController:(BookmarkContextMenuCocoaController*)menuController; |
| 64 | 67 |
| 65 // Initialize a button cell not attached to any node which draws with a theme. | 68 // Initialize a button cell not attached to any node which draws with a theme. |
| 66 - (id)initWithText:(NSString*)text | 69 - (id)initWithText:(NSString*)text |
| 67 image:(NSImage*)image | 70 image:(NSImage*)image |
| (...skipping 13 matching lines...) Expand all Loading... |
| 81 image:(NSImage*)image; | 84 image:(NSImage*)image; |
| 82 | 85 |
| 83 // Set the color of text in this cell. | 86 // Set the color of text in this cell. |
| 84 - (void)setTextColor:(NSColor*)color; | 87 - (void)setTextColor:(NSColor*)color; |
| 85 | 88 |
| 86 - (BOOL)isFolderButtonCell; | 89 - (BOOL)isFolderButtonCell; |
| 87 | 90 |
| 88 @end | 91 @end |
| 89 | 92 |
| 90 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BUTTON_CELL_H_ | 93 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BUTTON_CELL_H_ |
| OLD | NEW |