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

Side by Side Diff: Source/core/animation/AnimationTimeline.h

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/animation/AnimationPlayer.h ('k') | Source/core/clipboard/DataTransfer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/animation/AnimationPlayer.h ('k') | Source/core/clipboard/DataTransfer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698