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