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 | 9 #pragma once |
10 | 10 |
11 #include <deque> | 11 #include <deque> |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "base/callback.h" | 14 #include "base/callback_old.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 | 16 |
17 class Balloon; | 17 class Balloon; |
18 class GURL; | 18 class GURL; |
19 class Notification; | 19 class Notification; |
20 class Profile; | 20 class Profile; |
21 | 21 |
22 namespace gfx { | 22 namespace gfx { |
23 class Size; | 23 class Size; |
24 } // namespace gfx | 24 } // namespace gfx |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 protected: | 100 protected: |
101 // Non-owned pointer to an object listening for space changes. | 101 // Non-owned pointer to an object listening for space changes. |
102 BalloonSpaceChangeListener* space_change_listener_; | 102 BalloonSpaceChangeListener* space_change_listener_; |
103 | 103 |
104 // For use only with testing. This callback is invoked when a balloon | 104 // For use only with testing. This callback is invoked when a balloon |
105 // is added or removed from the collection. | 105 // is added or removed from the collection. |
106 scoped_ptr<Callback0::Type> on_collection_changed_callback_; | 106 scoped_ptr<Callback0::Type> on_collection_changed_callback_; |
107 }; | 107 }; |
108 | 108 |
109 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_H_ | 109 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_H_ |
OLD | NEW |