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

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

Issue 1510603005: [Do not submit] Worklet implementation. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: A basic CompositorWorklet implementation. Created 5 years 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 2015 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 Worklet_h
6 #define Worklet_h
7
8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/dom/ActiveDOMObject.h"
10 #include "modules/worklet/WorkletGlobalScope.h"
11 #include "platform/heap/Handle.h"
12
13 namespace blink {
14
15 class ExecutionContext;
16 class WorkletGlobalScope;
17 class WorkletMessagingProxy;
18
19 class Worklet final : public GarbageCollectedFinalized<Worklet>, public ScriptWr appable, public ActiveDOMObject {
20 WTF_MAKE_NONCOPYABLE(Worklet);
21 DEFINE_WRAPPERTYPEINFO();
22 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Worklet);
23 public:
24 static Worklet* create(ExecutionContext*);
25
26 double num();
27
28 DECLARE_TRACE();
29
30 private:
31 explicit Worklet(ExecutionContext*);
32
33 RefPtrWillBeMember<WorkletGlobalScope> m_workletGlobalScope;
34 WorkletMessagingProxy* m_workletMessagingProxy;
35 };
36
37 } // namespace blink
38
39 #endif // Worklet_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/worklet/WindowWorklet.idl ('k') | third_party/WebKit/Source/modules/worklet/Worklet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698