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

Side by Side Diff: Source/core/events/GenericEventQueue.h

Issue 1232333002: Fix virtual/override/final usage in the rest of Source/core/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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
« no previous file with comments | « Source/core/events/FocusEvent.h ('k') | Source/core/events/GestureEvent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Victor Carbune (victor@rosedu.org) 2 * Copyright (C) 2012 Victor Carbune (victor@rosedu.org)
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 22 matching lines...) Expand all
33 #include "wtf/PassOwnPtr.h" 33 #include "wtf/PassOwnPtr.h"
34 #include "wtf/RefPtr.h" 34 #include "wtf/RefPtr.h"
35 #include "wtf/Vector.h" 35 #include "wtf/Vector.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class CORE_EXPORT GenericEventQueue final : public EventQueue { 39 class CORE_EXPORT GenericEventQueue final : public EventQueue {
40 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(GenericEventQueue); 40 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(GenericEventQueue);
41 public: 41 public:
42 static PassOwnPtrWillBeRawPtr<GenericEventQueue> create(EventTarget*); 42 static PassOwnPtrWillBeRawPtr<GenericEventQueue> create(EventTarget*);
43 virtual ~GenericEventQueue(); 43 ~GenericEventQueue() override;
44 44
45 // EventQueue 45 // EventQueue
46 DECLARE_VIRTUAL_TRACE(); 46 DECLARE_VIRTUAL_TRACE();
47 virtual bool enqueueEvent(PassRefPtrWillBeRawPtr<Event>) override; 47 bool enqueueEvent(PassRefPtrWillBeRawPtr<Event>) override;
48 virtual bool cancelEvent(Event*) override; 48 bool cancelEvent(Event*) override;
49 virtual void close() override; 49 void close() override;
50 50
51 void cancelAllEvents(); 51 void cancelAllEvents();
52 bool hasPendingEvents() const; 52 bool hasPendingEvents() const;
53 53
54 private: 54 private:
55 explicit GenericEventQueue(EventTarget*); 55 explicit GenericEventQueue(EventTarget*);
56 void timerFired(Timer<GenericEventQueue>*); 56 void timerFired(Timer<GenericEventQueue>*);
57 57
58 RawPtrWillBeMember<EventTarget> m_owner; 58 RawPtrWillBeMember<EventTarget> m_owner;
59 WillBeHeapVector<RefPtrWillBeMember<Event>> m_pendingEvents; 59 WillBeHeapVector<RefPtrWillBeMember<Event>> m_pendingEvents;
60 Timer<GenericEventQueue> m_timer; 60 Timer<GenericEventQueue> m_timer;
61 61
62 bool m_isClosed; 62 bool m_isClosed;
63 }; 63 };
64 64
65 } 65 }
66 66
67 #endif 67 #endif
OLDNEW
« no previous file with comments | « Source/core/events/FocusEvent.h ('k') | Source/core/events/GestureEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698