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

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

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp Created 3 years, 11 months 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/dom/ContextLifecycleObserver.h" 8 #include "core/dom/ContextLifecycleObserver.h"
9 #include "core/frame/LocalDOMWindow.h" 9 #include "core/frame/LocalDOMWindow.h"
10 #include "modules/ModulesExport.h" 10 #include "modules/ModulesExport.h"
(...skipping 11 matching lines...) Expand all
22 : public GarbageCollected<WindowAnimationWorklet>, 22 : public GarbageCollected<WindowAnimationWorklet>,
23 public Supplement<LocalDOMWindow>, 23 public Supplement<LocalDOMWindow>,
24 public ContextLifecycleObserver { 24 public ContextLifecycleObserver {
25 USING_GARBAGE_COLLECTED_MIXIN(WindowAnimationWorklet); 25 USING_GARBAGE_COLLECTED_MIXIN(WindowAnimationWorklet);
26 26
27 public: 27 public:
28 static WindowAnimationWorklet& from(LocalDOMWindow&); 28 static WindowAnimationWorklet& from(LocalDOMWindow&);
29 static Worklet* animationWorklet(DOMWindow&); 29 static Worklet* animationWorklet(DOMWindow&);
30 AnimationWorklet* animationWorklet(LocalDOMWindow&); 30 AnimationWorklet* animationWorklet(LocalDOMWindow&);
31 31
32 void contextDestroyed() override; 32 void contextDestroyed(ExecutionContext*) override;
33 33
34 DECLARE_TRACE(); 34 DECLARE_TRACE();
35 35
36 private: 36 private:
37 explicit WindowAnimationWorklet(LocalDOMWindow&); 37 explicit WindowAnimationWorklet(LocalDOMWindow&);
38 static const char* supplementName(); 38 static const char* supplementName();
39 39
40 Member<AnimationWorklet> m_animationWorklet; 40 Member<AnimationWorklet> m_animationWorklet;
41 }; 41 };
42 42
43 } // namespace blink 43 } // namespace blink
44 44
45 #endif // WindowAnimationWorklet_h 45 #endif // WindowAnimationWorklet_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698