| 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 11 matching lines...) Expand all Loading... |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 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 "WebDoublePoint.h" | 32 #include "WebFloatPoint.h" |
| 33 #include "WebFloatPoint3D.h" | 33 #include "WebFloatPoint3D.h" |
| 34 #include "WebFloatSize.h" | 34 #include "WebFloatSize.h" |
| 35 #include "WebPoint.h" | 35 #include "WebPoint.h" |
| 36 #include "WebRect.h" | 36 #include "WebRect.h" |
| 37 #include "WebSize.h" | 37 #include "WebSize.h" |
| 38 #include "WebString.h" | 38 #include "WebString.h" |
| 39 #include "WebVector.h" | 39 #include "WebVector.h" |
| 40 | 40 |
| 41 class SkMatrix44; | 41 class SkMatrix44; |
| 42 | 42 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 // delta and offset even though it will not be a descendant of the scroll | 151 // delta and offset even though it will not be a descendant of the scroll |
| 152 // in the layer hierarchy. | 152 // in the layer hierarchy. |
| 153 virtual void setScrollParent(WebLayer*) = 0; | 153 virtual void setScrollParent(WebLayer*) = 0; |
| 154 | 154 |
| 155 // A layer will not respect any clips established by layers between it and | 155 // A layer will not respect any clips established by layers between it and |
| 156 // its nearest clipping ancestor. Note, the clip parent must be an ancestor. | 156 // its nearest clipping ancestor. Note, the clip parent must be an ancestor. |
| 157 // This is not a requirement of the scroll parent. | 157 // This is not a requirement of the scroll parent. |
| 158 virtual void setClipParent(WebLayer*) = 0; | 158 virtual void setClipParent(WebLayer*) = 0; |
| 159 | 159 |
| 160 // Scrolling | 160 // Scrolling |
| 161 virtual void setScrollPositionDouble(WebDoublePoint) = 0; | 161 virtual void setScrollPosition(WebFloatPoint) = 0; |
| 162 virtual WebDoublePoint scrollPositionDouble() const = 0; | 162 virtual WebFloatPoint scrollPosition() const = 0; |
| 163 | 163 |
| 164 // To set a WebLayer as scrollable we must specify the corresponding clip | 164 // To set a WebLayer as scrollable we must specify the corresponding clip |
| 165 // layer. | 165 // layer. |
| 166 virtual void setScrollClipLayer(WebLayer*) = 0; | 166 virtual void setScrollClipLayer(WebLayer*) = 0; |
| 167 virtual bool scrollable() const = 0; | 167 virtual bool scrollable() const = 0; |
| 168 virtual void setUserScrollable(bool horizontal, bool vertical) = 0; | 168 virtual void setUserScrollable(bool horizontal, bool vertical) = 0; |
| 169 virtual bool userScrollableHorizontal() const = 0; | 169 virtual bool userScrollableHorizontal() const = 0; |
| 170 virtual bool userScrollableVertical() const = 0; | 170 virtual bool userScrollableVertical() const = 0; |
| 171 | 171 |
| 172 // Indicates that this layer will always scroll on the main thread for the | 172 // Indicates that this layer will always scroll on the main thread for the |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 virtual uint32_t compositorMutableProperties() const = 0; | 218 virtual uint32_t compositorMutableProperties() const = 0; |
| 219 | 219 |
| 220 virtual void setHasWillChangeTransformHint(bool) = 0; | 220 virtual void setHasWillChangeTransformHint(bool) = 0; |
| 221 virtual void setPreferredRasterBounds(const WebSize&) = 0; | 221 virtual void setPreferredRasterBounds(const WebSize&) = 0; |
| 222 virtual void clearPreferredRasterBounds() = 0; | 222 virtual void clearPreferredRasterBounds() = 0; |
| 223 }; | 223 }; |
| 224 | 224 |
| 225 } // namespace blink | 225 } // namespace blink |
| 226 | 226 |
| 227 #endif // WebLayer_h | 227 #endif // WebLayer_h |
| OLD | NEW |