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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
155 virtual void pauseAnimation(int animationId, double timeOffset) = 0; | 155 virtual void pauseAnimation(int animationId, double timeOffset) = 0; |
156 | 156 |
157 // The following functions suspend and resume all animations. The given time | 157 // The following functions suspend and resume all animations. The given time |
158 // is assumed to use the same time base as monotonicallyIncreasingTime(). | 158 // is assumed to use the same time base as monotonicallyIncreasingTime(). |
159 virtual void suspendAnimations(double monotonicTime) = 0; | 159 virtual void suspendAnimations(double monotonicTime) = 0; |
160 virtual void resumeAnimations(double monotonicTime) = 0; | 160 virtual void resumeAnimations(double monotonicTime) = 0; |
161 | 161 |
162 // Returns true if this layer has any active animations - useful for tests. | 162 // Returns true if this layer has any active animations - useful for tests. |
163 virtual bool hasActiveAnimation() = 0; | 163 virtual bool hasActiveAnimation() = 0; |
164 | 164 |
165 // If a scroll parent is set, this layer will inherit its parent's scroll | |
166 // delta and offset even though it will not be a descendant of the scroll | |
enne (OOO)
2013/08/22 20:54:30
"its parent's" => "its scroll parent's"?
"of the s
| |
167 // in the layer hierarchy. | |
168 virtual void setScrollParent(WebLayer*) { } | |
169 | |
170 // A layer will not respect any clips established by layers between it and | |
171 // its nearest clipping ancestor. Note, the clip parent must be an ancestor. | |
172 // This is not a requirement of the scroll parent. | |
173 virtual void setClipParent(WebLayer*) { } | |
174 | |
165 // Scrolling | 175 // Scrolling |
166 virtual void setScrollPosition(WebPoint) = 0; | 176 virtual void setScrollPosition(WebPoint) = 0; |
167 virtual WebPoint scrollPosition() const = 0; | 177 virtual WebPoint scrollPosition() const = 0; |
168 | 178 |
169 virtual void setMaxScrollPosition(WebSize) = 0; | 179 virtual void setMaxScrollPosition(WebSize) = 0; |
170 virtual WebSize maxScrollPosition() const = 0; | 180 virtual WebSize maxScrollPosition() const = 0; |
171 | 181 |
172 virtual void setScrollable(bool) = 0; | 182 virtual void setScrollable(bool) = 0; |
173 virtual bool scrollable() const = 0; | 183 virtual bool scrollable() const = 0; |
174 | 184 |
(...skipping 30 matching lines...) Expand all Loading... | |
205 | 215 |
206 // True if the layer is not part of a tree attached to a WebLayerTreeView. | 216 // True if the layer is not part of a tree attached to a WebLayerTreeView. |
207 virtual bool isOrphan() const = 0; | 217 virtual bool isOrphan() const = 0; |
208 | 218 |
209 virtual void setWebLayerClient(WebLayerClient*) = 0; | 219 virtual void setWebLayerClient(WebLayerClient*) = 0; |
210 }; | 220 }; |
211 | 221 |
212 } // namespace WebKit | 222 } // namespace WebKit |
213 | 223 |
214 #endif // WebLayer_h | 224 #endif // WebLayer_h |
OLD | NEW |