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

Side by Side Diff: ui/message_center/cocoa/tray_view_controller.h

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 UI_MESSAGE_CENTER_COCOA_TRAY_VIEW_CONTROLLER_H_ 5 #ifndef UI_MESSAGE_CENTER_COCOA_TRAY_VIEW_CONTROLLER_H_
6 #define UI_MESSAGE_CENTER_COCOA_TRAY_VIEW_CONTROLLER_H_ 6 #define UI_MESSAGE_CENTER_COCOA_TRAY_VIEW_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include <list> 10 #include <list>
11 #include <map> 11 #include <map>
12 #include <string> 12 #include <string>
13 13
14 #include "base/mac/scoped_block.h" 14 #include "base/mac/scoped_block.h"
15 #import "base/mac/scoped_nsobject.h" 15 #import "base/mac/scoped_nsobject.h"
16 #include "base/strings/string16.h"
16 #include "ui/message_center/message_center_export.h" 17 #include "ui/message_center/message_center_export.h"
17 18
18 @class HoverImageButton; 19 @class HoverImageButton;
19 @class MCNotificationController; 20 @class MCNotificationController;
20 @class MCSettingsController; 21 @class MCSettingsController;
21 22
22 namespace message_center { 23 namespace message_center {
23 class MessageCenter; 24 class MessageCenter;
24 } 25 }
25 26
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // The delay to start animating clearing next notification, in the number of 101 // The delay to start animating clearing next notification, in the number of
101 // seconds. 102 // seconds.
102 NSTimeInterval animateClearingNextNotificationDelay_; 103 NSTimeInterval animateClearingNextNotificationDelay_;
103 104
104 // For testing only. If set, the callback will be called when the animation 105 // For testing only. If set, the callback will be called when the animation
105 // ends. 106 // ends.
106 base::mac::ScopedBlock<message_center::TrayAnimationEndedCallback> 107 base::mac::ScopedBlock<message_center::TrayAnimationEndedCallback>
107 testingAnimationEndedCallback_; 108 testingAnimationEndedCallback_;
108 } 109 }
109 110
111 // The title that is displayed at the top of the message center tray.
112 @property(copy, nonatomic) NSString* trayTitle;
113
110 // Designated initializer. 114 // Designated initializer.
111 - (id)initWithMessageCenter:(message_center::MessageCenter*)messageCenter; 115 - (id)initWithMessageCenter:(message_center::MessageCenter*)messageCenter;
112 116
113 // Called when the window is being closed. 117 // Called when the window is being closed.
114 - (void)onWindowClosing; 118 - (void)onWindowClosing;
115 119
116 // Callback for when the MessageCenter model changes. 120 // Callback for when the MessageCenter model changes.
117 - (void)onMessageCenterTrayChanged; 121 - (void)onMessageCenterTrayChanged;
118 122
119 // Action for the quiet mode button. 123 // Action for the quiet mode button.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 // it to a very small value to expedite the test running. 165 // it to a very small value to expedite the test running.
162 - (void)setAnimateClearingNextNotificationDelay:(NSTimeInterval)delay; 166 - (void)setAnimateClearingNextNotificationDelay:(NSTimeInterval)delay;
163 167
164 // Setter for testingAnimationEndedCallback_. The testing code could set it 168 // Setter for testingAnimationEndedCallback_. The testing code could set it
165 // to get called back when the animation ends. 169 // to get called back when the animation ends.
166 - (void)setAnimationEndedCallback: 170 - (void)setAnimationEndedCallback:
167 (message_center::TrayAnimationEndedCallback)callback; 171 (message_center::TrayAnimationEndedCallback)callback;
168 @end 172 @end
169 173
170 #endif // UI_MESSAGE_CENTER_COCOA_TRAY_VIEW_CONTROLLER_H_ 174 #endif // UI_MESSAGE_CENTER_COCOA_TRAY_VIEW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ui/message_center/cocoa/tray_controller.mm ('k') | ui/message_center/cocoa/tray_view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698