| OLD | NEW |
| 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 AnimationWorkletProxyClient_h | 5 #ifndef AnimationWorkletProxyClient_h |
| 6 #define AnimationWorkletProxyClient_h | 6 #define AnimationWorkletProxyClient_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/dom/CompositorProxyClient.h" | 9 #include "core/dom/CompositorProxyClient.h" |
| 10 #include "core/workers/WorkerClients.h" |
| 10 #include "platform/wtf/Noncopyable.h" | 11 #include "platform/wtf/Noncopyable.h" |
| 11 | 12 |
| 12 namespace blink { | 13 namespace blink { |
| 13 | 14 |
| 14 class CORE_EXPORT AnimationWorkletProxyClient : public GarbageCollectedMixin { | 15 class WorkletGlobalScope; |
| 16 |
| 17 class CORE_EXPORT AnimationWorkletProxyClient |
| 18 : public Supplement<WorkerClients> { |
| 15 WTF_MAKE_NONCOPYABLE(AnimationWorkletProxyClient); | 19 WTF_MAKE_NONCOPYABLE(AnimationWorkletProxyClient); |
| 16 | 20 |
| 17 public: | 21 public: |
| 18 AnimationWorkletProxyClient() {} | 22 AnimationWorkletProxyClient() {} |
| 19 virtual ~AnimationWorkletProxyClient() {} | 23 |
| 20 DEFINE_INLINE_VIRTUAL_TRACE() {} | 24 static AnimationWorkletProxyClient* From(WorkerClients*); |
| 25 static const char* SupplementName(); |
| 26 |
| 27 virtual void SetGlobalScope(WorkletGlobalScope*) = 0; |
| 28 virtual void Dispose() = 0; |
| 29 |
| 30 virtual CompositorProxyClient* GetCompositorProxyClient() = 0; |
| 21 }; | 31 }; |
| 22 | 32 |
| 33 CORE_EXPORT void ProvideAnimationWorkletProxyClientTo( |
| 34 WorkerClients*, |
| 35 AnimationWorkletProxyClient*); |
| 36 |
| 23 } // namespace blink | 37 } // namespace blink |
| 24 | 38 |
| 25 #endif // AnimationWorkletProxyClient_h | 39 #endif // AnimationWorkletProxyClient_h |
| OLD | NEW |