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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 WebFloatRect&) = 0; |
| 62 virtual void invalidateRect(const WebRect&) = 0; |
62 | 63 |
63 // Sets the entire layer as invalid, i.e. needs to update its content. | 64 // Sets the entire layer as invalid, i.e. needs to update its content. |
64 virtual void invalidate() = 0; | 65 virtual void invalidate() = 0; |
65 | 66 |
66 // These functions do not take ownership of the WebLayer* parameter. | 67 // These functions do not take ownership of the WebLayer* parameter. |
67 virtual void addChild(WebLayer*) = 0; | 68 virtual void addChild(WebLayer*) = 0; |
68 virtual void insertChild(WebLayer*, size_t index) = 0; | 69 virtual void insertChild(WebLayer*, size_t index) = 0; |
69 virtual void replaceChild(WebLayer* reference, WebLayer* newLayer) = 0; | 70 virtual void replaceChild(WebLayer* reference, WebLayer* newLayer) = 0; |
70 virtual void removeFromParent() = 0; | 71 virtual void removeFromParent() = 0; |
71 virtual void removeAllChildren() = 0; | 72 virtual void removeAllChildren() = 0; |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 | 209 |
209 // True if the layer is not part of a tree attached to a WebLayerTreeView. | 210 // True if the layer is not part of a tree attached to a WebLayerTreeView. |
210 virtual bool isOrphan() const = 0; | 211 virtual bool isOrphan() const = 0; |
211 | 212 |
212 virtual void setWebLayerClient(WebLayerClient*) = 0; | 213 virtual void setWebLayerClient(WebLayerClient*) = 0; |
213 }; | 214 }; |
214 | 215 |
215 } // namespace blink | 216 } // namespace blink |
216 | 217 |
217 #endif // WebLayer_h | 218 #endif // WebLayer_h |
OLD | NEW |