| 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; | |
| 54 | 53 |
| 55 // MessageCenterObserver | 54 // MessageCenterObserver |
| 56 virtual void OnNotificationRemoved(const std::string& notification_id, | 55 virtual void OnNotificationRemoved(const std::string& notification_id, |
| 57 bool by_user) OVERRIDE; | 56 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 | 57 |
| 66 private: | 58 private: |
| 67 class ImageDownloadsObserver { | 59 class ImageDownloadsObserver { |
| 68 public: | 60 public: |
| 69 virtual void OnDownloadsCompleted() = 0; | 61 virtual void OnDownloadsCompleted() = 0; |
| 70 }; | 62 }; |
| 71 | 63 |
| 72 typedef base::Callback<void(const gfx::Image&)> SetImageCallback; | 64 typedef base::Callback<void(const gfx::Image&)> SetImageCallback; |
| 73 class ImageDownloads | 65 class ImageDownloads |
| 74 : public base::SupportsWeakPtr<ImageDownloads> { | 66 : public base::SupportsWeakPtr<ImageDownloads> { |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 bool by_user); | 163 bool by_user); |
| 172 | 164 |
| 173 // Returns the ProfileNotification for the |id|, or NULL if no such | 165 // Returns the ProfileNotification for the |id|, or NULL if no such |
| 174 // notification is found. | 166 // notification is found. |
| 175 ProfileNotification* FindProfileNotification(const std::string& id) const; | 167 ProfileNotification* FindProfileNotification(const std::string& id) const; |
| 176 | 168 |
| 177 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager); | 169 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager); |
| 178 }; | 170 }; |
| 179 | 171 |
| 180 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ | 172 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ |
| OLD | NEW |