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 |
11 #include <memory> | 11 #include <memory> |
12 #include <string> | 12 #include <string> |
13 #include <utility> | 13 #include <utility> |
14 | 14 |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
17 #include "cc/blink/cc_blink_export.h" | 17 #include "cc/blink/cc_blink_export.h" |
18 #include "cc/layers/layer_client.h" | 18 #include "cc/layers/layer_client.h" |
19 #include "third_party/WebKit/public/platform/WebColor.h" | 19 #include "third_party/WebKit/public/platform/WebColor.h" |
20 #include "third_party/WebKit/public/platform/WebDoublePoint.h" | 20 #include "third_party/WebKit/public/platform/WebDoublePoint.h" |
21 #include "third_party/WebKit/public/platform/WebFloatPoint.h" | 21 #include "third_party/WebKit/public/platform/WebFloatPoint.h" |
| 22 #include "third_party/WebKit/public/platform/WebFloatSize.h" |
22 #include "third_party/WebKit/public/platform/WebLayer.h" | 23 #include "third_party/WebKit/public/platform/WebLayer.h" |
23 #include "third_party/WebKit/public/platform/WebPoint.h" | 24 #include "third_party/WebKit/public/platform/WebPoint.h" |
24 #include "third_party/WebKit/public/platform/WebRect.h" | 25 #include "third_party/WebKit/public/platform/WebRect.h" |
25 #include "third_party/WebKit/public/platform/WebSize.h" | 26 #include "third_party/WebKit/public/platform/WebSize.h" |
26 #include "third_party/WebKit/public/platform/WebString.h" | 27 #include "third_party/WebKit/public/platform/WebString.h" |
27 #include "third_party/WebKit/public/platform/WebVector.h" | 28 #include "third_party/WebKit/public/platform/WebVector.h" |
28 #include "third_party/skia/include/core/SkMatrix44.h" | 29 #include "third_party/skia/include/core/SkMatrix44.h" |
29 | 30 |
30 namespace blink { | 31 namespace blink { |
31 struct WebFloatRect; | 32 struct WebFloatRect; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 SkMatrix44 transform() const override; | 90 SkMatrix44 transform() const override; |
90 void setDrawsContent(bool draws_content) override; | 91 void setDrawsContent(bool draws_content) override; |
91 bool drawsContent() const override; | 92 bool drawsContent() const override; |
92 void setDoubleSided(bool double_sided) override; | 93 void setDoubleSided(bool double_sided) override; |
93 void setShouldFlattenTransform(bool flatten) override; | 94 void setShouldFlattenTransform(bool flatten) override; |
94 void setRenderingContext(int context) override; | 95 void setRenderingContext(int context) override; |
95 void setUseParentBackfaceVisibility(bool visible) override; | 96 void setUseParentBackfaceVisibility(bool visible) override; |
96 void setBackgroundColor(blink::WebColor color) override; | 97 void setBackgroundColor(blink::WebColor color) override; |
97 blink::WebColor backgroundColor() const override; | 98 blink::WebColor backgroundColor() const override; |
98 void setFilters(const cc::FilterOperations& filters) override; | 99 void setFilters(const cc::FilterOperations& filters) override; |
| 100 void setFiltersOrigin(const blink::WebFloatPoint& origin) override; |
99 void setBackgroundFilters(const cc::FilterOperations& filters) override; | 101 void setBackgroundFilters(const cc::FilterOperations& filters) override; |
100 bool hasActiveAnimationForTesting() override; | 102 bool hasActiveAnimationForTesting() override; |
101 void setScrollPositionDouble(blink::WebDoublePoint position) override; | 103 void setScrollPositionDouble(blink::WebDoublePoint position) override; |
102 blink::WebDoublePoint scrollPositionDouble() const override; | 104 blink::WebDoublePoint scrollPositionDouble() const override; |
103 void setScrollClipLayer(blink::WebLayer* clip_layer) override; | 105 void setScrollClipLayer(blink::WebLayer* clip_layer) override; |
104 bool scrollable() const override; | 106 bool scrollable() const override; |
105 void setUserScrollable(bool horizontal, bool vertical) override; | 107 void setUserScrollable(bool horizontal, bool vertical) override; |
106 bool userScrollableHorizontal() const override; | 108 bool userScrollableHorizontal() const override; |
107 bool userScrollableVertical() const override; | 109 bool userScrollableVertical() const override; |
108 void addMainThreadScrollingReasons( | 110 void addMainThreadScrollingReasons( |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 142 |
141 bool contents_opaque_is_fixed_; | 143 bool contents_opaque_is_fixed_; |
142 | 144 |
143 private: | 145 private: |
144 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); | 146 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); |
145 }; | 147 }; |
146 | 148 |
147 } // namespace cc_blink | 149 } // namespace cc_blink |
148 | 150 |
149 #endif // CC_BLINK_WEB_LAYER_IMPL_H_ | 151 #endif // CC_BLINK_WEB_LAYER_IMPL_H_ |
OLD | NEW |