| 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_NOTIFICATION_UI_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_ |
| 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // extension ID). Returns true if anything was removed. | 51 // extension ID). Returns true if anything was removed. |
| 52 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) = 0; | 52 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) = 0; |
| 53 | 53 |
| 54 // Removes notifications matching |profile|. Returns true if any were removed. | 54 // Removes notifications matching |profile|. Returns true if any were removed. |
| 55 virtual bool CancelAllByProfile(Profile* profile) = 0; | 55 virtual bool CancelAllByProfile(Profile* profile) = 0; |
| 56 | 56 |
| 57 // Cancels all pending notifications and closes anything currently showing. | 57 // Cancels all pending notifications and closes anything currently showing. |
| 58 // Used when the app is terminating. | 58 // Used when the app is terminating. |
| 59 virtual void CancelAll() = 0; | 59 virtual void CancelAll() = 0; |
| 60 | 60 |
| 61 // Temporary, while we have two implementations of Notifications UI Managers. | |
| 62 // One is older BalloonCollection-based and uses renderers to show | |
| 63 // notifications, another delegates to the new MessageCenter and uses native | |
| 64 // UI widgets. | |
| 65 // TODO(dimich): remove these eventually. | |
| 66 static bool DelegatesToMessageCenter(); | |
| 67 | |
| 68 protected: | 61 protected: |
| 69 NotificationUIManager() {} | 62 NotificationUIManager() {} |
| 70 | 63 |
| 71 private: | 64 private: |
| 72 DISALLOW_COPY_AND_ASSIGN(NotificationUIManager); | 65 DISALLOW_COPY_AND_ASSIGN(NotificationUIManager); |
| 73 }; | 66 }; |
| 74 | 67 |
| 75 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_ | 68 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_H_ |
| OLD | NEW |