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 // delta and offset even though it will not be a descendant of the scroll | 155 // delta and offset even though it will not be a descendant of the scroll |
156 // in the layer hierarchy. | 156 // in the layer hierarchy. |
157 virtual void setScrollParent(WebLayer*) = 0; | 157 virtual void setScrollParent(WebLayer*) = 0; |
158 | 158 |
159 // A layer will not respect any clips established by layers between it and | 159 // A layer will not respect any clips established by layers between it and |
160 // its nearest clipping ancestor. Note, the clip parent must be an ancestor. | 160 // its nearest clipping ancestor. Note, the clip parent must be an ancestor. |
161 // This is not a requirement of the scroll parent. | 161 // This is not a requirement of the scroll parent. |
162 virtual void setClipParent(WebLayer*) = 0; | 162 virtual void setClipParent(WebLayer*) = 0; |
163 | 163 |
164 // Scrolling | 164 // Scrolling |
165 virtual void setScrollPositionDouble(WebDoublePoint) = 0; | 165 virtual void setScrollPositionDouble(WebDoublePoint) = 0; |
Rick Byers
2015/01/29 20:53:13
will we be changing this back to integer then? If
| |
166 virtual WebDoublePoint scrollPositionDouble() const = 0; | 166 virtual WebDoublePoint scrollPositionDouble() const = 0; |
167 virtual void setScrollPositionFractionalPart(WebDoublePoint) = 0; | |
167 | 168 |
168 // To set a WebLayer as scrollable we must specify the corresponding clip la yer. | 169 // To set a WebLayer as scrollable we must specify the corresponding clip la yer. |
169 virtual void setScrollClipLayer(WebLayer*) = 0; | 170 virtual void setScrollClipLayer(WebLayer*) = 0; |
170 virtual bool scrollable() const = 0; | 171 virtual bool scrollable() const = 0; |
171 virtual void setUserScrollable(bool horizontal, bool vertical) = 0; | 172 virtual void setUserScrollable(bool horizontal, bool vertical) = 0; |
172 virtual bool userScrollableHorizontal() const = 0; | 173 virtual bool userScrollableHorizontal() const = 0; |
173 virtual bool userScrollableVertical() const = 0; | 174 virtual bool userScrollableVertical() const = 0; |
174 | 175 |
175 virtual void setHaveWheelEventHandlers(bool) = 0; | 176 virtual void setHaveWheelEventHandlers(bool) = 0; |
176 virtual bool haveWheelEventHandlers() const = 0; | 177 virtual bool haveWheelEventHandlers() const = 0; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
212 | 213 |
213 // True if the layer is not part of a tree attached to a WebLayerTreeView. | 214 // True if the layer is not part of a tree attached to a WebLayerTreeView. |
214 virtual bool isOrphan() const = 0; | 215 virtual bool isOrphan() const = 0; |
215 | 216 |
216 virtual void setWebLayerClient(WebLayerClient*) = 0; | 217 virtual void setWebLayerClient(WebLayerClient*) = 0; |
217 }; | 218 }; |
218 | 219 |
219 } // namespace blink | 220 } // namespace blink |
220 | 221 |
221 #endif // WebLayer_h | 222 #endif // WebLayer_h |
OLD | NEW |