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

Side by Side Diff: third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.h

Issue 2896773002: [DONT COMMIT] PaintWorklet: Move paintWorklet from 'window' to 'CSS' (Closed)
Patch Set: WIP Created 3 years, 6 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698