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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 #ifndef EffectModel_h | 31 #ifndef EffectModel_h |
32 #define EffectModel_h | 32 #define EffectModel_h |
33 | 33 |
34 #include "bindings/core/v8/ScriptWrappable.h" | 34 #include "bindings/core/v8/ScriptWrappable.h" |
35 #include "core/CSSPropertyNames.h" | 35 #include "core/CSSPropertyNames.h" |
36 #include "core/CoreExport.h" | 36 #include "core/CoreExport.h" |
37 #include "core/animation/PropertyHandle.h" | 37 #include "core/animation/PropertyHandle.h" |
38 #include "platform/heap/Handle.h" | 38 #include "platform/heap/Handle.h" |
39 #include "wtf/HashMap.h" | 39 #include "wtf/HashMap.h" |
40 #include "wtf/PassOwnPtr.h" | |
41 | 40 |
42 namespace blink { | 41 namespace blink { |
43 | 42 |
44 class Interpolation; | 43 class Interpolation; |
45 | 44 |
46 // Time independent representation of an Animation's content. | 45 // Time independent representation of an Animation's content. |
47 // Can be sampled for the active pairs of Keyframes (represented by Interpolatio
ns) at a given time fraction. | 46 // Can be sampled for the active pairs of Keyframes (represented by Interpolatio
ns) at a given time fraction. |
48 class CORE_EXPORT EffectModel : public GarbageCollectedFinalized<EffectModel>, p
ublic ScriptWrappable { | 47 class CORE_EXPORT EffectModel : public GarbageCollectedFinalized<EffectModel>, p
ublic ScriptWrappable { |
49 DEFINE_WRAPPERTYPEINFO(); | 48 DEFINE_WRAPPERTYPEINFO(); |
50 public: | 49 public: |
51 enum CompositeOperation { | 50 enum CompositeOperation { |
52 CompositeReplace, | 51 CompositeReplace, |
53 CompositeAdd, | 52 CompositeAdd, |
54 }; | 53 }; |
55 | 54 |
56 EffectModel() { } | 55 EffectModel() { } |
57 virtual ~EffectModel() { } | 56 virtual ~EffectModel() { } |
58 virtual bool sample(int iteration, double fraction, double iterationDuration
, Vector<RefPtr<Interpolation>>&) const = 0; | 57 virtual bool sample(int iteration, double fraction, double iterationDuration
, Vector<RefPtr<Interpolation>>&) const = 0; |
59 | 58 |
60 virtual bool affects(PropertyHandle) const { return false; } | 59 virtual bool affects(PropertyHandle) const { return false; } |
61 virtual bool isTransformRelatedEffect() const { return false; } | 60 virtual bool isTransformRelatedEffect() const { return false; } |
62 virtual bool isKeyframeEffectModel() const { return false; } | 61 virtual bool isKeyframeEffectModel() const { return false; } |
63 | 62 |
64 DEFINE_INLINE_VIRTUAL_TRACE() { } | 63 DEFINE_INLINE_VIRTUAL_TRACE() { } |
65 }; | 64 }; |
66 | 65 |
67 } // namespace blink | 66 } // namespace blink |
68 | 67 |
69 #endif // EffectModel_h | 68 #endif // EffectModel_h |
OLD | NEW |