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

Unified Diff: ui/message_center/cocoa/tray_view_controller.mm

Issue 22441006: [MC] Add the product name to the tray controller's title. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move string Created 7 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
« no previous file with comments | « ui/message_center/cocoa/tray_view_controller.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/cocoa/tray_view_controller.mm
diff --git a/ui/message_center/cocoa/tray_view_controller.mm b/ui/message_center/cocoa/tray_view_controller.mm
index cf49a95e2565a05edf485f229429bf271d3582ff..67b0cdf712dc5f28e0167ea7d97ab7ab10f60922 100644
--- a/ui/message_center/cocoa/tray_view_controller.mm
+++ b/ui/message_center/cocoa/tray_view_controller.mm
@@ -35,7 +35,7 @@ const int kBackButtonSize = 16;
frozen_ = frozen;
}
--(NSPoint)constrainScrollPoint:(NSPoint)proposedNewOrigin {
+- (NSPoint)constrainScrollPoint:(NSPoint)proposedNewOrigin {
return frozen_ ? [self documentVisibleRect].origin :
[super constrainScrollPoint:proposedNewOrigin];
}
@@ -110,6 +110,15 @@ const CGFloat kTrayBottomMargin = 75;
return self;
}
+- (NSString*)trayTitle {
+ return [title_ stringValue];
+}
+
+- (void)setTrayTitle:(NSString*)title {
+ [title_ setStringValue:title];
+ [title_ sizeToFit];
+}
+
- (void)onWindowClosing {
if (animation_) {
[animation_ stopAnimation];
« no previous file with comments | « ui/message_center/cocoa/tray_view_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698