Chromium Code Reviews

Side by Side Diff: third_party/WebKit/Source/core/animation/Animation.h

Issue 1805843002: [v8 gc] Introduce a base class for all objects that can have pending activity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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 16 matching lines...)
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef Animation_h 31 #ifndef Animation_h
32 #define Animation_h 32 #define Animation_h
33 33
34 #include "bindings/core/v8/ExceptionStatePlaceholder.h" 34 #include "bindings/core/v8/ExceptionStatePlaceholder.h"
35 #include "bindings/core/v8/ScriptPromise.h" 35 #include "bindings/core/v8/ScriptPromise.h"
36 #include "bindings/core/v8/ScriptPromiseProperty.h" 36 #include "bindings/core/v8/ScriptPromiseProperty.h"
37 #include "bindings/core/v8/V8GCRoot.h"
37 #include "core/CSSPropertyNames.h" 38 #include "core/CSSPropertyNames.h"
38 #include "core/CoreExport.h" 39 #include "core/CoreExport.h"
39 #include "core/animation/AnimationEffect.h" 40 #include "core/animation/AnimationEffect.h"
40 #include "core/dom/ContextLifecycleObserver.h" 41 #include "core/dom/ContextLifecycleObserver.h"
41 #include "core/dom/DOMException.h" 42 #include "core/dom/DOMException.h"
42 #include "core/events/EventTarget.h" 43 #include "core/events/EventTarget.h"
43 #include "platform/animation/CompositorAnimationDelegate.h" 44 #include "platform/animation/CompositorAnimationDelegate.h"
44 #include "platform/animation/CompositorAnimationPlayerClient.h" 45 #include "platform/animation/CompositorAnimationPlayerClient.h"
45 #include "platform/heap/Handle.h" 46 #include "platform/heap/Handle.h"
46 #include "wtf/RefPtr.h" 47 #include "wtf/RefPtr.h"
47 48
48 namespace blink { 49 namespace blink {
49 50
50 class AnimationTimeline; 51 class AnimationTimeline;
51 class CompositorAnimationPlayer; 52 class CompositorAnimationPlayer;
52 class Element; 53 class Element;
53 class ExceptionState; 54 class ExceptionState;
54 55
55 class CORE_EXPORT Animation final 56 class CORE_EXPORT Animation final
56 : public RefCountedGarbageCollectedEventTargetWithInlineData<Animation> 57 : public RefCountedGarbageCollectedEventTargetWithInlineData<Animation>
57 , public ContextLifecycleObserver 58 , public ContextLifecycleObserver
58 , public CompositorAnimationDelegate 59 , public CompositorAnimationDelegate
59 , public CompositorAnimationPlayerClient { 60 , public CompositorAnimationPlayerClient
61 , public V8GCRoot {
60 DEFINE_WRAPPERTYPEINFO(); 62 DEFINE_WRAPPERTYPEINFO();
61 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(Animation); 63 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(Animation);
62 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Animation); 64 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Animation);
63 public: 65 public:
64 enum AnimationPlayState { 66 enum AnimationPlayState {
65 Unset, 67 Unset,
66 Idle, 68 Idle,
67 Pending, 69 Pending,
68 Running, 70 Running,
69 Paused, 71 Paused,
(...skipping 226 matching lines...)
296 298
297 OwnPtr<CompositorAnimationPlayer> m_compositorPlayer; 299 OwnPtr<CompositorAnimationPlayer> m_compositorPlayer;
298 300
299 bool m_currentTimePending; 301 bool m_currentTimePending;
300 bool m_stateIsBeingUpdated; 302 bool m_stateIsBeingUpdated;
301 }; 303 };
302 304
303 } // namespace blink 305 } // namespace blink
304 306
305 #endif // Animation_h 307 #endif // Animation_h
OLDNEW

Powered by Google App Engine