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

Unified Diff: chrome/browser/ui/panels/panel_titlebar_view_cocoa.h

Issue 7981035: Add icon to the panel titlebar on Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/nibs/Panel.xib ('k') | chrome/browser/ui/panels/panel_titlebar_view_cocoa.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel_titlebar_view_cocoa.h
diff --git a/chrome/browser/ui/panels/panel_titlebar_view_cocoa.h b/chrome/browser/ui/panels/panel_titlebar_view_cocoa.h
index b8b478b599d2b2c9fe8804c1d72c4ccc6aedc469..eee339bac251646d5088cfb22ae958f825121314 100644
--- a/chrome/browser/ui/panels/panel_titlebar_view_cocoa.h
+++ b/chrome/browser/ui/panels/panel_titlebar_view_cocoa.h
@@ -35,6 +35,7 @@ enum PanelDragState {
@interface PanelTitlebarViewCocoa : NSView {
@private
IBOutlet PanelWindowControllerCocoa* controller_;
+ IBOutlet NSImageView* icon_;
IBOutlet NSTextField* title_;
IBOutlet HoverImageButton* settingsButton_;
NSButton* closeButton_; // Created explicitly, not from NIB. Weak, destroyed
@@ -53,9 +54,11 @@ enum PanelDragState {
- (void)attach;
- (void)setTitle:(NSString*)newTitle;
+- (void)setIcon:(NSImage*)newIcon;
// Should be called when size of the titlebar changes.
- (void)updateCloseButtonLayout;
+- (void)updateIconAndTitleLayout;
// We need to update our look when the Chrome theme changes or window focus
// changes.
« no previous file with comments | « chrome/app/nibs/Panel.xib ('k') | chrome/browser/ui/panels/panel_titlebar_view_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698