| 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_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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual void DisplayChanged() OVERRIDE; | 56 virtual void DisplayChanged() OVERRIDE; |
| 57 virtual void OnBalloonClosed(Balloon* source) OVERRIDE; | 57 virtual void OnBalloonClosed(Balloon* source) OVERRIDE; |
| 58 virtual const Balloons& GetActiveBalloons() OVERRIDE; | 58 virtual const Balloons& GetActiveBalloons() OVERRIDE; |
| 59 | 59 |
| 60 // content::NotificationObserver interface. | 60 // content::NotificationObserver interface. |
| 61 virtual void Observe(int type, | 61 virtual void Observe(int type, |
| 62 const content::NotificationSource& source, | 62 const content::NotificationSource& source, |
| 63 const content::NotificationDetails& details) OVERRIDE; | 63 const content::NotificationDetails& details) OVERRIDE; |
| 64 | 64 |
| 65 // MessageLoopForUI::Observer interface. | 65 // MessageLoopForUI::Observer interface. |
| 66 #if defined(OS_WIN) || defined(TOUCH_UI) || defined(USE_AURA) | 66 #if defined(OS_WIN) || defined(USE_AURA) |
| 67 virtual base::EventStatus WillProcessEvent( | 67 virtual base::EventStatus WillProcessEvent( |
| 68 const base::NativeEvent& event) OVERRIDE; | 68 const base::NativeEvent& event) OVERRIDE; |
| 69 virtual void DidProcessEvent(const base::NativeEvent& event) OVERRIDE; | 69 virtual void DidProcessEvent(const base::NativeEvent& event) OVERRIDE; |
| 70 #elif defined(TOOLKIT_USES_GTK) | 70 #elif defined(TOOLKIT_USES_GTK) |
| 71 virtual void WillProcessEvent(GdkEvent* event) OVERRIDE; | 71 virtual void WillProcessEvent(GdkEvent* event) OVERRIDE; |
| 72 virtual void DidProcessEvent(GdkEvent* event) OVERRIDE; | 72 virtual void DidProcessEvent(GdkEvent* event) OVERRIDE; |
| 73 #endif | 73 #endif |
| 74 | 74 |
| 75 protected: | 75 protected: |
| 76 // Calculates layout values for the balloons including | 76 // Calculates layout values for the balloons including |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 base::WeakPtrFactory<BalloonCollectionImpl> reposition_factory_; | 212 base::WeakPtrFactory<BalloonCollectionImpl> reposition_factory_; |
| 213 | 213 |
| 214 // Is the balloon collection currently listening for UI events? | 214 // Is the balloon collection currently listening for UI events? |
| 215 bool added_as_message_loop_observer_; | 215 bool added_as_message_loop_observer_; |
| 216 #endif | 216 #endif |
| 217 | 217 |
| 218 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImpl); | 218 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImpl); |
| 219 }; | 219 }; |
| 220 | 220 |
| 221 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ | 221 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_IMPL_H_ |
| OLD | NEW |