OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CC_BLINK_WEB_LAYER_IMPL_H_ | 5 #ifndef CC_BLINK_WEB_LAYER_IMPL_H_ |
6 #define CC_BLINK_WEB_LAYER_IMPL_H_ | 6 #define CC_BLINK_WEB_LAYER_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "third_party/WebKit/public/platform/WebFloatPoint.h" | 22 #include "third_party/WebKit/public/platform/WebFloatPoint.h" |
23 #include "third_party/WebKit/public/platform/WebLayer.h" | 23 #include "third_party/WebKit/public/platform/WebLayer.h" |
24 #include "third_party/WebKit/public/platform/WebPoint.h" | 24 #include "third_party/WebKit/public/platform/WebPoint.h" |
25 #include "third_party/WebKit/public/platform/WebRect.h" | 25 #include "third_party/WebKit/public/platform/WebRect.h" |
26 #include "third_party/WebKit/public/platform/WebSize.h" | 26 #include "third_party/WebKit/public/platform/WebSize.h" |
27 #include "third_party/WebKit/public/platform/WebString.h" | 27 #include "third_party/WebKit/public/platform/WebString.h" |
28 #include "third_party/WebKit/public/platform/WebVector.h" | 28 #include "third_party/WebKit/public/platform/WebVector.h" |
29 #include "third_party/skia/include/utils/SkMatrix44.h" | 29 #include "third_party/skia/include/utils/SkMatrix44.h" |
30 | 30 |
31 namespace blink { | 31 namespace blink { |
32 class WebFilterOperations; | |
33 struct WebFloatRect; | 32 struct WebFloatRect; |
34 } | 33 } |
35 | 34 |
36 namespace base { | 35 namespace base { |
37 namespace trace_event { | 36 namespace trace_event { |
38 class ConvertableToTraceFormat; | 37 class ConvertableToTraceFormat; |
39 } | 38 } |
40 } | 39 } |
41 | 40 |
42 namespace cc { | 41 namespace cc { |
| 42 class Animation; |
| 43 class FilterOperations; |
43 class Layer; | 44 class Layer; |
44 class LayerSettings; | 45 class LayerSettings; |
45 } | 46 } |
46 | 47 |
47 namespace cc_blink { | 48 namespace cc_blink { |
48 | 49 |
49 class WebToCCAnimationDelegateAdapter; | 50 class WebToCCAnimationDelegateAdapter; |
50 | 51 |
51 class WebLayerImpl : public blink::WebLayer { | 52 class WebLayerImpl : public blink::WebLayer { |
52 public: | 53 public: |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 blink::WebFloatPoint3D transformOrigin() const override; | 97 blink::WebFloatPoint3D transformOrigin() const override; |
97 SkMatrix44 transform() const override; | 98 SkMatrix44 transform() const override; |
98 void setDrawsContent(bool draws_content) override; | 99 void setDrawsContent(bool draws_content) override; |
99 bool drawsContent() const override; | 100 bool drawsContent() const override; |
100 void setDoubleSided(bool double_sided) override; | 101 void setDoubleSided(bool double_sided) override; |
101 void setShouldFlattenTransform(bool flatten) override; | 102 void setShouldFlattenTransform(bool flatten) override; |
102 void setRenderingContext(int context) override; | 103 void setRenderingContext(int context) override; |
103 void setUseParentBackfaceVisibility(bool visible) override; | 104 void setUseParentBackfaceVisibility(bool visible) override; |
104 void setBackgroundColor(blink::WebColor color) override; | 105 void setBackgroundColor(blink::WebColor color) override; |
105 blink::WebColor backgroundColor() const override; | 106 blink::WebColor backgroundColor() const override; |
106 void setFilters(const blink::WebFilterOperations& filters) override; | 107 void setFilters(const cc::FilterOperations& filters) override; |
107 void setBackgroundFilters(const blink::WebFilterOperations& filters) override; | 108 void setBackgroundFilters(const cc::FilterOperations& filters) override; |
108 void setAnimationDelegate( | 109 void setAnimationDelegate( |
109 blink::WebCompositorAnimationDelegate* delegate) override; | 110 blink::WebCompositorAnimationDelegate* delegate) override; |
110 bool addAnimation(blink::WebCompositorAnimation* animation) override; | 111 bool addAnimation(cc::Animation* animation) override; |
111 void removeAnimation(int animation_id) override; | 112 void removeAnimation(int animation_id) override; |
112 void pauseAnimation(int animation_id, double time_offset) override; | 113 void pauseAnimation(int animation_id, double time_offset) override; |
113 void abortAnimation(int animation_id) override; | 114 void abortAnimation(int animation_id) override; |
114 bool hasActiveAnimation() override; | 115 bool hasActiveAnimation() override; |
115 void setForceRenderSurface(bool force) override; | 116 void setForceRenderSurface(bool force) override; |
116 void setScrollPositionDouble(blink::WebDoublePoint position) override; | 117 void setScrollPositionDouble(blink::WebDoublePoint position) override; |
117 blink::WebDoublePoint scrollPositionDouble() const override; | 118 blink::WebDoublePoint scrollPositionDouble() const override; |
118 void setScrollCompensationAdjustment(blink::WebDoublePoint position) override; | 119 void setScrollCompensationAdjustment(blink::WebDoublePoint position) override; |
119 void setScrollClipLayer(blink::WebLayer* clip_layer) override; | 120 void setScrollClipLayer(blink::WebLayer* clip_layer) override; |
120 bool scrollable() const override; | 121 bool scrollable() const override; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 | 167 |
167 private: | 168 private: |
168 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; | 169 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; |
169 | 170 |
170 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); | 171 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); |
171 }; | 172 }; |
172 | 173 |
173 } // namespace cc_blink | 174 } // namespace cc_blink |
174 | 175 |
175 #endif // CC_BLINK_WEB_LAYER_IMPL_H_ | 176 #endif // CC_BLINK_WEB_LAYER_IMPL_H_ |
OLD | NEW |