OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 #include "modules/compositorworker/CompositorWorker.h" | 5 #include "modules/compositorworker/CompositorWorker.h" |
6 | 6 |
7 #include "bindings/core/v8/ExceptionState.h" | 7 #include "bindings/core/v8/ExceptionState.h" |
8 #include "core/dom/CompositorProxyClient.h" | 8 #include "core/dom/CompositorProxyClient.h" |
9 #include "core/dom/Document.h" | 9 #include "core/dom/Document.h" |
10 #include "core/dom/ExceptionCode.h" | 10 #include "core/dom/ExceptionCode.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 const AtomicString& CompositorWorker::interfaceName() const | 50 const AtomicString& CompositorWorker::interfaceName() const |
51 { | 51 { |
52 return EventTargetNames::CompositorWorker; | 52 return EventTargetNames::CompositorWorker; |
53 } | 53 } |
54 | 54 |
55 InProcessWorkerGlobalScopeProxy* CompositorWorker::createInProcessWorkerGlobalSc
opeProxy(ExecutionContext* context) | 55 InProcessWorkerGlobalScopeProxy* CompositorWorker::createInProcessWorkerGlobalSc
opeProxy(ExecutionContext* context) |
56 { | 56 { |
57 Document* document = toDocument(context); | 57 Document* document = toDocument(context); |
58 WorkerClients* workerClients = WorkerClients::create(); | 58 WorkerClients* workerClients = WorkerClients::create(); |
59 provideCompositorProxyClientTo(workerClients, document->frame()->chromeClien
t().createCompositorProxyClient(document->frame())); | 59 provideCompositorProxyClientTo(workerClients, document->frame()->chromeClien
t().createCompositorProxyClient(document->frame(), *workerClients)); |
60 return new CompositorWorkerMessagingProxy(this, workerClients); | 60 return new CompositorWorkerMessagingProxy(this, workerClients); |
61 } | 61 } |
62 | 62 |
63 } // namespace blink | 63 } // namespace blink |
OLD | NEW |