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

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: Created 8 years 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
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 "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/message_center/message_center_export.h" 9 #include "ui/message_center/message_center_export.h"
10 #include "ui/message_center/notification_list.h" 10 #include "ui/message_center/notification_list.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 // Removes an existing notification. 114 // Removes an existing notification.
115 void RemoveNotification(const std::string& id); 115 void RemoveNotification(const std::string& id);
116 116
117 void SetNotificationPrimaryIcon(const std::string& id, 117 void SetNotificationPrimaryIcon(const std::string& id,
118 const gfx::ImageSkia& image); 118 const gfx::ImageSkia& image);
119 119
120 void SetNotificationSecondaryIcon(const std::string& id, 120 void SetNotificationSecondaryIcon(const std::string& id,
121 const gfx::ImageSkia& image); 121 const gfx::ImageSkia& image);
122 122
123 void SetNotificationImage(const std::string& id, const gfx::ImageSkia& image);
124
123 NotificationList* notification_list() { return notification_list_.get(); } 125 NotificationList* notification_list() { return notification_list_.get(); }
124 126
125 // Overridden from NotificationList::Delegate. 127 // Overridden from NotificationList::Delegate.
126 virtual void SendRemoveNotification(const std::string& id) OVERRIDE; 128 virtual void SendRemoveNotification(const std::string& id) OVERRIDE;
127 virtual void SendRemoveAllNotifications() OVERRIDE; 129 virtual void SendRemoveAllNotifications() OVERRIDE;
128 virtual void DisableNotificationByExtension(const std::string& id) OVERRIDE; 130 virtual void DisableNotificationByExtension(const std::string& id) OVERRIDE;
129 virtual void DisableNotificationByUrl(const std::string& id) OVERRIDE; 131 virtual void DisableNotificationByUrl(const std::string& id) OVERRIDE;
130 virtual void ShowNotificationSettings(const std::string& id) OVERRIDE; 132 virtual void ShowNotificationSettings(const std::string& id) OVERRIDE;
131 virtual void OnNotificationClicked(const std::string& id) OVERRIDE; 133 virtual void OnNotificationClicked(const std::string& id) OVERRIDE;
132 virtual void OnQuietModeChanged(bool quiet_mode) OVERRIDE; 134 virtual void OnQuietModeChanged(bool quiet_mode) OVERRIDE;
133 virtual void OnButtonClicked(const std::string& id, int button_index) 135 virtual void OnButtonClicked(const std::string& id, int button_index)
134 OVERRIDE; 136 OVERRIDE;
135 virtual NotificationList* GetNotificationList() OVERRIDE; 137 virtual NotificationList* GetNotificationList() OVERRIDE;
136 138
137 private: 139 private:
138 scoped_ptr<NotificationList> notification_list_; 140 scoped_ptr<NotificationList> notification_list_;
139 Host* host_; 141 Host* host_;
140 Delegate* delegate_; 142 Delegate* delegate_;
141 143
142 DISALLOW_COPY_AND_ASSIGN(MessageCenter); 144 DISALLOW_COPY_AND_ASSIGN(MessageCenter);
143 }; 145 };
144 146
145 } // namespace message_center 147 } // namespace message_center
146 148
147 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ 149 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698