Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / events / GenericEventQueue.h
index ab80f89..b8d0c7e 100644 (file)
 #include "wtf/RefPtr.h"
 #include "wtf/Vector.h"
 
-namespace WebCore {
+namespace blink {
 
-class GenericEventQueue : public EventQueue {
-    WTF_MAKE_FAST_ALLOCATED;
+class GenericEventQueue final : public EventQueue {
+    WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
 public:
-    explicit GenericEventQueue(EventTarget*);
-    static PassOwnPtr<GenericEventQueue> create(EventTarget*);
+    static PassOwnPtrWillBeRawPtr<GenericEventQueue> create(EventTarget*);
     virtual ~GenericEventQueue();
 
     // EventQueue
-    virtual bool enqueueEvent(PassRefPtr<Event>) OVERRIDE;
-    virtual bool cancelEvent(Event*) OVERRIDE;
-    virtual void close() OVERRIDE;
+    virtual void trace(Visitor*) override;
+    virtual bool enqueueEvent(PassRefPtrWillBeRawPtr<Event>) override;
+    virtual bool cancelEvent(Event*) override;
+    virtual void close() override;
 
     void cancelAllEvents();
     bool hasPendingEvents() const;
 
 private:
+    explicit GenericEventQueue(EventTarget*);
     void timerFired(Timer<GenericEventQueue>*);
 
-    EventTarget* m_owner;
-    Vector<RefPtr<Event> > m_pendingEvents;
+    RawPtrWillBeMember<EventTarget> m_owner;
+    WillBeHeapVector<RefPtrWillBeMember<Event>> m_pendingEvents;
     Timer<GenericEventQueue> m_timer;
 
     bool m_isClosed;