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

Unified Diff: third_party/WebKit/Source/core/events/AnimationPlayerEvent.cpp

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/AnimationPlayerEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/AnimationPlayerEvent.cpp b/third_party/WebKit/Source/core/events/AnimationPlayerEvent.cpp
deleted file mode 100644
index 1ff325044f0782cd2fe91b491def86f62b4cde8e..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/events/AnimationPlayerEvent.cpp
+++ /dev/null
@@ -1,58 +0,0 @@
-// 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.
-
-#include "core/events/AnimationPlayerEvent.h"
-
-namespace blink {
-
-AnimationPlayerEvent::AnimationPlayerEvent(const AtomicString& type, double currentTime, double timelineTime)
- : Event(type, false, false)
- , m_currentTime(currentTime)
- , m_timelineTime(timelineTime)
-{
-}
-
-AnimationPlayerEvent::AnimationPlayerEvent(const AtomicString& type, const AnimationPlayerEventInit& initializer)
- : Event(type, initializer)
- , m_currentTime(0.0)
- , m_timelineTime(0.0)
-{
- if (initializer.hasCurrentTime())
- m_currentTime = initializer.currentTime();
- if (initializer.hasTimelineTime())
- m_timelineTime = initializer.timelineTime();
-}
-
-AnimationPlayerEvent::~AnimationPlayerEvent()
-{
-}
-
-double AnimationPlayerEvent::currentTime(bool& isNull) const
-{
- double result = currentTime();
- isNull = std::isnan(result);
- return result;
-}
-
-double AnimationPlayerEvent::currentTime() const
-{
- return m_currentTime;
-}
-
-double AnimationPlayerEvent::timelineTime() const
-{
- return m_timelineTime;
-}
-
-const AtomicString& AnimationPlayerEvent::interfaceName() const
-{
- return EventNames::AnimationPlayerEvent;
-}
-
-DEFINE_TRACE(AnimationPlayerEvent)
-{
- Event::trace(visitor);
-}
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698