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

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

Issue 14631005: Enable users of NotificationUIManager to specify binary images. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase for relanding. Created 7 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 const NotificationList::Notifications& FakeMessageCenter::GetNotifications() { 49 const NotificationList::Notifications& FakeMessageCenter::GetNotifications() {
50 return empty_notifications_; 50 return empty_notifications_;
51 } 51 }
52 52
53 NotificationList::PopupNotifications 53 NotificationList::PopupNotifications
54 FakeMessageCenter::GetPopupNotifications() { 54 FakeMessageCenter::GetPopupNotifications() {
55 return NotificationList::PopupNotifications(); 55 return NotificationList::PopupNotifications();
56 } 56 }
57 57
58 void FakeMessageCenter::AddNotification( 58 void FakeMessageCenter::AddNotification(scoped_ptr<Notification> notification) {
59 NotificationType type, 59 }
60 const std::string& id,
61 const string16& title,
62 const string16& message,
63 const string16& display_source,
64 const std::string& extension_id,
65 const base::DictionaryValue* optional_fields,
66 NotificationDelegate* delegate) {}
67 60
68 void FakeMessageCenter::UpdateNotification( 61 void FakeMessageCenter::UpdateNotification(
69 const std::string& old_id, 62 const std::string& old_id,
70 const std::string& new_id, 63 scoped_ptr<Notification> new_notification) {}
71 const string16& title,
72 const string16& message,
73 const base::DictionaryValue* optional_fields,
74 NotificationDelegate* delegate) {}
75 64
76 void FakeMessageCenter::RemoveNotification(const std::string& id, 65 void FakeMessageCenter::RemoveNotification(const std::string& id,
77 bool by_user) { 66 bool by_user) {
78 } 67 }
79 68
80 void FakeMessageCenter::RemoveAllNotifications(bool by_user) { 69 void FakeMessageCenter::RemoveAllNotifications(bool by_user) {
81 } 70 }
82 71
83 void FakeMessageCenter::SetNotificationIcon(const std::string& notification_id, 72 void FakeMessageCenter::SetNotificationIcon(const std::string& notification_id,
84 const gfx::Image& image) { 73 const gfx::Image& image) {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } 117 }
129 118
130 void FakeMessageCenter::EnterQuietModeWithExpire( 119 void FakeMessageCenter::EnterQuietModeWithExpire(
131 const base::TimeDelta& expires_in) { 120 const base::TimeDelta& expires_in) {
132 } 121 }
133 122
134 void FakeMessageCenter::SetMessageCenterVisible(bool visible) { 123 void FakeMessageCenter::SetMessageCenterVisible(bool visible) {
135 } 124 }
136 125
137 } // namespace message_center 126 } // 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