| 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 // Handles the visible notification (or balloons). | 5 // Handles the visible notification (or balloons). |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ | 7 #ifndef CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ |
| 8 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ | 8 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ |
| 9 | 9 |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 { | 41 { |
| 42 public: | 42 public: |
| 43 BalloonCollectionImpl(); | 43 BalloonCollectionImpl(); |
| 44 virtual ~BalloonCollectionImpl(); | 44 virtual ~BalloonCollectionImpl(); |
| 45 | 45 |
| 46 // BalloonCollection interface. | 46 // BalloonCollection interface. |
| 47 virtual void Add(const Notification& notification, | 47 virtual void Add(const Notification& notification, |
| 48 Profile* profile) OVERRIDE; | 48 Profile* profile) OVERRIDE; |
| 49 virtual bool RemoveById(const std::string& id) OVERRIDE; | 49 virtual bool RemoveById(const std::string& id) OVERRIDE; |
| 50 virtual bool RemoveBySourceOrigin(const GURL& source_origin) OVERRIDE; | 50 virtual bool RemoveBySourceOrigin(const GURL& source_origin) OVERRIDE; |
| 51 virtual bool RemoveByProfile(Profile* profile) OVERRIDE; |
| 51 virtual void RemoveAll() OVERRIDE; | 52 virtual void RemoveAll() OVERRIDE; |
| 52 virtual bool HasSpace() const OVERRIDE; | 53 virtual bool HasSpace() const OVERRIDE; |
| 53 virtual void ResizeBalloon(Balloon* balloon, const gfx::Size& size) OVERRIDE; | 54 virtual void ResizeBalloon(Balloon* balloon, const gfx::Size& size) OVERRIDE; |
| 54 virtual void SetPositionPreference(PositionPreference position) OVERRIDE; | 55 virtual void SetPositionPreference(PositionPreference position) OVERRIDE; |
| 55 virtual void DisplayChanged() OVERRIDE; | 56 virtual void DisplayChanged() OVERRIDE; |
| 56 virtual void OnBalloonClosed(Balloon* source) OVERRIDE; | 57 virtual void OnBalloonClosed(Balloon* source) OVERRIDE; |
| 57 virtual const Balloons& GetActiveBalloons() OVERRIDE; | 58 virtual const Balloons& GetActiveBalloons() OVERRIDE; |
| 58 | 59 |
| 59 // content::NotificationObserver interface. | 60 // content::NotificationObserver interface. |
| 60 virtual void Observe(int type, | 61 virtual void Observe(int type, |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 base::WeakPtrFactory<BalloonCollectionImpl> reposition_factory_; | 238 base::WeakPtrFactory<BalloonCollectionImpl> reposition_factory_; |
| 238 | 239 |
| 239 // Is the balloon collection currently listening for UI events? | 240 // Is the balloon collection currently listening for UI events? |
| 240 bool added_as_message_loop_observer_; | 241 bool added_as_message_loop_observer_; |
| 241 #endif | 242 #endif |
| 242 | 243 |
| 243 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImpl); | 244 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImpl); |
| 244 }; | 245 }; |
| 245 | 246 |
| 246 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ | 247 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ |
| OLD | NEW |