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 18 matching lines...) Expand all Loading... |
29 #include "cc/layers/layer.h" | 29 #include "cc/layers/layer.h" |
30 | 30 |
31 #include "WebBlendMode.h" | 31 #include "WebBlendMode.h" |
32 #include "WebColor.h" | 32 #include "WebColor.h" |
33 #include "WebCommon.h" | 33 #include "WebCommon.h" |
34 #include "WebFloatPoint.h" | 34 #include "WebFloatPoint.h" |
35 #include "WebFloatPoint3D.h" | 35 #include "WebFloatPoint3D.h" |
36 #include "WebFloatSize.h" | 36 #include "WebFloatSize.h" |
37 #include "WebPoint.h" | 37 #include "WebPoint.h" |
38 #include "WebRect.h" | 38 #include "WebRect.h" |
| 39 #include "WebScrollBoundaryBehavior.h" |
39 #include "WebSize.h" | 40 #include "WebSize.h" |
40 #include "WebString.h" | 41 #include "WebString.h" |
41 #include "WebTouchInfo.h" | 42 #include "WebTouchInfo.h" |
42 #include "WebVector.h" | 43 #include "WebVector.h" |
43 | 44 |
44 class SkMatrix44; | 45 class SkMatrix44; |
45 | 46 |
46 namespace cc { | 47 namespace cc { |
47 class Layer; | 48 class Layer; |
48 class LayerClient; | 49 class LayerClient; |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 const WebLayerStickyPositionConstraint&) = 0; | 206 const WebLayerStickyPositionConstraint&) = 0; |
206 virtual WebLayerStickyPositionConstraint StickyPositionConstraint() const = 0; | 207 virtual WebLayerStickyPositionConstraint StickyPositionConstraint() const = 0; |
207 | 208 |
208 // The scroll client is notified when the scroll position of the WebLayer | 209 // The scroll client is notified when the scroll position of the WebLayer |
209 // changes. Only a single scroll client can be set for a WebLayer at a time. | 210 // changes. Only a single scroll client can be set for a WebLayer at a time. |
210 // The WebLayer does not take ownership of the scroll client, and it is the | 211 // The WebLayer does not take ownership of the scroll client, and it is the |
211 // responsibility of the client to reset the layer's scroll client before | 212 // responsibility of the client to reset the layer's scroll client before |
212 // deleting the scroll client. | 213 // deleting the scroll client. |
213 virtual void SetScrollClient(WebLayerScrollClient*) = 0; | 214 virtual void SetScrollClient(WebLayerScrollClient*) = 0; |
214 | 215 |
| 216 virtual void SetScrollBoundaryBehavior(const WebScrollBoundaryBehavior&) = 0; |
| 217 |
215 // Sets the cc-side layer client. | 218 // Sets the cc-side layer client. |
216 virtual void SetLayerClient(cc::LayerClient*) = 0; | 219 virtual void SetLayerClient(cc::LayerClient*) = 0; |
217 | 220 |
218 // Gets the underlying cc layer. | 221 // Gets the underlying cc layer. |
219 virtual const cc::Layer* CcLayer() const = 0; | 222 virtual const cc::Layer* CcLayer() const = 0; |
220 virtual cc::Layer* CcLayer() = 0; | 223 virtual cc::Layer* CcLayer() = 0; |
221 | 224 |
222 virtual void SetElementId(const cc::ElementId&) = 0; | 225 virtual void SetElementId(const cc::ElementId&) = 0; |
223 virtual cc::ElementId GetElementId() const = 0; | 226 virtual cc::ElementId GetElementId() const = 0; |
224 | 227 |
225 virtual void SetCompositorMutableProperties(uint32_t) = 0; | 228 virtual void SetCompositorMutableProperties(uint32_t) = 0; |
226 virtual uint32_t CompositorMutableProperties() const = 0; | 229 virtual uint32_t CompositorMutableProperties() const = 0; |
227 | 230 |
228 virtual void SetHasWillChangeTransformHint(bool) = 0; | 231 virtual void SetHasWillChangeTransformHint(bool) = 0; |
229 | 232 |
230 // Called on the scroll layer to trigger showing the overlay scrollbars. | 233 // Called on the scroll layer to trigger showing the overlay scrollbars. |
231 virtual void ShowScrollbars() = 0; | 234 virtual void ShowScrollbars() = 0; |
232 }; | 235 }; |
233 | 236 |
234 } // namespace blink | 237 } // namespace blink |
235 | 238 |
236 #endif // WebLayer_h | 239 #endif // WebLayer_h |
OLD | NEW |