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

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

Issue 14598015: [Mac][MC] Implement notification updates and relayouts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments Created 7 years, 7 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_POPUP_CONTROLLER_H_ 5 #ifndef UI_MESSAGE_CENTER_COCOA_POPUP_CONTROLLER_H_
6 #define UI_MESSAGE_CENTER_COCOA_POPUP_CONTROLLER_H_ 6 #define UI_MESSAGE_CENTER_COCOA_POPUP_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 14 matching lines...) Expand all
25 MESSAGE_CENTER_EXPORT 25 MESSAGE_CENTER_EXPORT
26 @interface MCPopupController : NSWindowController { 26 @interface MCPopupController : NSWindowController {
27 @private 27 @private
28 scoped_nsobject<MCNotificationController> notificationController_; 28 scoped_nsobject<MCNotificationController> notificationController_;
29 } 29 }
30 30
31 // Designated initializer. 31 // Designated initializer.
32 - (id)initWithNotification:(const message_center::Notification*)notification 32 - (id)initWithNotification:(const message_center::Notification*)notification
33 messageCenter:(message_center::MessageCenter*)messageCenter; 33 messageCenter:(message_center::MessageCenter*)messageCenter;
34 34
35 // Accessor for the notification. 35 // Accessor for the view controller.
36 - (MCNotificationController*)notificationController;
37
38 // Accessor for the notification model object.
36 - (const message_center::Notification*)notification; 39 - (const message_center::Notification*)notification;
37 40
38 // Gets the notification ID. This string is owned by the NotificationController 41 // Gets the notification ID. This string is owned by the NotificationController
39 // rather than the model object, so it's safe to use after the Notification has 42 // rather than the model object, so it's safe to use after the Notification has
40 // been deleted. 43 // been deleted.
41 - (const std::string&)notificationID; 44 - (const std::string&)notificationID;
42 45
43 @end 46 @end
44 47
45 #endif // UI_MESSAGE_CENTER_COCOA_POPUP_CONTROLLER_H_ 48 #endif // UI_MESSAGE_CENTER_COCOA_POPUP_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ui/message_center/cocoa/popup_collection_unittest.mm ('k') | ui/message_center/cocoa/popup_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698