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

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

Issue 324583002: The 1st patch to disambiguate message center notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 6 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 | « ui/message_center/fake_message_center.h ('k') | ui/message_center/message_center.h » ('j') | 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/fake_message_center.h" 5 #include "ui/message_center/fake_message_center.h"
6 #include "ui/message_center/notification_list.h" 6 #include "ui/message_center/notification_list.h"
7 7
8 namespace message_center { 8 namespace message_center {
9 9
10 FakeMessageCenter::FakeMessageCenter() { 10 FakeMessageCenter::FakeMessageCenter() {
(...skipping 20 matching lines...) Expand all
31 } 31 }
32 32
33 size_t FakeMessageCenter::UnreadNotificationCount() const { 33 size_t FakeMessageCenter::UnreadNotificationCount() const {
34 return 0u; 34 return 0u;
35 } 35 }
36 36
37 bool FakeMessageCenter::HasPopupNotifications() const { 37 bool FakeMessageCenter::HasPopupNotifications() const {
38 return false; 38 return false;
39 } 39 }
40 40
41 bool FakeMessageCenter::HasNotification(const std::string& id) {
42 return false;
43 }
44
45 bool FakeMessageCenter::IsQuietMode() const { 41 bool FakeMessageCenter::IsQuietMode() const {
46 return false; 42 return false;
47 } 43 }
48 44
49 bool FakeMessageCenter::HasClickedListener(const std::string& id) { 45 bool FakeMessageCenter::HasClickedListener(const std::string& id) {
50 return false; 46 return false;
51 } 47 }
52 48
49 message_center::Notification* FakeMessageCenter::FindVisibleNotificationById(
50 const std::string& id) {
51 return NULL;
52 }
53
53 const NotificationList::Notifications& 54 const NotificationList::Notifications&
54 FakeMessageCenter::GetVisibleNotifications() { 55 FakeMessageCenter::GetVisibleNotifications() {
55 return empty_notifications_; 56 return empty_notifications_;
56 } 57 }
57 58
58 NotificationList::PopupNotifications 59 NotificationList::PopupNotifications
59 FakeMessageCenter::GetPopupNotifications() { 60 FakeMessageCenter::GetPopupNotifications() {
60 return NotificationList::PopupNotifications(); 61 return NotificationList::PopupNotifications();
61 } 62 }
62 63
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 return false; 134 return false;
134 } 135 }
135 136
136 void FakeMessageCenter::RestartPopupTimers() {} 137 void FakeMessageCenter::RestartPopupTimers() {}
137 138
138 void FakeMessageCenter::PausePopupTimers() {} 139 void FakeMessageCenter::PausePopupTimers() {}
139 140
140 void FakeMessageCenter::DisableTimersForTest() {} 141 void FakeMessageCenter::DisableTimersForTest() {}
141 142
142 } // namespace message_center 143 } // namespace message_center
OLDNEW
« no previous file with comments | « ui/message_center/fake_message_center.h ('k') | ui/message_center/message_center.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698