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 "platform/wtf/Vector.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 class PlatformEventController; | 13 class PlatformEventController; |
14 | 14 |
15 class CORE_EXPORT PlatformEventDispatcher : public GarbageCollectedMixin { | 15 class CORE_EXPORT PlatformEventDispatcher : public GarbageCollectedMixin { |
16 public: | 16 public: |
17 void AddController(PlatformEventController*); | 17 void AddController(PlatformEventController*); |
18 void RemoveController(PlatformEventController*); | 18 void RemoveController(PlatformEventController*); |
19 | 19 |
20 DECLARE_VIRTUAL_TRACE(); | 20 DECLARE_VIRTUAL_TRACE(); |
(...skipping 10 matching lines...) Expand all Loading... |
31 void PurgeControllers(); | 31 void PurgeControllers(); |
32 | 32 |
33 HeapHashSet<WeakMember<PlatformEventController>> controllers_; | 33 HeapHashSet<WeakMember<PlatformEventController>> controllers_; |
34 bool is_dispatching_; | 34 bool is_dispatching_; |
35 bool is_listening_; | 35 bool is_listening_; |
36 }; | 36 }; |
37 | 37 |
38 } // namespace blink | 38 } // namespace blink |
39 | 39 |
40 #endif // PlatformEventDispatcher_h | 40 #endif // PlatformEventDispatcher_h |
OLD | NEW |