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

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

Issue 2191533003: Refactor Timer classes in preparation for landing FrameTimers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More build fixes Created 4 years, 4 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
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 DECLARE_VIRTUAL_TRACE(); 44 DECLARE_VIRTUAL_TRACE();
45 bool enqueueEvent(Event*) override; 45 bool enqueueEvent(Event*) override;
46 bool cancelEvent(Event*) override; 46 bool cancelEvent(Event*) override;
47 void close() override; 47 void close() override;
48 48
49 void cancelAllEvents(); 49 void cancelAllEvents();
50 bool hasPendingEvents() const; 50 bool hasPendingEvents() const;
51 51
52 private: 52 private:
53 explicit GenericEventQueue(EventTarget*); 53 explicit GenericEventQueue(EventTarget*);
54 void timerFired(Timer<GenericEventQueue>*); 54 void timerFired(TimerBase*);
55 55
56 Member<EventTarget> m_owner; 56 Member<EventTarget> m_owner;
57 HeapVector<Member<Event>> m_pendingEvents; 57 HeapVector<Member<Event>> m_pendingEvents;
58 Timer<GenericEventQueue> m_timer; 58 Timer<GenericEventQueue> m_timer;
59 59
60 bool m_isClosed; 60 bool m_isClosed;
61 }; 61 };
62 62
63 } // namespace blink 63 } // namespace blink
64 64
65 #endif 65 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/EventSender.h ('k') | third_party/WebKit/Source/core/events/GenericEventQueue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698