forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfake_message_center.cc
137 lines (102 loc) · 3.47 KB
/
fake_message_center.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/message_center/fake_message_center.h"
#include "ui/message_center/notification_list.h"
namespace message_center {
FakeMessageCenter::FakeMessageCenter() {
}
FakeMessageCenter::~FakeMessageCenter() {
}
void FakeMessageCenter::AddObserver(MessageCenterObserver* observer) {
}
void FakeMessageCenter::RemoveObserver(MessageCenterObserver* observer) {
}
void FakeMessageCenter::SetDelegate(Delegate* delegate) {
}
size_t FakeMessageCenter::NotificationCount() const {
return 0u;
}
size_t FakeMessageCenter::UnreadNotificationCount() const {
return 0u;
}
bool FakeMessageCenter::HasPopupNotifications() const {
return false;
}
bool FakeMessageCenter::HasNotification(const std::string& id) {
return false;
}
bool FakeMessageCenter::IsQuietMode() const {
return false;
}
bool FakeMessageCenter::HasClickedListener(const std::string& id) {
return false;
}
const NotificationList::Notifications& FakeMessageCenter::GetNotifications() {
return empty_notifications_;
}
NotificationList::PopupNotifications
FakeMessageCenter::GetPopupNotifications() {
return NotificationList::PopupNotifications();
}
void FakeMessageCenter::AddNotification(
NotificationType type,
const std::string& id,
const string16& title,
const string16& message,
const string16& display_source,
const std::string& extension_id,
const base::DictionaryValue* optional_fields) {
}
void FakeMessageCenter::UpdateNotification(
const std::string& old_id,
const std::string& new_id,
const string16& title,
const string16& message,
const base::DictionaryValue* optional_fields) {
}
void FakeMessageCenter::RemoveNotification(const std::string& id,
bool by_user) {
}
void FakeMessageCenter::RemoveAllNotifications(bool by_user) {
}
void FakeMessageCenter::SetNotificationIcon(const std::string& notification_id,
const gfx::Image& image) {
}
void FakeMessageCenter::SetNotificationImage(const std::string& notification_id,
const gfx::Image& image) {
}
void FakeMessageCenter::SetNotificationButtonIcon(
const std::string& notification_id,
int button_index,
const gfx::Image& image) {
}
void FakeMessageCenter::DisableNotificationsByExtension(const std::string& id) {
}
void FakeMessageCenter::DisableNotificationsByUrl(const std::string& id) {
}
void FakeMessageCenter::ShowNotificationSettings(const std::string& id) {
}
void FakeMessageCenter::ShowNotificationSettingsDialog(
gfx::NativeView context) {
}
void FakeMessageCenter::ExpandNotification(const std::string& id) {
}
void FakeMessageCenter::ClickOnNotification(const std::string& id) {
}
void FakeMessageCenter::ClickOnNotificationButton(const std::string& id,
int button_index) {
}
void FakeMessageCenter::MarkSinglePopupAsShown(const std::string& id,
bool mark_notification_as_read) {
}
void FakeMessageCenter::DisplayedNotification(const std::string& id) {
}
void FakeMessageCenter::SetQuietMode(bool in_quiet_mode) {
}
void FakeMessageCenter::EnterQuietModeWithExpire(
const base::TimeDelta& expires_in) {
}
void FakeMessageCenter::SetMessageCenterVisible(bool visible) {
}
} // namespace message_center