| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 virtual void Add(const Notification& notification, | 43 virtual void Add(const Notification& notification, |
| 44 Profile* profile); | 44 Profile* profile); |
| 45 virtual bool RemoveById(const std::string& id); | 45 virtual bool RemoveById(const std::string& id); |
| 46 virtual bool RemoveBySourceOrigin(const GURL& source_origin); | 46 virtual bool RemoveBySourceOrigin(const GURL& source_origin); |
| 47 virtual void RemoveAll(); | 47 virtual void RemoveAll(); |
| 48 virtual bool HasSpace() const; | 48 virtual bool HasSpace() const; |
| 49 virtual void ResizeBalloon(Balloon* balloon, const gfx::Size& size); | 49 virtual void ResizeBalloon(Balloon* balloon, const gfx::Size& size); |
| 50 virtual void SetPositionPreference(PositionPreference position); | 50 virtual void SetPositionPreference(PositionPreference position); |
| 51 virtual void DisplayChanged(); | 51 virtual void DisplayChanged(); |
| 52 virtual void OnBalloonClosed(Balloon* source); | 52 virtual void OnBalloonClosed(Balloon* source); |
| 53 virtual const Balloons& GetActiveBalloons() { return base_.balloons(); } | 53 virtual const Balloons& GetActiveBalloons(); |
| 54 | 54 |
| 55 // MessageLoopForUI::Observer interface. | 55 // MessageLoopForUI::Observer interface. |
| 56 #if defined(OS_WIN) | 56 #if defined(OS_WIN) |
| 57 virtual void WillProcessMessage(const MSG& event) {} | 57 virtual void WillProcessMessage(const MSG& event) {} |
| 58 virtual void DidProcessMessage(const MSG& event); | 58 virtual void DidProcessMessage(const MSG& event); |
| 59 #endif | 59 #endif |
| 60 #if defined(OS_LINUX) | 60 #if defined(OS_LINUX) |
| 61 virtual void WillProcessEvent(GdkEvent* event) {} | 61 virtual void WillProcessEvent(GdkEvent* event) {} |
| 62 virtual void DidProcessEvent(GdkEvent* event); | 62 virtual void DidProcessEvent(GdkEvent* event); |
| 63 #endif | 63 #endif |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 ScopedRunnableMethodFactory<BalloonCollectionImpl> reposition_factory_; | 186 ScopedRunnableMethodFactory<BalloonCollectionImpl> reposition_factory_; |
| 187 | 187 |
| 188 // Is the balloon collection currently listening for UI events? | 188 // Is the balloon collection currently listening for UI events? |
| 189 bool added_as_message_loop_observer_; | 189 bool added_as_message_loop_observer_; |
| 190 #endif | 190 #endif |
| 191 | 191 |
| 192 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImpl); | 192 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImpl); |
| 193 }; | 193 }; |
| 194 | 194 |
| 195 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ | 195 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ |
| OLD | NEW |