| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |