OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Handles the visible notification (or balloons). | 5 // Handles the visible notification (or balloons). |
6 | 6 |
7 #ifndef CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_H_ | 7 #ifndef CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_H_ |
8 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_H_ | 8 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_H_ |
9 #pragma once | |
10 | 9 |
11 #include <deque> | 10 #include <deque> |
12 #include <string> | 11 #include <string> |
13 | 12 |
14 #include "base/callback.h" | 13 #include "base/callback.h" |
15 | 14 |
16 class Balloon; | 15 class Balloon; |
17 class GURL; | 16 class GURL; |
18 class Notification; | 17 class Notification; |
19 class Profile; | 18 class Profile; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 protected: | 98 protected: |
100 // Non-owned pointer to an object listening for space changes. | 99 // Non-owned pointer to an object listening for space changes. |
101 BalloonSpaceChangeListener* space_change_listener_; | 100 BalloonSpaceChangeListener* space_change_listener_; |
102 | 101 |
103 // For use only with testing. This callback is invoked when a balloon | 102 // For use only with testing. This callback is invoked when a balloon |
104 // is added or removed from the collection. | 103 // is added or removed from the collection. |
105 base::Closure on_collection_changed_callback_; | 104 base::Closure on_collection_changed_callback_; |
106 }; | 105 }; |
107 | 106 |
108 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_H_ | 107 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_H_ |
OLD | NEW |