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 29 matching lines...) Expand all Loading... |
40 | 40 |
41 class SkMatrix44; | 41 class SkMatrix44; |
42 class SkImageFilter; | 42 class SkImageFilter; |
43 | 43 |
44 namespace blink { | 44 namespace blink { |
45 class WebCompositorAnimationDelegate; | 45 class WebCompositorAnimationDelegate; |
46 class WebFilterOperations; | 46 class WebFilterOperations; |
47 class WebLayerClient; | 47 class WebLayerClient; |
48 class WebLayerScrollClient; | 48 class WebLayerScrollClient; |
49 struct WebFloatPoint; | 49 struct WebFloatPoint; |
50 struct WebFloatRect; | |
51 struct WebLayerPositionConstraint; | 50 struct WebLayerPositionConstraint; |
52 | 51 |
53 class WebLayer { | 52 class WebLayer { |
54 public: | 53 public: |
55 virtual ~WebLayer() { } | 54 virtual ~WebLayer() { } |
56 | 55 |
57 // Returns a positive ID that will be unique across all WebLayers allocated
in this process. | 56 // Returns a positive ID that will be unique across all WebLayers allocated
in this process. |
58 virtual int id() const = 0; | 57 virtual int id() const = 0; |
59 | 58 |
60 // Sets a region of the layer as invalid, i.e. needs to update its content. | 59 // Sets a region of the layer as invalid, i.e. needs to update its content. |
61 virtual void invalidateRect(const WebFloatRect&) = 0; | 60 virtual void invalidateRect(const WebRect&) = 0; |
62 | 61 |
63 // Sets the entire layer as invalid, i.e. needs to update its content. | 62 // Sets the entire layer as invalid, i.e. needs to update its content. |
64 virtual void invalidate() = 0; | 63 virtual void invalidate() = 0; |
65 | 64 |
66 // These functions do not take ownership of the WebLayer* parameter. | 65 // These functions do not take ownership of the WebLayer* parameter. |
67 virtual void addChild(WebLayer*) = 0; | 66 virtual void addChild(WebLayer*) = 0; |
68 virtual void insertChild(WebLayer*, size_t index) = 0; | 67 virtual void insertChild(WebLayer*, size_t index) = 0; |
69 virtual void replaceChild(WebLayer* reference, WebLayer* newLayer) = 0; | 68 virtual void replaceChild(WebLayer* reference, WebLayer* newLayer) = 0; |
70 virtual void removeFromParent() = 0; | 69 virtual void removeFromParent() = 0; |
71 virtual void removeAllChildren() = 0; | 70 virtual void removeAllChildren() = 0; |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 | 207 |
209 // True if the layer is not part of a tree attached to a WebLayerTreeView. | 208 // True if the layer is not part of a tree attached to a WebLayerTreeView. |
210 virtual bool isOrphan() const = 0; | 209 virtual bool isOrphan() const = 0; |
211 | 210 |
212 virtual void setWebLayerClient(WebLayerClient*) = 0; | 211 virtual void setWebLayerClient(WebLayerClient*) = 0; |
213 }; | 212 }; |
214 | 213 |
215 } // namespace blink | 214 } // namespace blink |
216 | 215 |
217 #endif // WebLayer_h | 216 #endif // WebLayer_h |
OLD | NEW |