| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #include "platform/heap/Handle.h" | 46 #include "platform/heap/Handle.h" |
| 47 #include "wtf/RefPtr.h" | 47 #include "wtf/RefPtr.h" |
| 48 #include <memory> | 48 #include <memory> |
| 49 | 49 |
| 50 namespace blink { | 50 namespace blink { |
| 51 | 51 |
| 52 class AnimationTimeline; | 52 class AnimationTimeline; |
| 53 class CompositorAnimationPlayer; | 53 class CompositorAnimationPlayer; |
| 54 class Element; | 54 class Element; |
| 55 class ExceptionState; | 55 class ExceptionState; |
| 56 class TreeScope; |
| 56 | 57 |
| 57 class CORE_EXPORT Animation final | 58 class CORE_EXPORT Animation final |
| 58 : public EventTargetWithInlineData | 59 : public EventTargetWithInlineData |
| 59 , public ActiveScriptWrappable | 60 , public ActiveScriptWrappable |
| 60 , public ActiveDOMObject | 61 , public ActiveDOMObject |
| 61 , public CompositorAnimationDelegate | 62 , public CompositorAnimationDelegate |
| 62 , public CompositorAnimationPlayerClient { | 63 , public CompositorAnimationPlayerClient { |
| 63 DEFINE_WRAPPERTYPEINFO(); | 64 DEFINE_WRAPPERTYPEINFO(); |
| 64 USING_GARBAGE_COLLECTED_MIXIN(Animation); | 65 USING_GARBAGE_COLLECTED_MIXIN(Animation); |
| 65 USING_PRE_FINALIZER(Animation, dispose); | 66 USING_PRE_FINALIZER(Animation, dispose); |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 int compositorGroup() const { return m_compositorGroup; } | 176 int compositorGroup() const { return m_compositorGroup; } |
| 176 | 177 |
| 177 static bool hasLowerPriority(const Animation* animation1, const Animation* a
nimation2) | 178 static bool hasLowerPriority(const Animation* animation1, const Animation* a
nimation2) |
| 178 { | 179 { |
| 179 return animation1->sequenceNumber() < animation2->sequenceNumber(); | 180 return animation1->sequenceNumber() < animation2->sequenceNumber(); |
| 180 } | 181 } |
| 181 | 182 |
| 182 bool effectSuppressed() const { return m_effectSuppressed; } | 183 bool effectSuppressed() const { return m_effectSuppressed; } |
| 183 void setEffectSuppressed(bool); | 184 void setEffectSuppressed(bool); |
| 184 | 185 |
| 185 void invalidateKeyframeEffect(); | 186 void invalidateKeyframeEffect(const TreeScope&); |
| 186 | 187 |
| 187 DECLARE_VIRTUAL_TRACE(); | 188 DECLARE_VIRTUAL_TRACE(); |
| 188 | 189 |
| 189 protected: | 190 protected: |
| 190 DispatchEventResult dispatchEventInternal(Event*) override; | 191 DispatchEventResult dispatchEventInternal(Event*) override; |
| 191 void addedEventListener(const AtomicString& eventType, RegisteredEventListen
er&) override; | 192 void addedEventListener(const AtomicString& eventType, RegisteredEventListen
er&) override; |
| 192 | 193 |
| 193 private: | 194 private: |
| 194 Animation(ExecutionContext*, AnimationTimeline&, AnimationEffectReadOnly*); | 195 Animation(ExecutionContext*, AnimationTimeline&, AnimationEffectReadOnly*); |
| 195 | 196 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 | 308 |
| 308 bool m_currentTimePending; | 309 bool m_currentTimePending; |
| 309 bool m_stateIsBeingUpdated; | 310 bool m_stateIsBeingUpdated; |
| 310 | 311 |
| 311 bool m_effectSuppressed; | 312 bool m_effectSuppressed; |
| 312 }; | 313 }; |
| 313 | 314 |
| 314 } // namespace blink | 315 } // namespace blink |
| 315 | 316 |
| 316 #endif // Animation_h | 317 #endif // Animation_h |
| OLD | NEW |