Chromium Code Reviews| 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::Close(bool by_user) {} | 13 void NotificationDelegate::Close(bool by_user) {} |
| 14 | 14 |
| 15 bool NotificationDelegate::HasClickedListener() { return false; } | 15 bool NotificationDelegate::HasClickedListener() { return false; } |
| 16 | 16 |
| 17 void NotificationDelegate::Click() {} | 17 void NotificationDelegate::Click() {} |
| 18 | 18 |
| 19 void NotificationDelegate::ButtonClick(int button_index) {} | 19 void NotificationDelegate::ButtonClick(int button_index) {} |
| 20 | 20 |
| 21 void NotificationDelegate::ButtonClickWithReply(int button_index, | |
| 22 const base::string16& reply) {} | |
|
dewittj
2016/10/12 23:21:11
Perhaps this should be NOTIMPLEMENTED() since we d
awdf
2016/10/13 14:31:06
Done. And I'll do the same for the rest of the met
| |
| 23 | |
| 21 void NotificationDelegate::SettingsClick() {} | 24 void NotificationDelegate::SettingsClick() {} |
| 22 | 25 |
| 23 bool NotificationDelegate::ShouldDisplaySettingsButton() { | 26 bool NotificationDelegate::ShouldDisplaySettingsButton() { |
| 24 return false; | 27 return false; |
| 25 } | 28 } |
| 26 | 29 |
| 27 // HandleNotificationClickedDelegate: | 30 // HandleNotificationClickedDelegate: |
| 28 | 31 |
| 29 HandleNotificationClickedDelegate::HandleNotificationClickedDelegate( | 32 HandleNotificationClickedDelegate::HandleNotificationClickedDelegate( |
| 30 const base::Closure& closure) | 33 const base::Closure& closure) |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 55 void HandleNotificationButtonClickDelegate::ButtonClick(int button_index) { | 58 void HandleNotificationButtonClickDelegate::ButtonClick(int button_index) { |
| 56 if (!button_callback_.is_null()) | 59 if (!button_callback_.is_null()) |
| 57 button_callback_.Run(button_index); | 60 button_callback_.Run(button_index); |
| 58 } | 61 } |
| 59 | 62 |
| 60 bool NotificationDelegate::ShouldDisplayOverFullscreen() const { | 63 bool NotificationDelegate::ShouldDisplayOverFullscreen() const { |
| 61 return false; | 64 return false; |
| 62 } | 65 } |
| 63 | 66 |
| 64 } // namespace message_center | 67 } // namespace message_center |
| OLD | NEW |