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

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

Issue 2423413003: Adding NOTREACHED to see if any of the methods are called (Closed)
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | 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 #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 NOTREACHED();
15 }
14 16
15 void NotificationDelegate::Close(bool by_user) {} 17 void NotificationDelegate::Close(bool by_user) {
18 NOTREACHED();
19 }
16 20
17 bool NotificationDelegate::HasClickedListener() { return false; } 21 bool NotificationDelegate::HasClickedListener() {
22 NOTREACHED();
23 return false;
24 }
18 25
19 void NotificationDelegate::Click() {} 26 void NotificationDelegate::Click() {
27 NOTREACHED();
28 }
20 29
21 void NotificationDelegate::ButtonClick(int button_index) {} 30 void NotificationDelegate::ButtonClick(int button_index) {
31 NOTREACHED();
32 }
22 33
23 void NotificationDelegate::ButtonClickWithReply(int button_index, 34 void NotificationDelegate::ButtonClickWithReply(int button_index,
24 const base::string16& reply) { 35 const base::string16& reply) {
25 NOTIMPLEMENTED(); 36 NOTIMPLEMENTED();
26 } 37 }
27 38
28 void NotificationDelegate::SettingsClick() {} 39 void NotificationDelegate::SettingsClick() {}
29 40
30 bool NotificationDelegate::ShouldDisplaySettingsButton() { 41 bool NotificationDelegate::ShouldDisplaySettingsButton() {
31 return false; 42 return false;
(...skipping 30 matching lines...) Expand all
62 void HandleNotificationButtonClickDelegate::ButtonClick(int button_index) { 73 void HandleNotificationButtonClickDelegate::ButtonClick(int button_index) {
63 if (!button_callback_.is_null()) 74 if (!button_callback_.is_null())
64 button_callback_.Run(button_index); 75 button_callback_.Run(button_index);
65 } 76 }
66 77
67 bool NotificationDelegate::ShouldDisplayOverFullscreen() const { 78 bool NotificationDelegate::ShouldDisplayOverFullscreen() const {
68 return false; 79 return false;
69 } 80 }
70 81
71 } // namespace message_center 82 } // namespace message_center
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698