| Index: ui/message_center/notification_delegate.cc
|
| diff --git a/ui/message_center/notification_delegate.cc b/ui/message_center/notification_delegate.cc
|
| index 899cb2a1056845cfa95bdb88d520191a0c3d9f31..09ef959dbf0c173c25ac9096117b12c8fd61577c 100644
|
| --- a/ui/message_center/notification_delegate.cc
|
| +++ b/ui/message_center/notification_delegate.cc
|
| @@ -6,10 +6,14 @@
|
|
|
| namespace message_center {
|
|
|
| +// NotificationDelegate:
|
| +
|
| bool NotificationDelegate::HasClickedListener() { return false; }
|
|
|
| void NotificationDelegate::ButtonClick(int button_index) {}
|
|
|
| +// HandleNotificationClickedDelegate:
|
| +
|
| HandleNotificationClickedDelegate::HandleNotificationClickedDelegate(
|
| const base::Closure& closure)
|
| : closure_(closure) {
|
| @@ -39,4 +43,32 @@ void HandleNotificationClickedDelegate::Click() {
|
| void HandleNotificationClickedDelegate::ButtonClick(int button_index) {
|
| }
|
|
|
| +// HandleNotificationButtonClickDelegate:
|
| +
|
| +HandleNotificationButtonClickDelegate::HandleNotificationButtonClickDelegate(
|
| + const ButtonClickCallback& button_callback)
|
| + : button_callback_(button_callback) {
|
| +}
|
| +
|
| +HandleNotificationButtonClickDelegate::
|
| + ~HandleNotificationButtonClickDelegate() {
|
| +}
|
| +
|
| +void HandleNotificationButtonClickDelegate::Display() {
|
| +}
|
| +
|
| +void HandleNotificationButtonClickDelegate::Error() {
|
| +}
|
| +
|
| +void HandleNotificationButtonClickDelegate::Close(bool by_user) {
|
| +}
|
| +
|
| +void HandleNotificationButtonClickDelegate::Click() {
|
| +}
|
| +
|
| +void HandleNotificationButtonClickDelegate::ButtonClick(int button_index) {
|
| + if (!button_callback_.is_null())
|
| + button_callback_.Run(button_index);
|
| +}
|
| +
|
| } // namespace message_center
|
|
|