OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 16 matching lines...) Expand all Loading... | |
27 #define WebLayer_h | 27 #define WebLayer_h |
28 | 28 |
29 #include "WebBlendMode.h" | 29 #include "WebBlendMode.h" |
30 #include "WebColor.h" | 30 #include "WebColor.h" |
31 #include "WebCommon.h" | 31 #include "WebCommon.h" |
32 #include "WebCompositorAnimation.h" | 32 #include "WebCompositorAnimation.h" |
33 #include "WebDoublePoint.h" | 33 #include "WebDoublePoint.h" |
34 #include "WebFloatPoint3D.h" | 34 #include "WebFloatPoint3D.h" |
35 #include "WebPoint.h" | 35 #include "WebPoint.h" |
36 #include "WebRect.h" | 36 #include "WebRect.h" |
37 #include "WebScrollBlocksOn.h" | |
37 #include "WebSize.h" | 38 #include "WebSize.h" |
38 #include "WebString.h" | 39 #include "WebString.h" |
39 #include "WebVector.h" | 40 #include "WebVector.h" |
40 | 41 |
41 class SkMatrix44; | 42 class SkMatrix44; |
42 class SkImageFilter; | 43 class SkImageFilter; |
43 | 44 |
44 namespace blink { | 45 namespace blink { |
45 class WebCompositorAnimationDelegate; | 46 class WebCompositorAnimationDelegate; |
46 class WebFilterOperations; | 47 class WebFilterOperations; |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
179 | 180 |
180 virtual void setShouldScrollOnMainThread(bool) = 0; | 181 virtual void setShouldScrollOnMainThread(bool) = 0; |
181 virtual bool shouldScrollOnMainThread() const = 0; | 182 virtual bool shouldScrollOnMainThread() const = 0; |
182 | 183 |
183 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0; | 184 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0; |
184 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0; | 185 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0; |
185 | 186 |
186 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0; | 187 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0; |
187 virtual WebVector<WebRect> touchEventHandlerRegion() const = 0; | 188 virtual WebVector<WebRect> touchEventHandlerRegion() const = 0; |
188 | 189 |
190 // FIXME: Make pure once cc is updated. crbug.com/347272 | |
Nico
2015/07/28 19:22:44
can this be done now?
| |
191 virtual void setScrollBlocksOn(WebScrollBlocksOn) { }; | |
192 virtual WebScrollBlocksOn scrollBlocksOn() const { return WebScrollBlocksOnN one;}; | |
193 | |
189 virtual void setIsContainerForFixedPositionLayers(bool) = 0; | 194 virtual void setIsContainerForFixedPositionLayers(bool) = 0; |
190 virtual bool isContainerForFixedPositionLayers() const = 0; | 195 virtual bool isContainerForFixedPositionLayers() const = 0; |
191 | 196 |
192 // This function sets layer position constraint. The constraint will be used | 197 // This function sets layer position constraint. The constraint will be used |
193 // to adjust layer position during threaded scrolling. | 198 // to adjust layer position during threaded scrolling. |
194 virtual void setPositionConstraint(const WebLayerPositionConstraint&) = 0; | 199 virtual void setPositionConstraint(const WebLayerPositionConstraint&) = 0; |
195 virtual WebLayerPositionConstraint positionConstraint() const = 0; | 200 virtual WebLayerPositionConstraint positionConstraint() const = 0; |
196 | 201 |
197 // The scroll client is notified when the scroll position of the WebLayer | 202 // The scroll client is notified when the scroll position of the WebLayer |
198 // changes. Only a single scroll client can be set for a WebLayer at a time. | 203 // changes. Only a single scroll client can be set for a WebLayer at a time. |
199 // The WebLayer does not take ownership of the scroll client, and it is the | 204 // The WebLayer does not take ownership of the scroll client, and it is the |
200 // responsibility of the client to reset the layer's scroll client before | 205 // responsibility of the client to reset the layer's scroll client before |
201 // deleting the scroll client. | 206 // deleting the scroll client. |
202 virtual void setScrollClient(WebLayerScrollClient*) = 0; | 207 virtual void setScrollClient(WebLayerScrollClient*) = 0; |
203 | 208 |
204 // Forces this layer to use a render surface. There is no benefit in doing | 209 // Forces this layer to use a render surface. There is no benefit in doing |
205 // so, but this is to facilitate benchmarks and tests. | 210 // so, but this is to facilitate benchmarks and tests. |
206 virtual void setForceRenderSurface(bool) = 0; | 211 virtual void setForceRenderSurface(bool) = 0; |
207 | 212 |
208 // True if the layer is not part of a tree attached to a WebLayerTreeView. | 213 // True if the layer is not part of a tree attached to a WebLayerTreeView. |
209 virtual bool isOrphan() const = 0; | 214 virtual bool isOrphan() const = 0; |
210 | 215 |
211 virtual void setWebLayerClient(WebLayerClient*) = 0; | 216 virtual void setWebLayerClient(WebLayerClient*) = 0; |
212 }; | 217 }; |
213 | 218 |
214 } // namespace blink | 219 } // namespace blink |
215 | 220 |
216 #endif // WebLayer_h | 221 #endif // WebLayer_h |
OLD | NEW |