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_IMPL_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_IMPL_H_ |
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_IMPL_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_IMPL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 // Initializes the UI manager with a balloon collection; this object | 39 // Initializes the UI manager with a balloon collection; this object |
40 // takes ownership of the balloon collection. | 40 // takes ownership of the balloon collection. |
41 void Initialize(BalloonCollection* balloon_collection); | 41 void Initialize(BalloonCollection* balloon_collection); |
42 | 42 |
43 // NotificationUIManager: | 43 // NotificationUIManager: |
44 virtual void Add(const Notification& notification, | 44 virtual void Add(const Notification& notification, |
45 Profile* profile) OVERRIDE; | 45 Profile* profile) OVERRIDE; |
46 virtual bool CancelById(const std::string& notification_id) OVERRIDE; | 46 virtual bool CancelById(const std::string& notification_id) OVERRIDE; |
47 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) OVERRIDE; | 47 virtual bool CancelAllBySourceOrigin(const GURL& source_origin) OVERRIDE; |
| 48 virtual bool CancelAllByProfile(Profile* profile) OVERRIDE; |
48 virtual void CancelAll() OVERRIDE; | 49 virtual void CancelAll() OVERRIDE; |
49 virtual BalloonCollection* balloon_collection() OVERRIDE; | 50 virtual BalloonCollection* balloon_collection() OVERRIDE; |
50 virtual NotificationPrefsManager* prefs_manager() OVERRIDE; | 51 virtual NotificationPrefsManager* prefs_manager() OVERRIDE; |
51 virtual void GetQueuedNotificationsForTesting( | 52 virtual void GetQueuedNotificationsForTesting( |
52 std::vector<const Notification*>* notifications) OVERRIDE; | 53 std::vector<const Notification*>* notifications) OVERRIDE; |
53 | 54 |
54 // NotificationPrefsManager: | 55 // NotificationPrefsManager: |
55 virtual BalloonCollection::PositionPreference | 56 virtual BalloonCollection::PositionPreference |
56 GetPositionPreference() const OVERRIDE; | 57 GetPositionPreference() const OVERRIDE; |
57 virtual void SetPositionPreference( | 58 virtual void SetPositionPreference( |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 IntegerPrefMember position_pref_; | 97 IntegerPrefMember position_pref_; |
97 | 98 |
98 // Used by screen-saver and full-screen handling support. | 99 // Used by screen-saver and full-screen handling support. |
99 bool is_user_active_; | 100 bool is_user_active_; |
100 base::RepeatingTimer<NotificationUIManagerImpl> user_state_check_timer_; | 101 base::RepeatingTimer<NotificationUIManagerImpl> user_state_check_timer_; |
101 | 102 |
102 DISALLOW_COPY_AND_ASSIGN(NotificationUIManagerImpl); | 103 DISALLOW_COPY_AND_ASSIGN(NotificationUIManagerImpl); |
103 }; | 104 }; |
104 | 105 |
105 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_IMPL_H_ | 106 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_IMPL_H_ |
OLD | NEW |