| 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_BALLOON_NOTIFICATION_UI_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_BALLOON_NOTIFICATION_UI_MANAGER_H_ |
| 6 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_NOTIFICATION_UI_MANAGER_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_NOTIFICATION_UI_MANAGER_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 18 matching lines...) Expand all Loading... |
| 29 explicit BalloonNotificationUIManager(PrefService* local_state); | 29 explicit BalloonNotificationUIManager(PrefService* local_state); |
| 30 virtual ~BalloonNotificationUIManager(); | 30 virtual ~BalloonNotificationUIManager(); |
| 31 | 31 |
| 32 // Initializes the UI manager with a balloon collection; this object | 32 // Initializes the UI manager with a balloon collection; this object |
| 33 // takes ownership of the balloon collection. | 33 // takes ownership of the balloon collection. |
| 34 void SetBalloonCollection(BalloonCollection* balloon_collection); | 34 void SetBalloonCollection(BalloonCollection* balloon_collection); |
| 35 | 35 |
| 36 // NotificationUIManager: | 36 // NotificationUIManager: |
| 37 virtual bool DoesIdExist(const std::string& notification_id) OVERRIDE; | 37 virtual bool DoesIdExist(const std::string& notification_id) OVERRIDE; |
| 38 virtual bool CancelById(const std::string& notification_id) OVERRIDE; | 38 virtual bool CancelById(const std::string& notification_id) OVERRIDE; |
| 39 virtual std::set<std::string> GetAllIdsByProfileAndSourceOrigin( |
| 40 Profile* profile, |
| 41 const GURL& source) OVERRIDE; |
| 39 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) OVERRIDE; | 42 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) OVERRIDE; |
| 40 virtual bool CancelAllByProfile(Profile* profile) OVERRIDE; | 43 virtual bool CancelAllByProfile(Profile* profile) OVERRIDE; |
| 41 virtual void CancelAll() OVERRIDE; | 44 virtual void CancelAll() OVERRIDE; |
| 42 | 45 |
| 43 // NotificationUIManagerImpl: | 46 // NotificationUIManagerImpl: |
| 44 virtual bool ShowNotification(const Notification& notification, | 47 virtual bool ShowNotification(const Notification& notification, |
| 45 Profile* profile) OVERRIDE; | 48 Profile* profile) OVERRIDE; |
| 46 virtual bool UpdateNotification(const Notification& notification, | 49 virtual bool UpdateNotification(const Notification& notification, |
| 47 Profile* profile) OVERRIDE; | 50 Profile* profile) OVERRIDE; |
| 48 | 51 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 68 // An owned pointer to the collection of active balloons. | 71 // An owned pointer to the collection of active balloons. |
| 69 scoped_ptr<BalloonCollection> balloon_collection_; | 72 scoped_ptr<BalloonCollection> balloon_collection_; |
| 70 | 73 |
| 71 // Prefs listener for the position preference. | 74 // Prefs listener for the position preference. |
| 72 IntegerPrefMember position_pref_; | 75 IntegerPrefMember position_pref_; |
| 73 | 76 |
| 74 DISALLOW_COPY_AND_ASSIGN(BalloonNotificationUIManager); | 77 DISALLOW_COPY_AND_ASSIGN(BalloonNotificationUIManager); |
| 75 }; | 78 }; |
| 76 | 79 |
| 77 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_NOTIFICATION_UI_MANAGER_H_ | 80 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_NOTIFICATION_UI_MANAGER_H_ |
| OLD | NEW |