| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WindowAnimationWorklet_h | 5 #ifndef WindowAnimationWorklet_h |
| 6 #define WindowAnimationWorklet_h | 6 #define WindowAnimationWorklet_h |
| 7 | 7 |
| 8 #include "core/frame/DOMWindowProperty.h" | 8 #include "core/frame/DOMWindowProperty.h" |
| 9 #include "modules/ModulesExport.h" | 9 #include "modules/ModulesExport.h" |
| 10 #include "platform/Supplementable.h" | 10 #include "platform/Supplementable.h" |
| 11 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class DOMWindow; | 15 class DOMWindow; |
| 16 class ExecutionContext; | |
| 17 class AnimationWorklet; | 16 class AnimationWorklet; |
| 18 class Worklet; | 17 class Worklet; |
| 19 | 18 |
| 20 class MODULES_EXPORT WindowAnimationWorklet final : public GarbageCollected<Wind
owAnimationWorklet>, public Supplement<LocalDOMWindow>, public DOMWindowProperty
{ | 19 class MODULES_EXPORT WindowAnimationWorklet final : public GarbageCollected<Wind
owAnimationWorklet>, public Supplement<LocalDOMWindow>, public DOMWindowProperty
{ |
| 21 USING_GARBAGE_COLLECTED_MIXIN(WindowAnimationWorklet); | 20 USING_GARBAGE_COLLECTED_MIXIN(WindowAnimationWorklet); |
| 22 public: | 21 public: |
| 23 static WindowAnimationWorklet& from(LocalDOMWindow&); | 22 static WindowAnimationWorklet& from(LocalDOMWindow&); |
| 24 static Worklet* animationWorklet(ExecutionContext*, DOMWindow&); | 23 static Worklet* animationWorklet(DOMWindow&); |
| 25 AnimationWorklet* animationWorklet(ExecutionContext*); | 24 AnimationWorklet* animationWorklet(); |
| 26 | 25 |
| 27 DECLARE_TRACE(); | 26 DECLARE_TRACE(); |
| 28 | 27 |
| 29 private: | 28 private: |
| 30 explicit WindowAnimationWorklet(LocalDOMWindow&); | 29 explicit WindowAnimationWorklet(LocalDOMWindow&); |
| 31 static const char* supplementName(); | 30 static const char* supplementName(); |
| 32 | 31 |
| 33 Member<AnimationWorklet> m_animationWorklet; | 32 Member<AnimationWorklet> m_animationWorklet; |
| 34 }; | 33 }; |
| 35 | 34 |
| 36 } // namespace blink | 35 } // namespace blink |
| 37 | 36 |
| 38 #endif // WindowAnimationWorklet_h | 37 #endif // WindowAnimationWorklet_h |
| OLD | NEW |