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

Side by Side Diff: ui/message_center/message_center.h

Issue 11639041: Added support for image notifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix bug detected by try bots. Created 7 years, 11 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 | « chrome/browser/ui/views/ash/balloon_view_ash.cc ('k') | ui/message_center/message_center.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ 5 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_H_
6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ 6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 122
123 // Removes an existing notification. 123 // Removes an existing notification.
124 void RemoveNotification(const std::string& id); 124 void RemoveNotification(const std::string& id);
125 125
126 void SetNotificationPrimaryIcon(const std::string& id, 126 void SetNotificationPrimaryIcon(const std::string& id,
127 const gfx::ImageSkia& image); 127 const gfx::ImageSkia& image);
128 128
129 void SetNotificationSecondaryIcon(const std::string& id, 129 void SetNotificationSecondaryIcon(const std::string& id,
130 const gfx::ImageSkia& image); 130 const gfx::ImageSkia& image);
131 131
132 void SetNotificationImage(const std::string& id, const gfx::ImageSkia& image);
133
132 NotificationList* notification_list() { return notification_list_.get(); } 134 NotificationList* notification_list() { return notification_list_.get(); }
133 135
134 // Overridden from NotificationList::Delegate. 136 // Overridden from NotificationList::Delegate.
135 virtual void SendRemoveNotification(const std::string& id) OVERRIDE; 137 virtual void SendRemoveNotification(const std::string& id) OVERRIDE;
136 virtual void SendRemoveAllNotifications() OVERRIDE; 138 virtual void SendRemoveAllNotifications() OVERRIDE;
137 virtual void DisableNotificationByExtension(const std::string& id) OVERRIDE; 139 virtual void DisableNotificationByExtension(const std::string& id) OVERRIDE;
138 virtual void DisableNotificationByUrl(const std::string& id) OVERRIDE; 140 virtual void DisableNotificationByUrl(const std::string& id) OVERRIDE;
139 virtual void ShowNotificationSettings(const std::string& id) OVERRIDE; 141 virtual void ShowNotificationSettings(const std::string& id) OVERRIDE;
140 virtual void OnNotificationClicked(const std::string& id) OVERRIDE; 142 virtual void OnNotificationClicked(const std::string& id) OVERRIDE;
141 virtual void OnQuietModeChanged(bool quiet_mode) OVERRIDE; 143 virtual void OnQuietModeChanged(bool quiet_mode) OVERRIDE;
(...skipping 11 matching lines...) Expand all
153 scoped_ptr<NotificationList> notification_list_; 155 scoped_ptr<NotificationList> notification_list_;
154 ObserverList<Observer> observer_list_; 156 ObserverList<Observer> observer_list_;
155 Delegate* delegate_; 157 Delegate* delegate_;
156 158
157 DISALLOW_COPY_AND_ASSIGN(MessageCenter); 159 DISALLOW_COPY_AND_ASSIGN(MessageCenter);
158 }; 160 };
159 161
160 } // namespace message_center 162 } // namespace message_center
161 163
162 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ 164 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/ash/balloon_view_ash.cc ('k') | ui/message_center/message_center.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698