| 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 25 matching lines...) Expand all Loading... |
| 36 #include "sky/engine/public/platform/WebSize.h" | 36 #include "sky/engine/public/platform/WebSize.h" |
| 37 #include "sky/engine/public/platform/WebString.h" | 37 #include "sky/engine/public/platform/WebString.h" |
| 38 #include "sky/engine/public/platform/WebVector.h" | 38 #include "sky/engine/public/platform/WebVector.h" |
| 39 | 39 |
| 40 class SkMatrix44; | 40 class SkMatrix44; |
| 41 class SkImageFilter; | 41 class SkImageFilter; |
| 42 | 42 |
| 43 namespace blink { | 43 namespace blink { |
| 44 class WebCompositorAnimationDelegate; | 44 class WebCompositorAnimationDelegate; |
| 45 class WebFilterOperations; | 45 class WebFilterOperations; |
| 46 class WebLayerClient; | |
| 47 class WebLayerScrollClient; | 46 class WebLayerScrollClient; |
| 48 struct WebFloatPoint; | 47 struct WebFloatPoint; |
| 49 struct WebFloatRect; | 48 struct WebFloatRect; |
| 50 struct WebLayerPositionConstraint; | 49 struct WebLayerPositionConstraint; |
| 51 | 50 |
| 52 class WebLayer { | 51 class WebLayer { |
| 53 public: | 52 public: |
| 54 virtual ~WebLayer() { } | 53 virtual ~WebLayer() { } |
| 55 | 54 |
| 56 // Returns a positive ID that will be unique across all WebLayers allocated
in this process. | 55 // Returns a positive ID that will be unique across all WebLayers allocated
in this process. |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 // responsibility of the client to reset the layer's scroll client before | 169 // responsibility of the client to reset the layer's scroll client before |
| 171 // deleting the scroll client. | 170 // deleting the scroll client. |
| 172 virtual void setScrollClient(WebLayerScrollClient*) = 0; | 171 virtual void setScrollClient(WebLayerScrollClient*) = 0; |
| 173 | 172 |
| 174 // Forces this layer to use a render surface. There is no benefit in doing | 173 // Forces this layer to use a render surface. There is no benefit in doing |
| 175 // so, but this is to facilitate benchmarks and tests. | 174 // so, but this is to facilitate benchmarks and tests. |
| 176 virtual void setForceRenderSurface(bool) = 0; | 175 virtual void setForceRenderSurface(bool) = 0; |
| 177 | 176 |
| 178 // True if the layer is not part of a tree attached to a WebLayerTreeView. | 177 // True if the layer is not part of a tree attached to a WebLayerTreeView. |
| 179 virtual bool isOrphan() const = 0; | 178 virtual bool isOrphan() const = 0; |
| 180 | |
| 181 virtual void setWebLayerClient(WebLayerClient*) = 0; | |
| 182 }; | 179 }; |
| 183 | 180 |
| 184 } // namespace blink | 181 } // namespace blink |
| 185 | 182 |
| 186 #endif // SKY_ENGINE_PUBLIC_PLATFORM_WEBLAYER_H_ | 183 #endif // SKY_ENGINE_PUBLIC_PLATFORM_WEBLAYER_H_ |
| OLD | NEW |