Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Unified Diff: ui/message_center/notification_delegate.cc

Issue 684253002: Provide default implementations for NotificationDelegate methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/message_center/notification_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/notification_delegate.cc
diff --git a/ui/message_center/notification_delegate.cc b/ui/message_center/notification_delegate.cc
index 09ef959dbf0c173c25ac9096117b12c8fd61577c..8d23bb5888bca306eeec6e597bd3f89b9b099b20 100644
--- a/ui/message_center/notification_delegate.cc
+++ b/ui/message_center/notification_delegate.cc
@@ -8,8 +8,16 @@ namespace message_center {
// NotificationDelegate:
+void NotificationDelegate::Display() {}
+
+void NotificationDelegate::Error() {}
+
+void NotificationDelegate::Close(bool by_user) {}
+
bool NotificationDelegate::HasClickedListener() { return false; }
+void NotificationDelegate::Click() {}
+
void NotificationDelegate::ButtonClick(int button_index) {}
// HandleNotificationClickedDelegate:
@@ -19,17 +27,7 @@ HandleNotificationClickedDelegate::HandleNotificationClickedDelegate(
: closure_(closure) {
}
-HandleNotificationClickedDelegate::~HandleNotificationClickedDelegate() {
-}
-
-void HandleNotificationClickedDelegate::Display() {
-}
-
-void HandleNotificationClickedDelegate::Error() {
-}
-
-void HandleNotificationClickedDelegate::Close(bool by_user) {
-}
+HandleNotificationClickedDelegate::~HandleNotificationClickedDelegate() {}
bool HandleNotificationClickedDelegate::HasClickedListener() {
return !closure_.is_null();
@@ -40,9 +38,6 @@ void HandleNotificationClickedDelegate::Click() {
closure_.Run();
}
-void HandleNotificationClickedDelegate::ButtonClick(int button_index) {
-}
-
// HandleNotificationButtonClickDelegate:
HandleNotificationButtonClickDelegate::HandleNotificationButtonClickDelegate(
@@ -51,20 +46,7 @@ HandleNotificationButtonClickDelegate::HandleNotificationButtonClickDelegate(
}
HandleNotificationButtonClickDelegate::
- ~HandleNotificationButtonClickDelegate() {
-}
-
-void HandleNotificationButtonClickDelegate::Display() {
-}
-
-void HandleNotificationButtonClickDelegate::Error() {
-}
-
-void HandleNotificationButtonClickDelegate::Close(bool by_user) {
-}
-
-void HandleNotificationButtonClickDelegate::Click() {
-}
+ ~HandleNotificationButtonClickDelegate() {}
void HandleNotificationButtonClickDelegate::ButtonClick(int button_index) {
if (!button_callback_.is_null())
« no previous file with comments | « ui/message_center/notification_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698