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

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

Issue 636833002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/events (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« 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 17 matching lines...) Expand all
28 28
29 #include "core/events/EventQueue.h" 29 #include "core/events/EventQueue.h"
30 #include "core/events/EventTarget.h" 30 #include "core/events/EventTarget.h"
31 #include "platform/Timer.h" 31 #include "platform/Timer.h"
32 #include "wtf/PassOwnPtr.h" 32 #include "wtf/PassOwnPtr.h"
33 #include "wtf/RefPtr.h" 33 #include "wtf/RefPtr.h"
34 #include "wtf/Vector.h" 34 #include "wtf/Vector.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 class GenericEventQueue FINAL : public EventQueue { 38 class GenericEventQueue final : public EventQueue {
39 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; 39 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
40 public: 40 public:
41 static PassOwnPtrWillBeRawPtr<GenericEventQueue> create(EventTarget*); 41 static PassOwnPtrWillBeRawPtr<GenericEventQueue> create(EventTarget*);
42 virtual ~GenericEventQueue(); 42 virtual ~GenericEventQueue();
43 43
44 // EventQueue 44 // EventQueue
45 virtual void trace(Visitor*) OVERRIDE; 45 virtual void trace(Visitor*) override;
46 virtual bool enqueueEvent(PassRefPtrWillBeRawPtr<Event>) OVERRIDE; 46 virtual bool enqueueEvent(PassRefPtrWillBeRawPtr<Event>) override;
47 virtual bool cancelEvent(Event*) OVERRIDE; 47 virtual bool cancelEvent(Event*) override;
48 virtual void close() OVERRIDE; 48 virtual void close() override;
49 49
50 void cancelAllEvents(); 50 void cancelAllEvents();
51 bool hasPendingEvents() const; 51 bool hasPendingEvents() const;
52 52
53 private: 53 private:
54 explicit GenericEventQueue(EventTarget*); 54 explicit GenericEventQueue(EventTarget*);
55 void timerFired(Timer<GenericEventQueue>*); 55 void timerFired(Timer<GenericEventQueue>*);
56 56
57 RawPtrWillBeMember<EventTarget> m_owner; 57 RawPtrWillBeMember<EventTarget> m_owner;
58 WillBeHeapVector<RefPtrWillBeMember<Event> > m_pendingEvents; 58 WillBeHeapVector<RefPtrWillBeMember<Event> > m_pendingEvents;
59 Timer<GenericEventQueue> m_timer; 59 Timer<GenericEventQueue> m_timer;
60 60
61 bool m_isClosed; 61 bool m_isClosed;
62 }; 62 };
63 63
64 } 64 }
65 65
66 #endif 66 #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