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

Side by Side Diff: ui/message_center/cocoa/tray_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_CONTROLLER_H_ 5 #ifndef UI_MESSAGE_CENTER_COCOA_TRAY_CONTROLLER_H_
6 #define UI_MESSAGE_CENTER_COCOA_TRAY_CONTROLLER_H_ 6 #define UI_MESSAGE_CENTER_COCOA_TRAY_CONTROLLER_H_
7 7
8 #import <AppKit/AppKit.h> 8 #import <AppKit/AppKit.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 14 matching lines...) Expand all
25 message_center::MessageCenterTray* tray_; // Weak, indirectly owns this. 25 message_center::MessageCenterTray* tray_; // Weak, indirectly owns this.
26 26
27 // View controller that provides this window's content. 27 // View controller that provides this window's content.
28 base::scoped_nsobject<MCTrayViewController> viewController_; 28 base::scoped_nsobject<MCTrayViewController> viewController_;
29 29
30 // An event monitor that listens for clicks outside the tray window to cause 30 // An event monitor that listens for clicks outside the tray window to cause
31 // it to close. 31 // it to close.
32 id clickEventMonitor_; 32 id clickEventMonitor_;
33 } 33 }
34 34
35 @property(readonly, nonatomic) MCTrayViewController* viewController;
36
35 // Designated initializer. 37 // Designated initializer.
36 - (id)initWithMessageCenterTray:(message_center::MessageCenterTray*)tray; 38 - (id)initWithMessageCenterTray:(message_center::MessageCenterTray*)tray;
37 39
38 // Opens the message center tray to either the right or left of the given 40 // Opens the message center tray to either the right or left of the given
39 // points, depending on if it will fit on screen. It will try opening to the 41 // points, depending on if it will fit on screen. It will try opening to the
40 // right first, but if the window does not fit on screen, it will open to the 42 // right first, but if the window does not fit on screen, it will open to the
41 // left. 43 // left.
42 - (void)showTrayAtRightOf:(NSPoint)rightPoint atLeftOf:(NSPoint)leftPoint; 44 - (void)showTrayAtRightOf:(NSPoint)rightPoint atLeftOf:(NSPoint)leftPoint;
43 45
44 // Callback from MessageCenterTrayDelegate, used to update the tray content. 46 // Callback from MessageCenterTrayDelegate, used to update the tray content.
45 - (void)onMessageCenterTrayChanged; 47 - (void)onMessageCenterTrayChanged;
46 48
47 @end 49 @end
48 50
49 #endif // UI_MESSAGE_CENTER_COCOA_TRAY_CONTROLLER_H_ 51 #endif // UI_MESSAGE_CENTER_COCOA_TRAY_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/notifications/message_center_tray_bridge.mm ('k') | ui/message_center/cocoa/tray_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698