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> |
11 | 11 |
12 #include "base/id_map.h" | 12 #include "base/id_map.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/timer.h" | 14 #include "base/timer.h" |
| 15 #include "chrome/browser/api/prefs/pref_member.h" |
15 #include "chrome/browser/notifications/balloon.h" | 16 #include "chrome/browser/notifications/balloon.h" |
16 #include "chrome/browser/notifications/balloon_collection.h" | 17 #include "chrome/browser/notifications/balloon_collection.h" |
17 #include "chrome/browser/notifications/notification_prefs_manager.h" | 18 #include "chrome/browser/notifications/notification_prefs_manager.h" |
18 #include "chrome/browser/notifications/notification_ui_manager.h" | 19 #include "chrome/browser/notifications/notification_ui_manager.h" |
19 #include "chrome/browser/prefs/pref_member.h" | |
20 #include "content/public/browser/notification_observer.h" | 20 #include "content/public/browser/notification_observer.h" |
21 #include "content/public/browser/notification_registrar.h" | 21 #include "content/public/browser/notification_registrar.h" |
22 | 22 |
23 class Notification; | 23 class Notification; |
24 class PrefService; | 24 class PrefService; |
25 class Profile; | 25 class Profile; |
26 class QueuedNotification; | 26 class QueuedNotification; |
27 | 27 |
28 // The notification manager manages use of the desktop for notifications. | 28 // The notification manager manages use of the desktop for notifications. |
29 // It maintains a queue of pending notifications when space becomes constrained. | 29 // It maintains a queue of pending notifications when space becomes constrained. |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 IntegerPrefMember position_pref_; | 94 IntegerPrefMember position_pref_; |
95 | 95 |
96 // Used by screen-saver and full-screen handling support. | 96 // Used by screen-saver and full-screen handling support. |
97 bool is_user_active_; | 97 bool is_user_active_; |
98 base::RepeatingTimer<NotificationUIManagerImpl> user_state_check_timer_; | 98 base::RepeatingTimer<NotificationUIManagerImpl> user_state_check_timer_; |
99 | 99 |
100 DISALLOW_COPY_AND_ASSIGN(NotificationUIManagerImpl); | 100 DISALLOW_COPY_AND_ASSIGN(NotificationUIManagerImpl); |
101 }; | 101 }; |
102 | 102 |
103 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_IMPL_H_ | 103 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_UI_MANAGER_IMPL_H_ |
OLD | NEW |