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

Side by Side Diff: third_party/WebKit/Source/modules/worklet/DOMWindowWorklet.h

Issue 1818223002: Introduce PaintWorkletGlobalScope, rename renderWorklet attribute to paintWorklet. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix interface listing order. Created 4 years, 9 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 DOMWindowWorklet_h
6 #define DOMWindowWorklet_h
7
8 #include "core/frame/DOMWindowProperty.h"
9 #include "platform/Supplementable.h"
10 #include "platform/heap/Handle.h"
11
12 namespace blink {
13
14 class DOMWindow;
15 class ExecutionContext;
16 class Worklet;
17
18 class DOMWindowWorklet final : public NoBaseWillBeGarbageCollected<DOMWindowWork let>, public WillBeHeapSupplement<LocalDOMWindow>, public DOMWindowProperty {
19 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMWindowWorklet);
20 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(DOMWindowWorklet);
21 USING_FAST_MALLOC_WILL_BE_REMOVED(DOMWindowWorklet);
22 public:
23 static DOMWindowWorklet& from(LocalDOMWindow&);
24 static Worklet* renderWorklet(ExecutionContext*, DOMWindow&);
25 Worklet* renderWorklet(ExecutionContext*) const;
26
27 DECLARE_TRACE();
28
29 private:
30 explicit DOMWindowWorklet(LocalDOMWindow&);
31 static const char* supplementName();
32
33 mutable PersistentWillBeMember<Worklet> m_renderWorklet;
34 };
35
36 } // namespace blink
37
38 #endif // DOMWindowWorklet_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/modules.gypi ('k') | third_party/WebKit/Source/modules/worklet/DOMWindowWorklet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698