| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 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 16 matching lines...) Expand all Loading... |
| 27 #define AnimationEvent_h | 27 #define AnimationEvent_h |
| 28 | 28 |
| 29 #include "core/events/AnimationEventInit.h" | 29 #include "core/events/AnimationEventInit.h" |
| 30 #include "core/events/Event.h" | 30 #include "core/events/Event.h" |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 class AnimationEvent final : public Event { | 34 class AnimationEvent final : public Event { |
| 35 DEFINE_WRAPPERTYPEINFO(); | 35 DEFINE_WRAPPERTYPEINFO(); |
| 36 public: | 36 public: |
| 37 static PassRefPtrWillBeRawPtr<AnimationEvent> create() | 37 static RawPtr<AnimationEvent> create() |
| 38 { | 38 { |
| 39 return adoptRefWillBeNoop(new AnimationEvent); | 39 return adoptRefWillBeNoop(new AnimationEvent); |
| 40 } | 40 } |
| 41 static PassRefPtrWillBeRawPtr<AnimationEvent> create(const AtomicString& typ
e, const String& animationName, double elapsedTime) | 41 static RawPtr<AnimationEvent> create(const AtomicString& type, const String&
animationName, double elapsedTime) |
| 42 { | 42 { |
| 43 return adoptRefWillBeNoop(new AnimationEvent(type, animationName, elapse
dTime)); | 43 return new AnimationEvent(type, animationName, elapsedTime); |
| 44 } | 44 } |
| 45 static PassRefPtrWillBeRawPtr<AnimationEvent> create(const AtomicString& typ
e, const AnimationEventInit& initializer) | 45 static RawPtr<AnimationEvent> create(const AtomicString& type, const Animati
onEventInit& initializer) |
| 46 { | 46 { |
| 47 return adoptRefWillBeNoop(new AnimationEvent(type, initializer)); | 47 return new AnimationEvent(type, initializer); |
| 48 } | 48 } |
| 49 | 49 |
| 50 ~AnimationEvent() override; | 50 ~AnimationEvent() override; |
| 51 | 51 |
| 52 const String& animationName() const; | 52 const String& animationName() const; |
| 53 double elapsedTime() const; | 53 double elapsedTime() const; |
| 54 | 54 |
| 55 const AtomicString& interfaceName() const override; | 55 const AtomicString& interfaceName() const override; |
| 56 | 56 |
| 57 DECLARE_VIRTUAL_TRACE(); | 57 DECLARE_VIRTUAL_TRACE(); |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 AnimationEvent(); | 60 AnimationEvent(); |
| 61 AnimationEvent(const AtomicString& type, const String& animationName, double
elapsedTime); | 61 AnimationEvent(const AtomicString& type, const String& animationName, double
elapsedTime); |
| 62 AnimationEvent(const AtomicString&, const AnimationEventInit&); | 62 AnimationEvent(const AtomicString&, const AnimationEventInit&); |
| 63 | 63 |
| 64 String m_animationName; | 64 String m_animationName; |
| 65 double m_elapsedTime; | 65 double m_elapsedTime; |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace blink | 68 } // namespace blink |
| 69 | 69 |
| 70 #endif // AnimationEvent_h | 70 #endif // AnimationEvent_h |
| OLD | NEW |