| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // Clear the filters in use by passing in a newly instantiated | 126 // Clear the filters in use by passing in a newly instantiated |
| 127 // WebFilterOperations object. | 127 // WebFilterOperations object. |
| 128 virtual void setFilters(const WebFilterOperations&) = 0; | 128 virtual void setFilters(const WebFilterOperations&) = 0; |
| 129 | 129 |
| 130 // An animation delegate is notified when animations are started and | 130 // An animation delegate is notified when animations are started and |
| 131 // stopped. The WebLayer does not take ownership of the delegate, and it is | 131 // stopped. The WebLayer does not take ownership of the delegate, and it is |
| 132 // the responsibility of the client to reset the layer's delegate before | 132 // the responsibility of the client to reset the layer's delegate before |
| 133 // deleting the delegate. | 133 // deleting the delegate. |
| 134 virtual void setAnimationDelegate(WebCompositorAnimationDelegate*) = 0; | 134 virtual void setAnimationDelegate(WebCompositorAnimationDelegate*) = 0; |
| 135 | 135 |
| 136 // Adds an id that will be used to permit animation of a layer property via |
| 137 // a worker thread animation. |
| 138 virtual void addAnimatedProperty(const WebString&) = 0; |
| 139 virtual void clearAnimatedProperties() = 0; |
| 136 | 140 |
| 137 // Returns false if the animation cannot be added. | 141 // Returns false if the animation cannot be added. |
| 138 // Takes ownership of the WebCompositorAnimation object. | 142 // Takes ownership of the WebCompositorAnimation object. |
| 139 virtual bool addAnimation(WebCompositorAnimation*) = 0; | 143 virtual bool addAnimation(WebCompositorAnimation*) = 0; |
| 140 | 144 |
| 141 // Removes all animations with the given id. | 145 // Removes all animations with the given id. |
| 142 virtual void removeAnimation(int animationId) = 0; | 146 virtual void removeAnimation(int animationId) = 0; |
| 143 | 147 |
| 144 // Removes all animations with the given id targeting the given property. | 148 // Removes all animations with the given id targeting the given property. |
| 145 virtual void removeAnimation(int animationId, WebCompositorAnimation::Target
Property) = 0; | 149 virtual void removeAnimation(int animationId, WebCompositorAnimation::Target
Property) = 0; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 | 211 |
| 208 // True if the layer is not part of a tree attached to a WebLayerTreeView. | 212 // True if the layer is not part of a tree attached to a WebLayerTreeView. |
| 209 virtual bool isOrphan() const = 0; | 213 virtual bool isOrphan() const = 0; |
| 210 | 214 |
| 211 virtual void setWebLayerClient(WebLayerClient*) = 0; | 215 virtual void setWebLayerClient(WebLayerClient*) = 0; |
| 212 }; | 216 }; |
| 213 | 217 |
| 214 } // namespace blink | 218 } // namespace blink |
| 215 | 219 |
| 216 #endif // WebLayer_h | 220 #endif // WebLayer_h |
| OLD | NEW |