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

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

Issue 1839913002: Implement PaintWorkletGlobalScope#registerPaint() for the CSS Paint API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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 WindowPaintWorklet_h 5 #ifndef WindowPaintWorklet_h
6 #define WindowPaintWorklet_h 6 #define WindowPaintWorklet_h
7 7
8 #include "core/frame/DOMWindowProperty.h" 8 #include "core/frame/DOMWindowProperty.h"
9 #include "platform/Supplementable.h" 9 #include "platform/Supplementable.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
(...skipping 13 matching lines...) Expand all
24 static WindowPaintWorklet& from(LocalDOMWindow&); 24 static WindowPaintWorklet& from(LocalDOMWindow&);
25 static Worklet* paintWorklet(ExecutionContext*, DOMWindow&); 25 static Worklet* paintWorklet(ExecutionContext*, DOMWindow&);
26 PaintWorklet* paintWorklet(ExecutionContext*) const; 26 PaintWorklet* paintWorklet(ExecutionContext*) const;
27 27
28 DECLARE_TRACE(); 28 DECLARE_TRACE();
29 29
30 private: 30 private:
31 explicit WindowPaintWorklet(LocalDOMWindow&); 31 explicit WindowPaintWorklet(LocalDOMWindow&);
32 static const char* supplementName(); 32 static const char* supplementName();
33 33
34 // DOMWindowProperty
35 void willDetachGlobalObjectFromFrame() final;
36
34 mutable PersistentWillBeMember<PaintWorklet> m_paintWorklet; 37 mutable PersistentWillBeMember<PaintWorklet> m_paintWorklet;
35 }; 38 };
36 39
37 } // namespace blink 40 } // namespace blink
38 41
39 #endif // WindowPaintWorklet_h 42 #endif // WindowPaintWorklet_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698