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

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

Issue 2463703003: blink: Cleanup core class forward declarations (Closed)
Patch Set: Remove redundant empty lines Created 4 years, 1 month 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" 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 AnimationWorklet;
15 class DOMWindow; 16 class DOMWindow;
16 class AnimationWorklet; 17 class LocalDOMWindow;
17 class Worklet; 18 class Worklet;
18 19
19 class MODULES_EXPORT WindowAnimationWorklet final 20 class MODULES_EXPORT WindowAnimationWorklet final
20 : public GarbageCollected<WindowAnimationWorklet>, 21 : public GarbageCollected<WindowAnimationWorklet>,
21 public Supplement<LocalDOMWindow>, 22 public Supplement<LocalDOMWindow>,
22 public DOMWindowProperty { 23 public DOMWindowProperty {
23 USING_GARBAGE_COLLECTED_MIXIN(WindowAnimationWorklet); 24 USING_GARBAGE_COLLECTED_MIXIN(WindowAnimationWorklet);
24 25
25 public: 26 public:
26 static WindowAnimationWorklet& from(LocalDOMWindow&); 27 static WindowAnimationWorklet& from(LocalDOMWindow&);
27 static Worklet* animationWorklet(DOMWindow&); 28 static Worklet* animationWorklet(DOMWindow&);
28 AnimationWorklet* animationWorklet(); 29 AnimationWorklet* animationWorklet();
29 30
30 DECLARE_TRACE(); 31 DECLARE_TRACE();
31 32
32 private: 33 private:
33 explicit WindowAnimationWorklet(LocalDOMWindow&); 34 explicit WindowAnimationWorklet(LocalDOMWindow&);
34 static const char* supplementName(); 35 static const char* supplementName();
35 36
36 Member<AnimationWorklet> m_animationWorklet; 37 Member<AnimationWorklet> m_animationWorklet;
37 }; 38 };
38 39
39 } // namespace blink 40 } // namespace blink
40 41
41 #endif // WindowAnimationWorklet_h 42 #endif // WindowAnimationWorklet_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698