Chromium Code Reviews| Index: ui/message_center/notification.h |
| diff --git a/ui/message_center/notification.h b/ui/message_center/notification.h |
| index bda6900fb0c0924d7f61b8df7ff3ec056fec199b..5bc79f85805becf5091fd27a4022649111945524 100644 |
| --- a/ui/message_center/notification.h |
| +++ b/ui/message_center/notification.h |
| @@ -167,6 +167,15 @@ class MESSAGE_CENTER_EXPORT Notification { |
| void ButtonClick(int index) const { delegate()->ButtonClick(index); } |
| void Close(bool by_user) const { delegate()->Close(by_user); } |
| + // Helper method to create a simple System notification. |click_callback| |
|
jennyz
2013/08/21 00:02:42
|click_callback| is not consistent with the argume
stevenjb
2013/08/21 17:38:49
Done.
|
| + // will be invoked when the notification is clicked. |
| + static scoped_ptr<Notification> CreateSystemNotification( |
| + const std::string& notification_id, |
| + const base::string16& title, |
| + const base::string16& message, |
| + const gfx::Image& icon, |
| + const base::Closure& callback); |
| + |
| protected: |
| // The type of notification we'd like displayed. |
| NotificationType type_; |