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

Side by Side Diff: chrome/browser/cocoa/bookmark_button_cell.h

Issue 2769014: Mac/clang: Possibly contentious changes. (Closed)
Patch Set: comments2 Created 10 years, 6 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_COCOA_BOOKMARK_BUTTON_CELL_H_ 5 #ifndef CHROME_BROWSER_COCOA_BOOKMARK_BUTTON_CELL_H_
6 #define CHROME_BROWSER_COCOA_BOOKMARK_BUTTON_CELL_H_ 6 #define CHROME_BROWSER_COCOA_BOOKMARK_BUTTON_CELL_H_
7 7
8 #import "base/cocoa_protocols_mac.h" 8 #import "base/cocoa_protocols_mac.h"
9 #import "chrome/browser/cocoa/gradient_button_cell.h" 9 #import "chrome/browser/cocoa/gradient_button_cell.h"
10 10
(...skipping 11 matching lines...) Expand all
22 int startingChildIndex_; 22 int startingChildIndex_;
23 23
24 // Should we draw the folder arrow as needed? Not used for the bar 24 // Should we draw the folder arrow as needed? Not used for the bar
25 // itself but used on the folder windows. 25 // itself but used on the folder windows.
26 BOOL drawFolderArrow_; 26 BOOL drawFolderArrow_;
27 27
28 // Arrow for folders 28 // Arrow for folders
29 scoped_nsobject<NSImage> arrowImage_; 29 scoped_nsobject<NSImage> arrowImage_;
30 } 30 }
31 31
32 @property (readwrite, assign) const BookmarkNode* bookmarkNode; 32 @property (nonatomic, readwrite, assign) const BookmarkNode* bookmarkNode;
33 @property (readwrite, assign) int startingChildIndex; 33 @property (nonatomic, readwrite, assign) int startingChildIndex;
34 @property (readwrite, assign) BOOL drawFolderArrow; 34 @property (nonatomic, readwrite, assign) BOOL drawFolderArrow;
35 35
36 // Create a button cell which draws with a theme. 36 // Create a button cell which draws with a theme.
37 + (id)buttonCellForNode:(const BookmarkNode*)node 37 + (id)buttonCellForNode:(const BookmarkNode*)node
38 contextMenu:(NSMenu*)contextMenu 38 contextMenu:(NSMenu*)contextMenu
39 cellText:(NSString*)cellText 39 cellText:(NSString*)cellText
40 cellImage:(NSImage*)cellImage; 40 cellImage:(NSImage*)cellImage;
41 41
42 // Initialize a button cell which draws with a theme. 42 // Initialize a button cell which draws with a theme.
43 // Designated initializer. 43 // Designated initializer.
44 - (id)initForNode:(const BookmarkNode*)node 44 - (id)initForNode:(const BookmarkNode*)node
(...skipping 10 matching lines...) Expand all
55 // there is not. If |title| is nil, do not reset the title. 55 // there is not. If |title| is nil, do not reset the title.
56 - (void)setBookmarkCellText:(NSString*)title 56 - (void)setBookmarkCellText:(NSString*)title
57 image:(NSImage*)image; 57 image:(NSImage*)image;
58 58
59 // Set the color of text in this cell. 59 // Set the color of text in this cell.
60 - (void)setTextColor:(NSColor*)color; 60 - (void)setTextColor:(NSColor*)color;
61 61
62 @end 62 @end
63 63
64 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BUTTON_CELL_H_ 64 #endif // CHROME_BROWSER_COCOA_BOOKMARK_BUTTON_CELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698