| 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 140 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 setScrollOffset(WebFloatSize) = 0; |
| 162 virtual WebDoublePoint scrollPositionDouble() const = 0; | 162 virtual WebFloatSize scrollOffset() const = 0; |
| 163 | 163 |
| 164 // To set a WebLayer as scrollable we must specify the corresponding clip laye
r. | 164 // To set a WebLayer as scrollable we must specify the corresponding clip laye
r. |
| 165 virtual void setScrollClipLayer(WebLayer*) = 0; | 165 virtual void setScrollClipLayer(WebLayer*) = 0; |
| 166 virtual bool scrollable() const = 0; | 166 virtual bool scrollable() const = 0; |
| 167 virtual void setUserScrollable(bool horizontal, bool vertical) = 0; | 167 virtual void setUserScrollable(bool horizontal, bool vertical) = 0; |
| 168 virtual bool userScrollableHorizontal() const = 0; | 168 virtual bool userScrollableHorizontal() const = 0; |
| 169 virtual bool userScrollableVertical() const = 0; | 169 virtual bool userScrollableVertical() const = 0; |
| 170 | 170 |
| 171 // Indicates that this layer will always scroll on the main thread for the pro
vided reason. | 171 // Indicates that this layer will always scroll on the main thread for the pro
vided reason. |
| 172 virtual void addMainThreadScrollingReasons(uint32_t) = 0; | 172 virtual void addMainThreadScrollingReasons(uint32_t) = 0; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 | 214 |
| 215 virtual void setCompositorMutableProperties(uint32_t) = 0; | 215 virtual void setCompositorMutableProperties(uint32_t) = 0; |
| 216 virtual uint32_t compositorMutableProperties() const = 0; | 216 virtual uint32_t compositorMutableProperties() const = 0; |
| 217 | 217 |
| 218 virtual void setHasWillChangeTransformHint(bool) = 0; | 218 virtual void setHasWillChangeTransformHint(bool) = 0; |
| 219 }; | 219 }; |
| 220 | 220 |
| 221 } // namespace blink | 221 } // namespace blink |
| 222 | 222 |
| 223 #endif // WebLayer_h | 223 #endif // WebLayer_h |
| OLD | NEW |