| Index: third_party/WebKit/Source/core/dom/CompositorWorkerProxyClient.h
|
| diff --git a/third_party/WebKit/Source/core/dom/CompositorWorkerProxyClient.h b/third_party/WebKit/Source/core/dom/CompositorWorkerProxyClient.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..747c695837ef3584f771b0af66ab94e2e9b80b54
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/dom/CompositorWorkerProxyClient.h
|
| @@ -0,0 +1,46 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CompositorWorkerProxyClient_h
|
| +#define CompositorWorkerProxyClient_h
|
| +
|
| +#include "core/CoreExport.h"
|
| +#include "core/dom/CompositorProxyClient.h"
|
| +#include "core/workers/WorkerClients.h"
|
| +#include "wtf/Noncopyable.h"
|
| +
|
| +#include <v8.h>
|
| +
|
| +namespace blink {
|
| +
|
| +class WorkerClients;
|
| +class WorkerGlobalScope;
|
| +
|
| +class CORE_EXPORT CompositorWorkerProxyClient
|
| + : public CompositorProxyClient,
|
| + public Supplement<WorkerClients> {
|
| + WTF_MAKE_NONCOPYABLE(CompositorWorkerProxyClient);
|
| +
|
| + public:
|
| + CompositorWorkerProxyClient() {}
|
| + DEFINE_INLINE_VIRTUAL_TRACE() {
|
| + CompositorProxyClient::trace(visitor);
|
| + Supplement<WorkerClients>::trace(visitor);
|
| + }
|
| +
|
| + static CompositorWorkerProxyClient* from(WorkerClients*);
|
| + static const char* supplementName();
|
| +
|
| + virtual void dispose() = 0;
|
| + virtual void setGlobalScope(WorkerGlobalScope*) = 0;
|
| + virtual void requestAnimationFrame() = 0;
|
| +};
|
| +
|
| +CORE_EXPORT void provideCompositorWorkerProxyClientTo(
|
| + WorkerClients*,
|
| + CompositorWorkerProxyClient*);
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // CompositorWorkerProxyClient_h
|
|
|