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; | |
42 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) OVERRIDE; | 39 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) OVERRIDE; |
43 virtual bool CancelAllByProfile(Profile* profile) OVERRIDE; | 40 virtual bool CancelAllByProfile(Profile* profile) OVERRIDE; |
44 virtual void CancelAll() OVERRIDE; | 41 virtual void CancelAll() OVERRIDE; |
45 | 42 |
46 // NotificationUIManagerImpl: | 43 // NotificationUIManagerImpl: |
47 virtual bool ShowNotification(const Notification& notification, | 44 virtual bool ShowNotification(const Notification& notification, |
48 Profile* profile) OVERRIDE; | 45 Profile* profile) OVERRIDE; |
49 virtual bool UpdateNotification(const Notification& notification, | 46 virtual bool UpdateNotification(const Notification& notification, |
50 Profile* profile) OVERRIDE; | 47 Profile* profile) OVERRIDE; |
51 | 48 |
(...skipping 19 matching lines...) Expand all Loading... |
71 // An owned pointer to the collection of active balloons. | 68 // An owned pointer to the collection of active balloons. |
72 scoped_ptr<BalloonCollection> balloon_collection_; | 69 scoped_ptr<BalloonCollection> balloon_collection_; |
73 | 70 |
74 // Prefs listener for the position preference. | 71 // Prefs listener for the position preference. |
75 IntegerPrefMember position_pref_; | 72 IntegerPrefMember position_pref_; |
76 | 73 |
77 DISALLOW_COPY_AND_ASSIGN(BalloonNotificationUIManager); | 74 DISALLOW_COPY_AND_ASSIGN(BalloonNotificationUIManager); |
78 }; | 75 }; |
79 | 76 |
80 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_NOTIFICATION_UI_MANAGER_H_ | 77 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_NOTIFICATION_UI_MANAGER_H_ |
OLD | NEW |