OLD | NEW |
---|---|
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 CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ |
6 #define CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
43 Profile* profile) OVERRIDE; | 43 Profile* profile) OVERRIDE; |
44 virtual bool UpdateNotification(const Notification& notification, | 44 virtual bool UpdateNotification(const Notification& notification, |
45 Profile* profile) OVERRIDE; | 45 Profile* profile) OVERRIDE; |
46 | 46 |
47 // MessageCenter::Delegate | 47 // MessageCenter::Delegate |
48 virtual void DisableExtension(const std::string& notification_id) OVERRIDE; | 48 virtual void DisableExtension(const std::string& notification_id) OVERRIDE; |
49 virtual void DisableNotificationsFromSource( | 49 virtual void DisableNotificationsFromSource( |
50 const std::string& notification_id) OVERRIDE; | 50 const std::string& notification_id) OVERRIDE; |
51 virtual void ShowSettings(const std::string& notification_id) OVERRIDE; | 51 virtual void ShowSettings(const std::string& notification_id) OVERRIDE; |
52 virtual void ShowSettingsDialog(gfx::NativeView context) OVERRIDE; | 52 virtual void ShowSettingsDialog(gfx::NativeView context) OVERRIDE; |
53 virtual bool HasClickedListener(const std::string& notification_id) OVERRIDE; | 53 virtual bool HasClickedListener(const std::string& notification_id) OVERRIDE; |
Jun Mukai
2013/05/24 01:29:19
Probably HasClickedListener can be handled without
dewittj
2013/05/24 18:01:00
Done.
| |
54 | 54 |
55 // MessageCenterObserver | 55 // MessageCenterObserver |
56 virtual void OnNotificationRemoved(const std::string& notification_id, | 56 virtual void OnNotificationRemoved(const std::string& notification_id, |
57 bool by_user) OVERRIDE; | 57 bool by_user) OVERRIDE; |
58 virtual void OnNotificationClicked( | |
59 const std::string& notification_id) OVERRIDE; | |
60 virtual void OnNotificationButtonClicked( | |
61 const std::string& notification_id, | |
62 int button_index) OVERRIDE; | |
63 virtual void OnNotificationDisplayed( | |
64 const std::string& notification_id) OVERRIDE; | |
65 | 58 |
66 private: | 59 private: |
67 class ImageDownloadsObserver { | 60 class ImageDownloadsObserver { |
68 public: | 61 public: |
69 virtual void OnDownloadsCompleted() = 0; | 62 virtual void OnDownloadsCompleted() = 0; |
70 }; | 63 }; |
71 | 64 |
72 typedef base::Callback<void(const gfx::Image&)> SetImageCallback; | 65 typedef base::Callback<void(const gfx::Image&)> SetImageCallback; |
73 class ImageDownloads | 66 class ImageDownloads |
74 : public base::SupportsWeakPtr<ImageDownloads> { | 67 : public base::SupportsWeakPtr<ImageDownloads> { |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
171 bool by_user); | 164 bool by_user); |
172 | 165 |
173 // Returns the ProfileNotification for the |id|, or NULL if no such | 166 // Returns the ProfileNotification for the |id|, or NULL if no such |
174 // notification is found. | 167 // notification is found. |
175 ProfileNotification* FindProfileNotification(const std::string& id) const; | 168 ProfileNotification* FindProfileNotification(const std::string& id) const; |
176 | 169 |
177 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager); | 170 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager); |
178 }; | 171 }; |
179 | 172 |
180 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ | 173 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ |
OLD | NEW |