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" |
(...skipping 10 matching lines...) Expand all Loading... |
21 : public GarbageCollected<WindowAnimationWorklet>, | 21 : public GarbageCollected<WindowAnimationWorklet>, |
22 public Supplement<LocalDOMWindow>, | 22 public Supplement<LocalDOMWindow>, |
23 public DOMWindowProperty { | 23 public DOMWindowProperty { |
24 USING_GARBAGE_COLLECTED_MIXIN(WindowAnimationWorklet); | 24 USING_GARBAGE_COLLECTED_MIXIN(WindowAnimationWorklet); |
25 | 25 |
26 public: | 26 public: |
27 static WindowAnimationWorklet& from(LocalDOMWindow&); | 27 static WindowAnimationWorklet& from(LocalDOMWindow&); |
28 static Worklet* animationWorklet(DOMWindow&); | 28 static Worklet* animationWorklet(DOMWindow&); |
29 AnimationWorklet* animationWorklet(); | 29 AnimationWorklet* animationWorklet(); |
30 | 30 |
| 31 void frameDestroyed() override; |
| 32 |
31 DECLARE_TRACE(); | 33 DECLARE_TRACE(); |
32 | 34 |
33 private: | 35 private: |
34 explicit WindowAnimationWorklet(LocalDOMWindow&); | 36 explicit WindowAnimationWorklet(LocalDOMWindow&); |
35 static const char* supplementName(); | 37 static const char* supplementName(); |
36 | 38 |
37 Member<AnimationWorklet> m_animationWorklet; | 39 Member<AnimationWorklet> m_animationWorklet; |
38 }; | 40 }; |
39 | 41 |
40 } // namespace blink | 42 } // namespace blink |
41 | 43 |
42 #endif // WindowAnimationWorklet_h | 44 #endif // WindowAnimationWorklet_h |
OLD | NEW |