| 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/strings/string16.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 |
| 21 void NotificationDelegate::SettingsClick() {} | 26 void NotificationDelegate::SettingsClick() {} |
| 22 | 27 |
| 23 bool NotificationDelegate::ShouldDisplaySettingsButton() { | 28 bool NotificationDelegate::ShouldDisplaySettingsButton() { |
| 24 return false; | 29 return false; |
| 25 } | 30 } |
| 26 | 31 |
| 27 // HandleNotificationClickedDelegate: | 32 // HandleNotificationClickedDelegate: |
| 28 | 33 |
| 29 HandleNotificationClickedDelegate::HandleNotificationClickedDelegate( | 34 HandleNotificationClickedDelegate::HandleNotificationClickedDelegate( |
| 30 const base::Closure& closure) | 35 const base::Closure& closure) |
| (...skipping 24 matching lines...) Expand all Loading... |
| 55 void HandleNotificationButtonClickDelegate::ButtonClick(int button_index) { | 60 void HandleNotificationButtonClickDelegate::ButtonClick(int button_index) { |
| 56 if (!button_callback_.is_null()) | 61 if (!button_callback_.is_null()) |
| 57 button_callback_.Run(button_index); | 62 button_callback_.Run(button_index); |
| 58 } | 63 } |
| 59 | 64 |
| 60 bool NotificationDelegate::ShouldDisplayOverFullscreen() const { | 65 bool NotificationDelegate::ShouldDisplayOverFullscreen() const { |
| 61 return false; | 66 return false; |
| 62 } | 67 } |
| 63 | 68 |
| 64 } // namespace message_center | 69 } // namespace message_center |
| OLD | NEW |