| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "ui/message_center/notification_delegate.h" | 5 #include "ui/message_center/notification_delegate.h" |
| 6 | 6 |
| 7 namespace message_center { | 7 namespace message_center { |
| 8 | 8 |
| 9 // NotificationDelegate: | 9 // NotificationDelegate: |
| 10 | 10 |
| 11 void NotificationDelegate::Display() {} | 11 void NotificationDelegate::Display() {} |
| 12 | 12 |
| 13 void NotificationDelegate::Error() {} | |
| 14 | |
| 15 void NotificationDelegate::Close(bool by_user) {} | 13 void NotificationDelegate::Close(bool by_user) {} |
| 16 | 14 |
| 17 bool NotificationDelegate::HasClickedListener() { return false; } | 15 bool NotificationDelegate::HasClickedListener() { return false; } |
| 18 | 16 |
| 19 void NotificationDelegate::Click() {} | 17 void NotificationDelegate::Click() {} |
| 20 | 18 |
| 21 void NotificationDelegate::ButtonClick(int button_index) {} | 19 void NotificationDelegate::ButtonClick(int button_index) {} |
| 22 | 20 |
| 23 // HandleNotificationClickedDelegate: | 21 // HandleNotificationClickedDelegate: |
| 24 | 22 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 47 | 45 |
| 48 HandleNotificationButtonClickDelegate:: | 46 HandleNotificationButtonClickDelegate:: |
| 49 ~HandleNotificationButtonClickDelegate() {} | 47 ~HandleNotificationButtonClickDelegate() {} |
| 50 | 48 |
| 51 void HandleNotificationButtonClickDelegate::ButtonClick(int button_index) { | 49 void HandleNotificationButtonClickDelegate::ButtonClick(int button_index) { |
| 52 if (!button_callback_.is_null()) | 50 if (!button_callback_.is_null()) |
| 53 button_callback_.Run(button_index); | 51 button_callback_.Run(button_index); |
| 54 } | 52 } |
| 55 | 53 |
| 56 } // namespace message_center | 54 } // namespace message_center |
| OLD | NEW |