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 "platform/heap/Handle.h" | 41 #include "platform/heap/Handle.h" |
42 #include "wtf/RefPtr.h" | 42 #include "wtf/RefPtr.h" |
43 #include "wtf/Vector.h" | 43 #include "wtf/Vector.h" |
44 #include <memory> | 44 #include <memory> |
45 | 45 |
46 namespace blink { | 46 namespace blink { |
47 | 47 |
48 class Document; | 48 class Document; |
49 class AnimationEffectReadOnly; | 49 class AnimationEffectReadOnly; |
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 |
| 52 // lifecycle. |
52 class CORE_EXPORT AnimationTimeline | 53 class CORE_EXPORT AnimationTimeline |
53 : public GarbageCollectedFinalized<AnimationTimeline>, | 54 : public GarbageCollectedFinalized<AnimationTimeline>, |
54 public ScriptWrappable { | 55 public ScriptWrappable { |
55 DEFINE_WRAPPERTYPEINFO(); | 56 DEFINE_WRAPPERTYPEINFO(); |
56 | 57 |
57 public: | 58 public: |
58 class PlatformTiming : public GarbageCollectedFinalized<PlatformTiming> { | 59 class PlatformTiming : public GarbageCollectedFinalized<PlatformTiming> { |
59 public: | 60 public: |
60 // Calls AnimationTimeline's wake() method after duration seconds. | 61 // Calls AnimationTimeline's wake() method after duration seconds. |
61 virtual void wakeAfter(double duration) = 0; | 62 virtual void wakeAfter(double duration) = 0; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 Member<AnimationTimeline> m_timeline; | 153 Member<AnimationTimeline> m_timeline; |
153 Timer<AnimationTimelineTiming> m_timer; | 154 Timer<AnimationTimelineTiming> m_timer; |
154 }; | 155 }; |
155 | 156 |
156 friend class AnimationAnimationTimelineTest; | 157 friend class AnimationAnimationTimelineTest; |
157 }; | 158 }; |
158 | 159 |
159 } // namespace blink | 160 } // namespace blink |
160 | 161 |
161 #endif | 162 #endif |
OLD | NEW |