Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(660)

Side by Side Diff: Source/core/frame/PlatformEventDispatcher.h

Issue 952813002: InlinedVisitor: Migrate frame to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "platform/heap/Handle.h" 8 #include "platform/heap/Handle.h"
9 #include "wtf/Vector.h" 9 #include "wtf/Vector.h"
10 10
11 namespace blink { 11 namespace blink {
12 class PlatformEventController; 12 class PlatformEventController;
13 13
14 class PlatformEventDispatcher : public GarbageCollectedMixin { 14 class PlatformEventDispatcher : public GarbageCollectedMixin {
15 public: 15 public:
16 void addController(PlatformEventController*); 16 void addController(PlatformEventController*);
17 void removeController(PlatformEventController*); 17 void removeController(PlatformEventController*);
18 18
19 virtual void trace(Visitor*); 19 DECLARE_VIRTUAL_TRACE();
20 20
21 protected: 21 protected:
22 PlatformEventDispatcher(); 22 PlatformEventDispatcher();
23 23
24 void notifyControllers(); 24 void notifyControllers();
25 25
26 virtual void startListening() = 0; 26 virtual void startListening() = 0;
27 virtual void stopListening() = 0; 27 virtual void stopListening() = 0;
28 28
29 private: 29 private:
30 void purgeControllers(); 30 void purgeControllers();
31 31
32 #if ENABLE(OILPAN) 32 #if ENABLE(OILPAN)
33 void clearWeakMembers(Visitor*); 33 void clearWeakMembers(Visitor*);
34 #endif 34 #endif
35 35
36 WillBeHeapVector<PlatformEventController*> m_controllers; 36 WillBeHeapVector<PlatformEventController*> m_controllers;
37 bool m_needsPurge; 37 bool m_needsPurge;
38 bool m_isDispatching; 38 bool m_isDispatching;
39 }; 39 };
40 40
41 } // namespace blink 41 } // namespace blink
42 42
43 #endif // PlatformEventDispatcher_h 43 #endif // PlatformEventDispatcher_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698