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

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

Issue 7326043: The text color for BookmarkButton sometimes doesn't get updated. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_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 #pragma once 7 #pragma once
8 8
9 #import "base/mac/cocoa_protocols.h" 9 #import "base/mac/cocoa_protocols.h"
10 #import "chrome/browser/ui/cocoa/gradient_button_cell.h" 10 #import "chrome/browser/ui/cocoa/gradient_button_cell.h"
(...skipping 10 matching lines...) Expand all
21 21
22 // Starting index of bookmarkFolder children that we care to use. 22 // Starting index of bookmarkFolder children that we care to use.
23 int startingChildIndex_; 23 int startingChildIndex_;
24 24
25 // Should we draw the folder arrow as needed? Not used for the bar 25 // Should we draw the folder arrow as needed? Not used for the bar
26 // itself but used on the folder windows. 26 // itself but used on the folder windows.
27 BOOL drawFolderArrow_; 27 BOOL drawFolderArrow_;
28 28
29 // Arrow for folders 29 // Arrow for folders
30 scoped_nsobject<NSImage> arrowImage_; 30 scoped_nsobject<NSImage> arrowImage_;
31
32 scoped_nsobject<NSColor> textColor_;
John Grabowski 2011/07/11 21:48:12 Looks like the convention in this class is to have
31 } 33 }
32 34
33 @property(nonatomic, readwrite, assign) const BookmarkNode* bookmarkNode; 35 @property(nonatomic, readwrite, assign) const BookmarkNode* bookmarkNode;
34 @property(nonatomic, readwrite, assign) int startingChildIndex; 36 @property(nonatomic, readwrite, assign) int startingChildIndex;
35 @property(nonatomic, readwrite, assign) BOOL drawFolderArrow; 37 @property(nonatomic, readwrite, assign) BOOL drawFolderArrow;
36 38
37 // Create a button cell which draws with a theme. 39 // Create a button cell which draws with a theme.
38 + (id)buttonCellForNode:(const BookmarkNode*)node 40 + (id)buttonCellForNode:(const BookmarkNode*)node
39 contextMenu:(NSMenu*)contextMenu 41 contextMenu:(NSMenu*)contextMenu
40 cellText:(NSString*)cellText 42 cellText:(NSString*)cellText
(...skipping 11 matching lines...) Expand all
52 54
53 // |-setBookmarkCellText:image:| is used to set the text and image of 55 // |-setBookmarkCellText:image:| is used to set the text and image of
54 // a BookmarkButtonCell, and align the image to the left (NSImageLeft) 56 // a BookmarkButtonCell, and align the image to the left (NSImageLeft)
55 // if there is text in the title, and centered (NSImageCenter) if 57 // if there is text in the title, and centered (NSImageCenter) if
56 // there is not. If |title| is nil, do not reset the title. 58 // there is not. If |title| is nil, do not reset the title.
57 - (void)setBookmarkCellText:(NSString*)title 59 - (void)setBookmarkCellText:(NSString*)title
58 image:(NSImage*)image; 60 image:(NSImage*)image;
59 61
60 // Set the color of text in this cell. 62 // Set the color of text in this cell.
61 - (void)setTextColor:(NSColor*)color; 63 - (void)setTextColor:(NSColor*)color;
64 - (void)applyTextColor;
John Grabowski 2011/07/11 21:48:12 Reading the header it would be unclear when or why
62 65
63 - (BOOL)isFolderButtonCell; 66 - (BOOL)isFolderButtonCell;
64 67
65 @end 68 @end
66 69
67 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BUTTON_CELL_H_ 70 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BUTTON_CELL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698