| 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 30 matching lines...) Expand all Loading... |
| 41 #include "wtf/RefPtr.h" | 41 #include "wtf/RefPtr.h" |
| 42 #include "wtf/Vector.h" | 42 #include "wtf/Vector.h" |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 class Document; | 46 class Document; |
| 47 class AnimationNode; | 47 class AnimationNode; |
| 48 | 48 |
| 49 // AnimationTimeline is constructed and owned by Document, and tied to its lifec
ycle. | 49 // AnimationTimeline is constructed and owned by Document, and tied to its lifec
ycle. |
| 50 class AnimationTimeline : public RefCountedWillBeGarbageCollectedFinalized<Anima
tionTimeline>, public ScriptWrappable { | 50 class AnimationTimeline : public RefCountedWillBeGarbageCollectedFinalized<Anima
tionTimeline>, public ScriptWrappable { |
| 51 DEFINE_WRAPPERTYPEINFO(); |
| 51 public: | 52 public: |
| 52 class PlatformTiming : public NoBaseWillBeGarbageCollectedFinalized<Platform
Timing> { | 53 class PlatformTiming : public NoBaseWillBeGarbageCollectedFinalized<Platform
Timing> { |
| 53 | 54 |
| 54 public: | 55 public: |
| 55 // Calls AnimationTimeline's wake() method after duration seconds. | 56 // Calls AnimationTimeline's wake() method after duration seconds. |
| 56 virtual void wakeAfter(double duration) = 0; | 57 virtual void wakeAfter(double duration) = 0; |
| 57 virtual void cancelWake() = 0; | 58 virtual void cancelWake() = 0; |
| 58 virtual void serviceOnNextFrame() = 0; | 59 virtual void serviceOnNextFrame() = 0; |
| 59 virtual ~PlatformTiming() { } | 60 virtual ~PlatformTiming() { } |
| 60 virtual void trace(Visitor*) { } | 61 virtual void trace(Visitor*) { } |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 virtual void trace(Visitor*) OVERRIDE; | 132 virtual void trace(Visitor*) OVERRIDE; |
| 132 | 133 |
| 133 private: | 134 private: |
| 134 RawPtrWillBeMember<AnimationTimeline> m_timeline; | 135 RawPtrWillBeMember<AnimationTimeline> m_timeline; |
| 135 Timer<AnimationTimelineTiming> m_timer; | 136 Timer<AnimationTimelineTiming> m_timer; |
| 136 }; | 137 }; |
| 137 | 138 |
| 138 friend class AnimationAnimationTimelineTest; | 139 friend class AnimationAnimationTimelineTest; |
| 139 }; | 140 }; |
| 140 | 141 |
| 141 } // namespace | 142 } // namespace blink |
| 142 | 143 |
| 143 #endif | 144 #endif |
| OLD | NEW |