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

Side by Side Diff: ui/message_center/notification_delegate.cc

Issue 687183004: Remove the OnError method from notification delegates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « ui/message_center/notification_delegate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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::Error() {}
14
15 void NotificationDelegate::Close(bool by_user) {} 13 void NotificationDelegate::Close(bool by_user) {}
16 14
17 bool NotificationDelegate::HasClickedListener() { return false; } 15 bool NotificationDelegate::HasClickedListener() { return false; }
18 16
19 void NotificationDelegate::Click() {} 17 void NotificationDelegate::Click() {}
20 18
21 void NotificationDelegate::ButtonClick(int button_index) {} 19 void NotificationDelegate::ButtonClick(int button_index) {}
22 20
23 // HandleNotificationClickedDelegate: 21 // HandleNotificationClickedDelegate:
24 22
(...skipping 22 matching lines...) Expand all
47 45
48 HandleNotificationButtonClickDelegate:: 46 HandleNotificationButtonClickDelegate::
49 ~HandleNotificationButtonClickDelegate() {} 47 ~HandleNotificationButtonClickDelegate() {}
50 48
51 void HandleNotificationButtonClickDelegate::ButtonClick(int button_index) { 49 void HandleNotificationButtonClickDelegate::ButtonClick(int button_index) {
52 if (!button_callback_.is_null()) 50 if (!button_callback_.is_null())
53 button_callback_.Run(button_index); 51 button_callback_.Run(button_index);
54 } 52 }
55 53
56 } // namespace message_center 54 } // namespace message_center
OLDNEW
« 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