OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
haraken
2016/05/06 02:45:51
2016
flackr
2016/05/06 18:15:07
Done.
| |
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 "bindings/core/v8/ScopedPersistent.h" | |
haraken
2016/05/06 02:45:50
Remove this.
flackr
2016/05/06 18:15:07
Done.
| |
9 #include "core/CoreExport.h" | |
10 #include "core/workers/WorkerClients.h" | |
11 #include "wtf/Noncopyable.h" | |
12 | |
13 #include <v8.h> | |
14 | |
15 namespace blink { | |
16 | |
17 class CompositorProxy; | |
18 class Event; | |
19 class ScriptState; | |
20 class WorkerClients; | |
21 class WorkerGlobalScope; | |
22 | |
23 class CORE_EXPORT CompositorProxyClient : public Supplement<WorkerClients> { | |
24 WTF_MAKE_NONCOPYABLE(CompositorProxyClient); | |
25 | |
26 public: | |
27 CompositorProxyClient() {} | |
28 | |
29 static CompositorProxyClient* from(WorkerClients*); | |
30 static const char* supplementName(); | |
31 | |
32 virtual void setGlobalScope(WorkerGlobalScope*) = 0; | |
33 virtual void requestAnimationFrame() = 0; | |
34 }; | |
35 | |
36 CORE_EXPORT void provideCompositorProxyClientTo(WorkerClients*, CompositorProxyC lient*); | |
37 | |
38 } // namespace blink | |
39 | |
40 #endif // CompositorProxyClient_h | |
OLD | NEW |