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