Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CustomElementReactionQueue_h | |
| 6 #define CustomElementReactionQueue_h | |
| 7 | |
| 8 #include "core/CoreExport.h" | |
| 9 #include "platform/heap/Handle.h" | |
| 10 #include "wtf/Noncopyable.h" | |
| 11 | |
| 12 namespace blink { | |
| 13 | |
| 14 class CustomElementReaction; | |
| 15 class Element; | |
| 16 | |
| 17 class CORE_EXPORT CustomElementReactionQueue final | |
| 18 : public GarbageCollectedFinalized<CustomElementReactionQueue> { | |
| 19 WTF_MAKE_NONCOPYABLE(CustomElementReactionQueue); | |
|
yosin_UTC9
2016/06/01 02:14:01
Better to use DISALLOW_COPY_AND_ASSIGN()?
| |
| 20 public: | |
| 21 CustomElementReactionQueue(); | |
| 22 ~CustomElementReactionQueue(); | |
| 23 | |
| 24 DECLARE_TRACE(); | |
| 25 | |
| 26 void add(CustomElementReaction*); | |
| 27 void invokeReactions(Element*); | |
| 28 | |
| 29 private: | |
| 30 HeapVector<Member<CustomElementReaction>> m_reactions; | |
| 31 size_t m_index; | |
| 32 }; | |
| 33 | |
| 34 } // namespace blink | |
| 35 | |
| 36 #endif // CustomElementReactionQueue_h | |
| OLD | NEW |