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

Unified Diff: third_party/WebKit/Source/core/animation/Animation.h

Issue 2615253002: Resolve ready and finished promises asynchronously (Closed)
Patch Set: Fix nits Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/animation/Animation.h
diff --git a/third_party/WebKit/Source/core/animation/Animation.h b/third_party/WebKit/Source/core/animation/Animation.h
index 339209ee65f3a4012595097b29c7f009e9cdfe12..927e4ff77edcddbc5d6b7947eef710f1d19a3863 100644
--- a/third_party/WebKit/Source/core/animation/Animation.h
+++ b/third_party/WebKit/Source/core/animation/Animation.h
@@ -221,6 +221,11 @@ class CORE_EXPORT Animation final : public EventTargetWithInlineData,
void notifyAnimationFinished(double monotonicTime, int group) override {}
void notifyAnimationAborted(double monotonicTime, int group) override {}
+ using AnimationPromise = ScriptPromiseProperty<Member<Animation>,
+ Member<Animation>,
+ Member<DOMException>>;
+ void resolvePromiseAsync(AnimationPromise*);
+
String m_id;
AnimationPlayState m_playState;
@@ -230,10 +235,6 @@ class CORE_EXPORT Animation final : public EventTargetWithInlineData,
unsigned m_sequenceNumber;
- typedef ScriptPromiseProperty<Member<Animation>,
- Member<Animation>,
- Member<DOMException>>
- AnimationPromise;
Member<AnimationPromise> m_finishedPromise;
Member<AnimationPromise> m_readyPromise;

Powered by Google App Engine
This is Rietveld 408576698