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

Side by Side Diff: third_party/WebKit/Source/modules/compositorworker/WindowCompositorWorklet.h

Issue 1992933002: Introduce WorkletGlobalScopeProxy interface. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests. Created 4 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 WindowCompositorWorklet_h
6 #define WindowCompositorWorklet_h
7
8 #include "core/frame/DOMWindowProperty.h"
9 #include "modules/ModulesExport.h"
10 #include "platform/Supplementable.h"
11 #include "platform/heap/Handle.h"
12
13 namespace blink {
14
15 class DOMWindow;
16 class ExecutionContext;
17 class CompositorWorklet;
18 class Worklet;
19
20 class MODULES_EXPORT WindowCompositorWorklet final : public GarbageCollected<Win dowCompositorWorklet>, public Supplement<LocalDOMWindow>, public DOMWindowProper ty {
21 USING_GARBAGE_COLLECTED_MIXIN(WindowCompositorWorklet);
22 public:
23 static WindowCompositorWorklet& from(LocalDOMWindow&);
24 static Worklet* compositorWorklet(ExecutionContext*, DOMWindow&);
25 CompositorWorklet* compositorWorklet(ExecutionContext*) const;
26
27 DECLARE_TRACE();
28
29 private:
30 explicit WindowCompositorWorklet(LocalDOMWindow&);
31 static const char* supplementName();
32
33 mutable Member<CompositorWorklet> m_compositorWorklet;
34 };
35
36 } // namespace blink
37
38 #endif // WindowCompositorWorklet_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698