| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 // These functions do not take ownership of the WebLayer* parameter. | 55 // These functions do not take ownership of the WebLayer* parameter. |
| 56 virtual void addChild(WebLayer*) = 0; | 56 virtual void addChild(WebLayer*) = 0; |
| 57 virtual void insertChild(WebLayer*, size_t index) = 0; | 57 virtual void insertChild(WebLayer*, size_t index) = 0; |
| 58 virtual void replaceChild(WebLayer* reference, WebLayer* newLayer) = 0; | 58 virtual void replaceChild(WebLayer* reference, WebLayer* newLayer) = 0; |
| 59 virtual void removeFromParent() = 0; | 59 virtual void removeFromParent() = 0; |
| 60 virtual void removeAllChildren() = 0; | 60 virtual void removeAllChildren() = 0; |
| 61 | 61 |
| 62 virtual void setBounds(const WebSize&) = 0; | 62 virtual void setBounds(const WebSize&) = 0; |
| 63 virtual WebSize bounds() const = 0; | 63 virtual WebSize bounds() const = 0; |
| 64 | 64 |
| 65 virtual void setMasksToBounds(bool) = 0; | |
| 66 virtual bool masksToBounds() const = 0; | |
| 67 | |
| 68 virtual void setMaskLayer(WebLayer*) = 0; | |
| 69 virtual void setReplicaLayer(WebLayer*) = 0; | 65 virtual void setReplicaLayer(WebLayer*) = 0; |
| 70 | 66 |
| 71 virtual void setOpacity(float) = 0; | 67 virtual void setOpacity(float) = 0; |
| 72 virtual float opacity() const = 0; | 68 virtual float opacity() const = 0; |
| 73 | 69 |
| 74 virtual void setBlendMode(WebBlendMode) = 0; | 70 virtual void setBlendMode(WebBlendMode) = 0; |
| 75 virtual WebBlendMode blendMode() const = 0; | 71 virtual WebBlendMode blendMode() const = 0; |
| 76 | 72 |
| 77 virtual void setOpaque(bool) = 0; | 73 virtual void setOpaque(bool) = 0; |
| 78 virtual bool opaque() const = 0; | 74 virtual bool opaque() const = 0; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // so, but this is to facilitate benchmarks and tests. | 143 // so, but this is to facilitate benchmarks and tests. |
| 148 virtual void setForceRenderSurface(bool) = 0; | 144 virtual void setForceRenderSurface(bool) = 0; |
| 149 | 145 |
| 150 // True if the layer is not part of a tree attached to a WebLayerTreeView. | 146 // True if the layer is not part of a tree attached to a WebLayerTreeView. |
| 151 virtual bool isOrphan() const = 0; | 147 virtual bool isOrphan() const = 0; |
| 152 }; | 148 }; |
| 153 | 149 |
| 154 } // namespace blink | 150 } // namespace blink |
| 155 | 151 |
| 156 #endif // SKY_ENGINE_PUBLIC_PLATFORM_WEBLAYER_H_ | 152 #endif // SKY_ENGINE_PUBLIC_PLATFORM_WEBLAYER_H_ |
| OLD | NEW |