| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WindowPaintWorklet_h | |
| 6 #define WindowPaintWorklet_h | |
| 7 | |
| 8 #include "modules/ModulesExport.h" | |
| 9 #include "platform/Supplementable.h" | |
| 10 #include "platform/heap/Handle.h" | |
| 11 | |
| 12 namespace blink { | |
| 13 | |
| 14 class LocalDOMWindow; | |
| 15 class PaintWorklet; | |
| 16 class Worklet; | |
| 17 | |
| 18 class MODULES_EXPORT WindowPaintWorklet final | |
| 19 : public GarbageCollected<WindowPaintWorklet>, | |
| 20 public Supplement<LocalDOMWindow> { | |
| 21 USING_GARBAGE_COLLECTED_MIXIN(WindowPaintWorklet); | |
| 22 | |
| 23 public: | |
| 24 static WindowPaintWorklet& From(LocalDOMWindow&); | |
| 25 static Worklet* paintWorklet(LocalDOMWindow&); | |
| 26 PaintWorklet* paintWorklet(); | |
| 27 | |
| 28 DECLARE_TRACE(); | |
| 29 | |
| 30 private: | |
| 31 explicit WindowPaintWorklet(LocalDOMWindow&); | |
| 32 static const char* SupplementName(); | |
| 33 | |
| 34 Member<PaintWorklet> paint_worklet_; | |
| 35 }; | |
| 36 | |
| 37 } // namespace blink | |
| 38 | |
| 39 #endif // WindowPaintWorklet_h | |
| OLD | NEW |