| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef PlatformEventDispatcher_h | 5 #ifndef PlatformEventDispatcher_h |
| 6 #define PlatformEventDispatcher_h | 6 #define PlatformEventDispatcher_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "wtf/Vector.h" | 10 #include "wtf/Vector.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 PlatformEventDispatcher(); | 23 PlatformEventDispatcher(); |
| 24 | 24 |
| 25 void notifyControllers(); | 25 void notifyControllers(); |
| 26 | 26 |
| 27 virtual void startListening() = 0; | 27 virtual void startListening() = 0; |
| 28 virtual void stopListening() = 0; | 28 virtual void stopListening() = 0; |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 void purgeControllers(); | 31 void purgeControllers(); |
| 32 | 32 |
| 33 WillBeHeapHashSet<RawPtrWillBeWeakMember<PlatformEventController>> m_control
lers; | 33 HeapHashSet<WeakMember<PlatformEventController>> m_controllers; |
| 34 bool m_isDispatching; | 34 bool m_isDispatching; |
| 35 bool m_isListening; | 35 bool m_isListening; |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 } // namespace blink | 38 } // namespace blink |
| 39 | 39 |
| 40 #endif // PlatformEventDispatcher_h | 40 #endif // PlatformEventDispatcher_h |
| OLD | NEW |