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 12 matching lines...) Expand all Loading... |
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef WebLayer_h | 26 #ifndef WebLayer_h |
27 #define WebLayer_h | 27 #define WebLayer_h |
28 | 28 |
29 #include "WebBlendMode.h" | 29 #include "WebBlendMode.h" |
30 #include "WebColor.h" | 30 #include "WebColor.h" |
31 #include "WebCommon.h" | 31 #include "WebCommon.h" |
32 #include "WebCompositorAnimation.h" | 32 #include "WebCompositorAnimation.h" |
| 33 #include "WebDoublePoint.h" |
33 #include "WebFloatPoint3D.h" | 34 #include "WebFloatPoint3D.h" |
34 #include "WebPoint.h" | 35 #include "WebPoint.h" |
35 #include "WebRect.h" | 36 #include "WebRect.h" |
36 #include "WebSize.h" | 37 #include "WebSize.h" |
37 #include "WebString.h" | 38 #include "WebString.h" |
38 #include "WebVector.h" | 39 #include "WebVector.h" |
39 | 40 |
40 class SkMatrix44; | 41 class SkMatrix44; |
41 class SkImageFilter; | 42 class SkImageFilter; |
42 | 43 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // 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 |
155 // in the layer hierarchy. | 156 // in the layer hierarchy. |
156 virtual void setScrollParent(WebLayer*) = 0; | 157 virtual void setScrollParent(WebLayer*) = 0; |
157 | 158 |
158 // 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 |
159 // 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. |
160 // This is not a requirement of the scroll parent. | 161 // This is not a requirement of the scroll parent. |
161 virtual void setClipParent(WebLayer*) = 0; | 162 virtual void setClipParent(WebLayer*) = 0; |
162 | 163 |
163 // Scrolling | 164 // Scrolling |
164 virtual void setScrollPosition(WebPoint) = 0; | 165 virtual void setScrollPositionDouble(WebDoublePoint) = 0; |
165 virtual WebPoint scrollPosition() const = 0; | 166 virtual WebDoublePoint scrollPositionDouble() const = 0; |
166 | 167 |
167 // To set a WebLayer as scrollable we must specify the corresponding clip la
yer. | 168 // To set a WebLayer as scrollable we must specify the corresponding clip la
yer. |
168 virtual void setScrollClipLayer(WebLayer*) = 0; | 169 virtual void setScrollClipLayer(WebLayer*) = 0; |
169 virtual bool scrollable() const = 0; | 170 virtual bool scrollable() const = 0; |
170 virtual void setUserScrollable(bool horizontal, bool vertical) = 0; | 171 virtual void setUserScrollable(bool horizontal, bool vertical) = 0; |
171 virtual bool userScrollableHorizontal() const = 0; | 172 virtual bool userScrollableHorizontal() const = 0; |
172 virtual bool userScrollableVertical() const = 0; | 173 virtual bool userScrollableVertical() const = 0; |
173 | 174 |
174 virtual void setHaveWheelEventHandlers(bool) = 0; | 175 virtual void setHaveWheelEventHandlers(bool) = 0; |
175 virtual bool haveWheelEventHandlers() const = 0; | 176 virtual bool haveWheelEventHandlers() const = 0; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 | 208 |
208 // True if the layer is not part of a tree attached to a WebLayerTreeView. | 209 // True if the layer is not part of a tree attached to a WebLayerTreeView. |
209 virtual bool isOrphan() const = 0; | 210 virtual bool isOrphan() const = 0; |
210 | 211 |
211 virtual void setWebLayerClient(WebLayerClient*) = 0; | 212 virtual void setWebLayerClient(WebLayerClient*) = 0; |
212 }; | 213 }; |
213 | 214 |
214 } // namespace blink | 215 } // namespace blink |
215 | 216 |
216 #endif // WebLayer_h | 217 #endif // WebLayer_h |
OLD | NEW |