| 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 "WebFloatPoint.h" | 32 #include "WebFloatPoint.h" |
| 33 #include "WebFloatPoint3D.h" | 33 #include "WebFloatPoint3D.h" |
| 34 #include "WebFloatSize.h" | 34 #include "WebFloatSize.h" |
| 35 #include "WebPoint.h" | 35 #include "WebPoint.h" |
| 36 #include "WebRect.h" | 36 #include "WebRect.h" |
| 37 #include "WebScrollBoundaryBehavior.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 | 43 |
| 43 namespace cc { | 44 namespace cc { |
| 44 class Layer; | 45 class Layer; |
| 45 class LayerClient; | 46 class LayerClient; |
| 46 class FilterOperations; | 47 class FilterOperations; |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 const WebLayerStickyPositionConstraint&) = 0; | 198 const WebLayerStickyPositionConstraint&) = 0; |
| 198 virtual WebLayerStickyPositionConstraint stickyPositionConstraint() const = 0; | 199 virtual WebLayerStickyPositionConstraint stickyPositionConstraint() const = 0; |
| 199 | 200 |
| 200 // The scroll client is notified when the scroll position of the WebLayer | 201 // The scroll client is notified when the scroll position of the WebLayer |
| 201 // changes. Only a single scroll client can be set for a WebLayer at a time. | 202 // changes. Only a single scroll client can be set for a WebLayer at a time. |
| 202 // The WebLayer does not take ownership of the scroll client, and it is the | 203 // The WebLayer does not take ownership of the scroll client, and it is the |
| 203 // responsibility of the client to reset the layer's scroll client before | 204 // responsibility of the client to reset the layer's scroll client before |
| 204 // deleting the scroll client. | 205 // deleting the scroll client. |
| 205 virtual void setScrollClient(WebLayerScrollClient*) = 0; | 206 virtual void setScrollClient(WebLayerScrollClient*) = 0; |
| 206 | 207 |
| 208 virtual void setScrollBoundaryBehavior(WebScrollBoundaryBehavior) = 0; |
| 209 |
| 207 // Sets the cc-side layer client. | 210 // Sets the cc-side layer client. |
| 208 virtual void setLayerClient(cc::LayerClient*) = 0; | 211 virtual void setLayerClient(cc::LayerClient*) = 0; |
| 209 | 212 |
| 210 // Gets the underlying cc layer. | 213 // Gets the underlying cc layer. |
| 211 virtual const cc::Layer* ccLayer() const = 0; | 214 virtual const cc::Layer* ccLayer() const = 0; |
| 212 virtual cc::Layer* ccLayer() = 0; | 215 virtual cc::Layer* ccLayer() = 0; |
| 213 | 216 |
| 214 virtual void setElementId(const cc::ElementId&) = 0; | 217 virtual void setElementId(const cc::ElementId&) = 0; |
| 215 virtual cc::ElementId elementId() const = 0; | 218 virtual cc::ElementId elementId() const = 0; |
| 216 | 219 |
| 217 virtual void setCompositorMutableProperties(uint32_t) = 0; | 220 virtual void setCompositorMutableProperties(uint32_t) = 0; |
| 218 virtual uint32_t compositorMutableProperties() const = 0; | 221 virtual uint32_t compositorMutableProperties() const = 0; |
| 219 | 222 |
| 220 virtual void setHasWillChangeTransformHint(bool) = 0; | 223 virtual void setHasWillChangeTransformHint(bool) = 0; |
| 221 }; | 224 }; |
| 222 | 225 |
| 223 } // namespace blink | 226 } // namespace blink |
| 224 | 227 |
| 225 #endif // WebLayer_h | 228 #endif // WebLayer_h |
| OLD | NEW |