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 "cc/trees/element_id.h" |
19 #include "third_party/WebKit/public/platform/WebColor.h" | 20 #include "third_party/WebKit/public/platform/WebColor.h" |
20 #include "third_party/WebKit/public/platform/WebDoublePoint.h" | 21 #include "third_party/WebKit/public/platform/WebDoublePoint.h" |
21 #include "third_party/WebKit/public/platform/WebFloatPoint.h" | 22 #include "third_party/WebKit/public/platform/WebFloatPoint.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" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 blink::WebVector<blink::WebRect> touchEventHandlerRegion() const override; | 120 blink::WebVector<blink::WebRect> touchEventHandlerRegion() const override; |
120 void setIsContainerForFixedPositionLayers(bool is_container) override; | 121 void setIsContainerForFixedPositionLayers(bool is_container) override; |
121 bool isContainerForFixedPositionLayers() const override; | 122 bool isContainerForFixedPositionLayers() const override; |
122 void setPositionConstraint( | 123 void setPositionConstraint( |
123 const blink::WebLayerPositionConstraint& constraint) override; | 124 const blink::WebLayerPositionConstraint& constraint) override; |
124 blink::WebLayerPositionConstraint positionConstraint() const override; | 125 blink::WebLayerPositionConstraint positionConstraint() const override; |
125 void setScrollClient(blink::WebLayerScrollClient* client) override; | 126 void setScrollClient(blink::WebLayerScrollClient* client) override; |
126 void setLayerClient(cc::LayerClient* client) override; | 127 void setLayerClient(cc::LayerClient* client) override; |
127 const cc::Layer* ccLayer() const override; | 128 const cc::Layer* ccLayer() const override; |
128 cc::Layer* ccLayer() override; | 129 cc::Layer* ccLayer() override; |
129 void setElementId(uint64_t id) override; | 130 void setElementId(cc::ElementId id) override; |
130 uint64_t elementId() const override; | 131 cc::ElementId elementId() const override; |
131 void setCompositorMutableProperties(uint32_t properties) override; | 132 void setCompositorMutableProperties(uint32_t properties) override; |
132 uint32_t compositorMutableProperties() const override; | 133 uint32_t compositorMutableProperties() const override; |
133 | 134 |
134 void setScrollParent(blink::WebLayer* parent) override; | 135 void setScrollParent(blink::WebLayer* parent) override; |
135 void setClipParent(blink::WebLayer* parent) override; | 136 void setClipParent(blink::WebLayer* parent) override; |
136 | 137 |
137 protected: | 138 protected: |
138 scoped_refptr<cc::Layer> layer_; | 139 scoped_refptr<cc::Layer> layer_; |
139 | 140 |
140 bool contents_opaque_is_fixed_; | 141 bool contents_opaque_is_fixed_; |
141 | 142 |
142 private: | 143 private: |
143 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); | 144 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); |
144 }; | 145 }; |
145 | 146 |
146 } // namespace cc_blink | 147 } // namespace cc_blink |
147 | 148 |
148 #endif // CC_BLINK_WEB_LAYER_IMPL_H_ | 149 #endif // CC_BLINK_WEB_LAYER_IMPL_H_ |
OLD | NEW |