Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.h

Issue 2571753002: WindowAnimationWorklet should use ContextLifecycleObserver instead of DOMWindowProperty (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
9 #include "modules/ModulesExport.h" 8 #include "modules/ModulesExport.h"
10 #include "platform/Supplementable.h" 9 #include "platform/Supplementable.h"
11 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
12 11
13 namespace blink { 12 namespace blink {
14 13
15 class AnimationWorklet; 14 class AnimationWorklet;
16 class DOMWindow; 15 class DOMWindow;
17 class LocalDOMWindow; 16 class LocalDOMWindow;
18 class Worklet; 17 class Worklet;
19 18
20 class MODULES_EXPORT WindowAnimationWorklet final 19 class MODULES_EXPORT WindowAnimationWorklet final
21 : public GarbageCollected<WindowAnimationWorklet>, 20 : public GarbageCollected<WindowAnimationWorklet>,
22 public Supplement<LocalDOMWindow>, 21 public Supplement<LocalDOMWindow> {
23 public DOMWindowProperty {
24 USING_GARBAGE_COLLECTED_MIXIN(WindowAnimationWorklet); 22 USING_GARBAGE_COLLECTED_MIXIN(WindowAnimationWorklet);
25 23
26 public: 24 public:
27 static WindowAnimationWorklet& from(LocalDOMWindow&); 25 static WindowAnimationWorklet& from(LocalDOMWindow&);
28 static Worklet* animationWorklet(DOMWindow&); 26 static Worklet* animationWorklet(DOMWindow&);
29 AnimationWorklet* animationWorklet(); 27 AnimationWorklet* animationWorklet(LocalDOMWindow&);
30
31 void frameDestroyed() override;
32 28
33 DECLARE_TRACE(); 29 DECLARE_TRACE();
34 30
35 private: 31 private:
36 explicit WindowAnimationWorklet(LocalDOMWindow&); 32 explicit WindowAnimationWorklet(LocalDOMWindow&);
37 static const char* supplementName(); 33 static const char* supplementName();
38 34
39 Member<AnimationWorklet> m_animationWorklet; 35 Member<AnimationWorklet> m_animationWorklet;
40 }; 36 };
41 37
42 } // namespace blink 38 } // namespace blink
43 39
44 #endif // WindowAnimationWorklet_h 40 #endif // WindowAnimationWorklet_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698