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

Side by Side Diff: Source/core/animation/AnimationNode.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/AnimationEffect.h ('k') | Source/core/animation/AnimationNodeTiming.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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 { 53 {
54 return std::isnan(value); 54 return std::isnan(value);
55 } 55 }
56 56
57 static inline double nullValue() 57 static inline double nullValue()
58 { 58 {
59 return std::numeric_limits<double>::quiet_NaN(); 59 return std::numeric_limits<double>::quiet_NaN();
60 } 60 }
61 61
62 class AnimationNode : public RefCountedWillBeGarbageCollectedFinalized<Animation Node>, public ScriptWrappable { 62 class AnimationNode : public RefCountedWillBeGarbageCollectedFinalized<Animation Node>, public ScriptWrappable {
63 DEFINE_WRAPPERTYPEINFO();
63 friend class AnimationPlayer; // Calls attach/detach, updateInheritedTime. 64 friend class AnimationPlayer; // Calls attach/detach, updateInheritedTime.
64 public: 65 public:
65 // Note that logic in CSSAnimations depends on the order of these values. 66 // Note that logic in CSSAnimations depends on the order of these values.
66 enum Phase { 67 enum Phase {
67 PhaseBefore, 68 PhaseBefore,
68 PhaseActive, 69 PhaseActive,
69 PhaseAfter, 70 PhaseAfter,
70 PhaseNone, 71 PhaseNone,
71 }; 72 };
72 73
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 } m_calculated; 164 } m_calculated;
164 mutable bool m_needsUpdate; 165 mutable bool m_needsUpdate;
165 mutable double m_lastUpdateTime; 166 mutable double m_lastUpdateTime;
166 167
167 const CalculatedTiming& ensureCalculated() const; 168 const CalculatedTiming& ensureCalculated() const;
168 }; 169 };
169 170
170 } // namespace blink 171 } // namespace blink
171 172
172 #endif 173 #endif
OLDNEW
« no previous file with comments | « Source/core/animation/AnimationEffect.h ('k') | Source/core/animation/AnimationNodeTiming.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698