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

Unified Diff: third_party/WebKit/Source/core/events/AnimationPlaybackEvent.h

Issue 2344473002: Rename AnimationPlayerEvent as AnimationPlaybackEvent (Closed)
Patch Set: Make timelineTime nullable Created 4 years, 3 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/events/AnimationPlaybackEvent.h
diff --git a/third_party/WebKit/Source/core/events/AnimationPlaybackEvent.h b/third_party/WebKit/Source/core/events/AnimationPlaybackEvent.h
new file mode 100644
index 0000000000000000000000000000000000000000..f3156e97447bcb9ff091101a8460ba136bc5ac98
--- /dev/null
+++ b/third_party/WebKit/Source/core/events/AnimationPlaybackEvent.h
@@ -0,0 +1,46 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef AnimationPlaybackEvent_h
+#define AnimationPlaybackEvent_h
+
+#include "core/events/AnimationPlaybackEventInit.h"
+#include "core/events/Event.h"
+
+namespace blink {
+
+class AnimationPlaybackEvent final : public Event {
+ DEFINE_WRAPPERTYPEINFO();
+public:
+ static AnimationPlaybackEvent* create(const AtomicString& type, double currentTime, double timelineTime)
+ {
+ return new AnimationPlaybackEvent(type, currentTime, timelineTime);
+ }
+ static AnimationPlaybackEvent* create(const AtomicString& type, const AnimationPlaybackEventInit& initializer)
+ {
+ return new AnimationPlaybackEvent(type, initializer);
+ }
+
+ ~AnimationPlaybackEvent() override;
+
+ double currentTime(bool& isNull) const;
+ double currentTime() const;
+ double timelineTime(bool& isNull) const;
+ double timelineTime() const;
+
+ const AtomicString& interfaceName() const override;
+
+ DECLARE_VIRTUAL_TRACE();
+
+private:
+ AnimationPlaybackEvent(const AtomicString& type, double currentTime, double timelineTime);
+ AnimationPlaybackEvent(const AtomicString&, const AnimationPlaybackEventInit&);
+
+ double m_currentTime;
+ double m_timelineTime;
+};
+
+} // namespace blink
+
+#endif // AnimationPlaybackEvent_h

Powered by Google App Engine
This is Rietveld 408576698