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

Unified Diff: third_party/WebKit/Source/core/dom/ScriptedAnimationController.h

Issue 2202493002: NOT FOR REVIEW: Fullscreen WIP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/ScriptedAnimationController.h
diff --git a/third_party/WebKit/Source/core/dom/ScriptedAnimationController.h b/third_party/WebKit/Source/core/dom/ScriptedAnimationController.h
index 1962092af2bb9b229ba880cf37b697916b47531f..8ce30ea1791401f327847dd34577253766ba3bca 100644
--- a/third_party/WebKit/Source/core/dom/ScriptedAnimationController.h
+++ b/third_party/WebKit/Source/core/dom/ScriptedAnimationController.h
@@ -43,7 +43,7 @@ class FrameRequestCallback;
class MediaQueryListListener;
class CORE_EXPORT ScriptedAnimationController
- : public GarbageCollected<ScriptedAnimationController> {
+ : public GarbageCollectedFinalized<ScriptedAnimationController> {
public:
static ScriptedAnimationController* create(Document* document) {
return new ScriptedAnimationController(document);
@@ -58,6 +58,7 @@ class CORE_EXPORT ScriptedAnimationController
void cancelCallback(CallbackId);
void serviceScriptedAnimations(double monotonicTimeNow);
+ void enqueueTask(std::unique_ptr<WTF::Closure>);
void enqueueEvent(Event*);
void enqueuePerFrameEvent(Event*);
void enqueueMediaQueryChangeListeners(
@@ -73,6 +74,7 @@ class CORE_EXPORT ScriptedAnimationController
void scheduleAnimationIfNeeded();
+ void runTasks();
void dispatchEvents(
const AtomicString& eventInterfaceFilter = AtomicString());
void executeCallbacks(double monotonicTimeNow);
@@ -83,6 +85,7 @@ class CORE_EXPORT ScriptedAnimationController
Member<Document> m_document;
FrameRequestCallbackCollection m_callbackCollection;
int m_suspendCount;
+ Vector<std::unique_ptr<WTF::Closure>> m_taskQueue;
HeapVector<Member<Event>> m_eventQueue;
HeapListHashSet<std::pair<Member<const EventTarget>, const StringImpl*>>
m_perFrameEvents;

Powered by Google App Engine
This is Rietveld 408576698