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

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

Issue 7734003: Implement basic theming for panel titlebars. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 4 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
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 a074475fa5471a1b2466b2b5682d85bf635109c9..b3722d4e580ee1d5ac97e7931a1059a1fa326400 100644
--- a/chrome/browser/ui/panels/panel_titlebar_view_cocoa.h
+++ b/chrome/browser/ui/panels/panel_titlebar_view_cocoa.h
@@ -7,6 +7,7 @@
#import <Cocoa/Cocoa.h>
+#import "chrome/browser/ui/cocoa/background_gradient_view.h"
#import "chrome/browser/ui/cocoa/tracking_area.h"
@class CrTrackingArea;
@@ -22,7 +23,7 @@
// differently based on being key window) so it appears easier to simply overlay
// the standard titlebar.
-@interface PanelTitlebarViewCocoa : NSView {
+@interface PanelTitlebarViewCocoa : BackgroundGradientView {
IBOutlet PanelWindowControllerCocoa* controller_;
NSButton* closeButton_; // Created explicitly, not from NIB. Weak, destroyed
// when view is destroyed, as a subview.
@@ -35,6 +36,8 @@
// Attaches this view to the controller_'s window as a titlebar.
- (void)attach;
+- (void)setTitle:(NSString*)newTitle;
+
// Should be called when size of the titlebar changes.
- (void)updateCloseButtonLayout;

Powered by Google App Engine
This is Rietveld 408576698