| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 friend class AnimationPlayer; // Calls attach/detach, updateInheritedTime. | 64 friend class AnimationPlayer; // Calls attach/detach, updateInheritedTime. |
| 65 public: | 65 public: |
| 66 // 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. |
| 67 enum Phase { | 67 enum Phase { |
| 68 PhaseBefore, | 68 PhaseBefore, |
| 69 PhaseActive, | 69 PhaseActive, |
| 70 PhaseAfter, | 70 PhaseAfter, |
| 71 PhaseNone, | 71 PhaseNone, |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 class EventDelegate : public DummyBase<EventDelegate> { | 74 class EventDelegate { |
| 75 public: | 75 public: |
| 76 virtual ~EventDelegate() { } | 76 virtual ~EventDelegate() { } |
| 77 virtual void onEventCondition(const AnimationNode*) = 0; | 77 virtual void onEventCondition(const AnimationNode*) = 0; |
| 78 virtual void trace(Visitor*) { } | 78 virtual void trace(Visitor*) { } |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 virtual ~AnimationNode() { } | 81 virtual ~AnimationNode() { } |
| 82 | 82 |
| 83 virtual bool isAnimation() const { return false; } | 83 virtual bool isAnimation() const { return false; } |
| 84 | 84 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 } m_calculated; | 164 } m_calculated; |
| 165 mutable bool m_needsUpdate; | 165 mutable bool m_needsUpdate; |
| 166 mutable double m_lastUpdateTime; | 166 mutable double m_lastUpdateTime; |
| 167 | 167 |
| 168 const CalculatedTiming& ensureCalculated() const; | 168 const CalculatedTiming& ensureCalculated() const; |
| 169 }; | 169 }; |
| 170 | 170 |
| 171 } // namespace blink | 171 } // namespace blink |
| 172 | 172 |
| 173 #endif | 173 #endif |
| OLD | NEW |