| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 virtual void setShouldFlattenTransform(bool) = 0; | 90 virtual void setShouldFlattenTransform(bool) = 0; |
| 91 | 91 |
| 92 // Sets the id of the layer's 3d rendering context. Layers in the same 3d | 92 // Sets the id of the layer's 3d rendering context. Layers in the same 3d |
| 93 // rendering context id are sorted with one another according to their 3d | 93 // rendering context id are sorted with one another according to their 3d |
| 94 // position rather than their tree order. | 94 // position rather than their tree order. |
| 95 virtual void setRenderingContext(int id) = 0; | 95 virtual void setRenderingContext(int id) = 0; |
| 96 | 96 |
| 97 virtual void setBackgroundColor(WebColor) = 0; | 97 virtual void setBackgroundColor(WebColor) = 0; |
| 98 virtual WebColor backgroundColor() const = 0; | 98 virtual WebColor backgroundColor() const = 0; |
| 99 | 99 |
| 100 // Removes all animations with the given id. | |
| 101 virtual void removeAnimation(int animationId) = 0; | |
| 102 | |
| 103 // Pauses all animations with the given id. | |
| 104 virtual void pauseAnimation(int animationId, double timeOffset) = 0; | |
| 105 | |
| 106 // Returns true if this layer has any active animations - useful for tests. | |
| 107 virtual bool hasActiveAnimation() = 0; | |
| 108 | |
| 109 // If a scroll parent is set, this layer will inherit its parent's scroll | 100 // If a scroll parent is set, this layer will inherit its parent's scroll |
| 110 // delta and offset even though it will not be a descendant of the scroll | 101 // delta and offset even though it will not be a descendant of the scroll |
| 111 // in the layer hierarchy. | 102 // in the layer hierarchy. |
| 112 virtual void setScrollParent(WebLayer*) = 0; | 103 virtual void setScrollParent(WebLayer*) = 0; |
| 113 | 104 |
| 114 // A layer will not respect any clips established by layers between it and | 105 // A layer will not respect any clips established by layers between it and |
| 115 // its nearest clipping ancestor. Note, the clip parent must be an ancestor. | 106 // its nearest clipping ancestor. Note, the clip parent must be an ancestor. |
| 116 // This is not a requirement of the scroll parent. | 107 // This is not a requirement of the scroll parent. |
| 117 virtual void setClipParent(WebLayer*) = 0; | 108 virtual void setClipParent(WebLayer*) = 0; |
| 118 | 109 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 134 // so, but this is to facilitate benchmarks and tests. | 125 // so, but this is to facilitate benchmarks and tests. |
| 135 virtual void setForceRenderSurface(bool) = 0; | 126 virtual void setForceRenderSurface(bool) = 0; |
| 136 | 127 |
| 137 // True if the layer is not part of a tree attached to a WebLayerTreeView. | 128 // True if the layer is not part of a tree attached to a WebLayerTreeView. |
| 138 virtual bool isOrphan() const = 0; | 129 virtual bool isOrphan() const = 0; |
| 139 }; | 130 }; |
| 140 | 131 |
| 141 } // namespace blink | 132 } // namespace blink |
| 142 | 133 |
| 143 #endif // SKY_ENGINE_PUBLIC_PLATFORM_WEBLAYER_H_ | 134 #endif // SKY_ENGINE_PUBLIC_PLATFORM_WEBLAYER_H_ |
| OLD | NEW |