| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 namespace blink { | 46 namespace blink { |
| 47 | 47 |
| 48 class Document; | 48 class Document; |
| 49 class AnimationEffect; | 49 class AnimationEffect; |
| 50 | 50 |
| 51 // AnimationTimeline is constructed and owned by Document, and tied to its lifec
ycle. | 51 // AnimationTimeline is constructed and owned by Document, and tied to its lifec
ycle. |
| 52 class CORE_EXPORT AnimationTimeline : public RefCountedWillBeGarbageCollectedFin
alized<AnimationTimeline>, public ScriptWrappable { | 52 class CORE_EXPORT AnimationTimeline : public RefCountedWillBeGarbageCollectedFin
alized<AnimationTimeline>, public ScriptWrappable { |
| 53 DEFINE_WRAPPERTYPEINFO(); | 53 DEFINE_WRAPPERTYPEINFO(); |
| 54 public: | 54 public: |
| 55 class PlatformTiming : public NoBaseWillBeGarbageCollectedFinalized<Platform
Timing> { | 55 class PlatformTiming : public NoBaseWillBeGarbageCollectedFinalized<Platform
Timing> { |
| 56 | 56 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(PlatformTiming); |
| 57 public: | 57 public: |
| 58 // Calls AnimationTimeline's wake() method after duration seconds. | 58 // Calls AnimationTimeline's wake() method after duration seconds. |
| 59 virtual void wakeAfter(double duration) = 0; | 59 virtual void wakeAfter(double duration) = 0; |
| 60 virtual void cancelWake() = 0; | 60 virtual void cancelWake() = 0; |
| 61 virtual void serviceOnNextFrame() = 0; | 61 virtual void serviceOnNextFrame() = 0; |
| 62 virtual ~PlatformTiming() { } | 62 virtual ~PlatformTiming() { } |
| 63 DEFINE_INLINE_VIRTUAL_TRACE() { } | 63 DEFINE_INLINE_VIRTUAL_TRACE() { } |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 static PassRefPtrWillBeRawPtr<AnimationTimeline> create(Document*, PassOwnPt
rWillBeRawPtr<PlatformTiming> = nullptr); | 66 static PassRefPtrWillBeRawPtr<AnimationTimeline> create(Document*, PassOwnPt
rWillBeRawPtr<PlatformTiming> = nullptr); |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 RawPtrWillBeMember<AnimationTimeline> m_timeline; | 154 RawPtrWillBeMember<AnimationTimeline> m_timeline; |
| 155 Timer<AnimationTimelineTiming> m_timer; | 155 Timer<AnimationTimelineTiming> m_timer; |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 friend class AnimationAnimationTimelineTest; | 158 friend class AnimationAnimationTimelineTest; |
| 159 }; | 159 }; |
| 160 | 160 |
| 161 } // namespace blink | 161 } // namespace blink |
| 162 | 162 |
| 163 #endif | 163 #endif |
| OLD | NEW |