OLD | NEW |
(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 CompositorProxyClient_h |
| 6 #define CompositorProxyClient_h |
| 7 |
| 8 #include "core/CoreExport.h" |
| 9 #include "core/workers/WorkerClients.h" |
| 10 #include "wtf/Noncopyable.h" |
| 11 |
| 12 #include <v8.h> |
| 13 |
| 14 namespace blink { |
| 15 |
| 16 class CompositorProxy; |
| 17 class Event; |
| 18 class ScriptState; |
| 19 class WorkerClients; |
| 20 class WorkerGlobalScope; |
| 21 |
| 22 class CORE_EXPORT CompositorProxyClient : public Supplement<WorkerClients> { |
| 23 WTF_MAKE_NONCOPYABLE(CompositorProxyClient); |
| 24 |
| 25 public: |
| 26 CompositorProxyClient() {} |
| 27 |
| 28 static CompositorProxyClient* from(WorkerClients*); |
| 29 static const char* supplementName(); |
| 30 |
| 31 virtual void setGlobalScope(WorkerGlobalScope*) = 0; |
| 32 |
| 33 virtual void triggerMutationForTest() = 0; |
| 34 }; |
| 35 |
| 36 CORE_EXPORT void provideCompositorProxyClientTo(WorkerClients*, CompositorProxyC
lient*); |
| 37 |
| 38 } // namespace blink |
| 39 |
| 40 #endif // CompositorProxyClient_h |
OLD | NEW |