| 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 #include "base/logging.h" |
| 8 |
| 7 namespace message_center { | 9 namespace message_center { |
| 8 | 10 |
| 9 // NotificationDelegate: | 11 // NotificationDelegate: |
| 10 | 12 |
| 11 void NotificationDelegate::Display() {} | 13 void NotificationDelegate::Display() {} |
| 12 | 14 |
| 13 void NotificationDelegate::Close(bool by_user) {} | 15 void NotificationDelegate::Close(bool by_user) {} |
| 14 | 16 |
| 15 bool NotificationDelegate::HasClickedListener() { return false; } | 17 bool NotificationDelegate::HasClickedListener() { return false; } |
| 16 | 18 |
| 17 void NotificationDelegate::Click() {} | 19 void NotificationDelegate::Click() {} |
| 18 | 20 |
| 19 void NotificationDelegate::ButtonClick(int button_index) {} | 21 void NotificationDelegate::ButtonClick(int button_index) {} |
| 20 | 22 |
| 23 void NotificationDelegate::ButtonClickWithReply(int button_index, |
| 24 const base::string16& reply) { |
| 25 NOTIMPLEMENTED(); |
| 26 } |
| 27 |
| 21 void NotificationDelegate::SettingsClick() {} | 28 void NotificationDelegate::SettingsClick() {} |
| 22 | 29 |
| 23 bool NotificationDelegate::ShouldDisplaySettingsButton() { | 30 bool NotificationDelegate::ShouldDisplaySettingsButton() { |
| 24 return false; | 31 return false; |
| 25 } | 32 } |
| 26 | 33 |
| 27 // HandleNotificationClickedDelegate: | 34 // HandleNotificationClickedDelegate: |
| 28 | 35 |
| 29 HandleNotificationClickedDelegate::HandleNotificationClickedDelegate( | 36 HandleNotificationClickedDelegate::HandleNotificationClickedDelegate( |
| 30 const base::Closure& closure) | 37 const base::Closure& closure) |
| (...skipping 24 matching lines...) Expand all Loading... |
| 55 void HandleNotificationButtonClickDelegate::ButtonClick(int button_index) { | 62 void HandleNotificationButtonClickDelegate::ButtonClick(int button_index) { |
| 56 if (!button_callback_.is_null()) | 63 if (!button_callback_.is_null()) |
| 57 button_callback_.Run(button_index); | 64 button_callback_.Run(button_index); |
| 58 } | 65 } |
| 59 | 66 |
| 60 bool NotificationDelegate::ShouldDisplayOverFullscreen() const { | 67 bool NotificationDelegate::ShouldDisplayOverFullscreen() const { |
| 61 return false; | 68 return false; |
| 62 } | 69 } |
| 63 | 70 |
| 64 } // namespace message_center | 71 } // namespace message_center |
| OLD | NEW |