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

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

Issue 23636010: Notifications: Add cross-platform UMA: ShowMessageCenter, ShowSettings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added the hash to chromeactions.txt Created 7 years, 3 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 | Annotate | Revision Log
« 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() {
11 } 11 }
12 12
13 FakeMessageCenter::~FakeMessageCenter() { 13 FakeMessageCenter::~FakeMessageCenter() {
14 } 14 }
15 15
16 void FakeMessageCenter::AddObserver(MessageCenterObserver* observer) { 16 void FakeMessageCenter::AddObserver(MessageCenterObserver* observer) {
17 } 17 }
18 18
19 void FakeMessageCenter::RemoveObserver(MessageCenterObserver* observer) { 19 void FakeMessageCenter::RemoveObserver(MessageCenterObserver* observer) {
20 } 20 }
21 21
22 void FakeMessageCenter::SetDelegate(Delegate* delegate) {
23 }
24
25 size_t FakeMessageCenter::NotificationCount() const { 22 size_t FakeMessageCenter::NotificationCount() const {
26 return 0u; 23 return 0u;
27 } 24 }
28 25
29 size_t FakeMessageCenter::UnreadNotificationCount() const { 26 size_t FakeMessageCenter::UnreadNotificationCount() const {
30 return 0u; 27 return 0u;
31 } 28 }
32 29
33 bool FakeMessageCenter::HasPopupNotifications() const { 30 bool FakeMessageCenter::HasPopupNotifications() const {
34 return false; 31 return false;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 void FakeMessageCenter::SetNotificationButtonIcon( 77 void FakeMessageCenter::SetNotificationButtonIcon(
81 const std::string& notification_id, 78 const std::string& notification_id,
82 int button_index, 79 int button_index,
83 const gfx::Image& image) { 80 const gfx::Image& image) {
84 } 81 }
85 82
86 void FakeMessageCenter::DisableNotificationsByNotifier( 83 void FakeMessageCenter::DisableNotificationsByNotifier(
87 const NotifierId& notifier_id) { 84 const NotifierId& notifier_id) {
88 } 85 }
89 86
90 void FakeMessageCenter::ShowNotificationSettings(const std::string& id) {
91 }
92
93 void FakeMessageCenter::ExpandNotification(const std::string& id) { 87 void FakeMessageCenter::ExpandNotification(const std::string& id) {
94 } 88 }
95 89
96 void FakeMessageCenter::ClickOnNotification(const std::string& id) { 90 void FakeMessageCenter::ClickOnNotification(const std::string& id) {
97 } 91 }
98 92
99 void FakeMessageCenter::ClickOnNotificationButton(const std::string& id, 93 void FakeMessageCenter::ClickOnNotificationButton(const std::string& id,
100 int button_index) { 94 int button_index) {
101 } 95 }
102 96
(...skipping 12 matching lines...) Expand all
115 return NULL; 109 return NULL;
116 } 110 }
117 111
118 void FakeMessageCenter::SetQuietMode(bool in_quiet_mode) { 112 void FakeMessageCenter::SetQuietMode(bool in_quiet_mode) {
119 } 113 }
120 114
121 void FakeMessageCenter::EnterQuietModeWithExpire( 115 void FakeMessageCenter::EnterQuietModeWithExpire(
122 const base::TimeDelta& expires_in) { 116 const base::TimeDelta& expires_in) {
123 } 117 }
124 118
125 void FakeMessageCenter::SetMessageCenterVisible(bool visible) { 119 void FakeMessageCenter::SetVisibility(Visibility visible) {
126 } 120 }
127 121
128 bool FakeMessageCenter::IsMessageCenterVisible() { 122 bool FakeMessageCenter::IsMessageCenterVisible() {
129 return false; 123 return false;
130 } 124 }
131 125
132 void FakeMessageCenter::RestartPopupTimers() {} 126 void FakeMessageCenter::RestartPopupTimers() {}
133 127
134 void FakeMessageCenter::PausePopupTimers() {} 128 void FakeMessageCenter::PausePopupTimers() {}
135 129
136 void FakeMessageCenter::DisableTimersForTest() {} 130 void FakeMessageCenter::DisableTimersForTest() {}
137 131
138 } // namespace message_center 132 } // 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