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

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

Issue 1986493002: Show message center on lock screen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 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
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 24 matching lines...) Expand all
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::IsQuietMode() const { 41 bool FakeMessageCenter::IsQuietMode() const {
42 return false; 42 return false;
43 } 43 }
44 44
45 bool FakeMessageCenter::IsLockedState() const {
46 return false;
47 }
48
45 bool FakeMessageCenter::HasClickedListener(const std::string& id) { 49 bool FakeMessageCenter::HasClickedListener(const std::string& id) {
46 return false; 50 return false;
47 } 51 }
48 52
49 message_center::Notification* FakeMessageCenter::FindVisibleNotificationById( 53 message_center::Notification* FakeMessageCenter::FindVisibleNotificationById(
50 const std::string& id) { 54 const std::string& id) {
51 return NULL; 55 return NULL;
52 } 56 }
53 57
54 const NotificationList::Notifications& 58 const NotificationList::Notifications&
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 NotifierSettingsProvider* provider) { 118 NotifierSettingsProvider* provider) {
115 } 119 }
116 120
117 NotifierSettingsProvider* FakeMessageCenter::GetNotifierSettingsProvider() { 121 NotifierSettingsProvider* FakeMessageCenter::GetNotifierSettingsProvider() {
118 return NULL; 122 return NULL;
119 } 123 }
120 124
121 void FakeMessageCenter::SetQuietMode(bool in_quiet_mode) { 125 void FakeMessageCenter::SetQuietMode(bool in_quiet_mode) {
122 } 126 }
123 127
128 void FakeMessageCenter::SetLockedState(bool locked) {}
129
124 void FakeMessageCenter::EnterQuietModeWithExpire( 130 void FakeMessageCenter::EnterQuietModeWithExpire(
125 const base::TimeDelta& expires_in) { 131 const base::TimeDelta& expires_in) {
126 } 132 }
127 133
128 void FakeMessageCenter::SetVisibility(Visibility visible) { 134 void FakeMessageCenter::SetVisibility(Visibility visible) {
129 } 135 }
130 136
131 bool FakeMessageCenter::IsMessageCenterVisible() const { 137 bool FakeMessageCenter::IsMessageCenterVisible() const {
132 return false; 138 return false;
133 } 139 }
134 140
135 void FakeMessageCenter::RestartPopupTimers() {} 141 void FakeMessageCenter::RestartPopupTimers() {}
136 142
137 void FakeMessageCenter::PausePopupTimers() {} 143 void FakeMessageCenter::PausePopupTimers() {}
138 144
139 void FakeMessageCenter::DisableTimersForTest() {} 145 void FakeMessageCenter::DisableTimersForTest() {}
140 146
141 void FakeMessageCenter::EnableChangeQueueForTest(bool enabled) {} 147 void FakeMessageCenter::EnableChangeQueueForTest(bool enabled) {}
142 148
143 } // namespace message_center 149 } // namespace message_center
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698