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 WebFrameWidgetBase_h | 5 #ifndef WebFrameWidgetBase_h |
6 #define WebFrameWidgetBase_h | 6 #define WebFrameWidgetBase_h |
7 | 7 |
8 #include "public/web/WebFrameWidget.h" | 8 #include "public/web/WebFrameWidget.h" |
9 #include "wtf/Assertions.h" | 9 #include "wtf/Assertions.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 class CompositorAnimationTimeline; | 13 class CompositorAnimationTimeline; |
14 class CompositorProxyClient; | 14 class CompositorProxyClient; |
15 class GraphicsLayer; | 15 class GraphicsLayer; |
| 16 class WorkerClients; |
16 | 17 |
17 class WebFrameWidgetBase : public WebFrameWidget { | 18 class WebFrameWidgetBase : public WebFrameWidget { |
18 public: | 19 public: |
19 virtual bool forSubframe() const = 0; | 20 virtual bool forSubframe() const = 0; |
20 virtual void scheduleAnimation() = 0; | 21 virtual void scheduleAnimation() = 0; |
21 virtual CompositorProxyClient* createCompositorProxyClient() = 0; | 22 virtual CompositorProxyClient* createCompositorProxyClient(WorkerClients&) =
0; |
22 virtual WebWidgetClient* client() const = 0; | 23 virtual WebWidgetClient* client() const = 0; |
23 | 24 |
24 // Sets the root graphics layer. |GraphicsLayer| can be null when detaching | 25 // Sets the root graphics layer. |GraphicsLayer| can be null when detaching |
25 // the root layer. | 26 // the root layer. |
26 virtual void setRootGraphicsLayer(GraphicsLayer*) = 0; | 27 virtual void setRootGraphicsLayer(GraphicsLayer*) = 0; |
27 | 28 |
28 // Attaches/detaches a CompositorAnimationTimeline to the layer tree. | 29 // Attaches/detaches a CompositorAnimationTimeline to the layer tree. |
29 virtual void attachCompositorAnimationTimeline(CompositorAnimationTimeline*)
= 0; | 30 virtual void attachCompositorAnimationTimeline(CompositorAnimationTimeline*)
= 0; |
30 virtual void detachCompositorAnimationTimeline(CompositorAnimationTimeline*)
= 0; | 31 virtual void detachCompositorAnimationTimeline(CompositorAnimationTimeline*)
= 0; |
31 }; | 32 }; |
32 | 33 |
33 DEFINE_TYPE_CASTS(WebFrameWidgetBase, WebFrameWidget, widget, true, true); | 34 DEFINE_TYPE_CASTS(WebFrameWidgetBase, WebFrameWidget, widget, true, true); |
34 | 35 |
35 } // namespace blink | 36 } // namespace blink |
36 | 37 |
37 #endif | 38 #endif |
OLD | NEW |