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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 virtual void setScrollClipLayer(WebLayer*) = 0; | 194 virtual void setScrollClipLayer(WebLayer*) = 0; |
195 virtual bool scrollable() const = 0; | 195 virtual bool scrollable() const = 0; |
196 virtual void setUserScrollable(bool horizontal, bool vertical) = 0; | 196 virtual void setUserScrollable(bool horizontal, bool vertical) = 0; |
197 virtual bool userScrollableHorizontal() const = 0; | 197 virtual bool userScrollableHorizontal() const = 0; |
198 virtual bool userScrollableVertical() const = 0; | 198 virtual bool userScrollableVertical() const = 0; |
199 | 199 |
200 // Indicates that this layer will always scroll on the main thread for the p
rovided reason. | 200 // Indicates that this layer will always scroll on the main thread for the p
rovided reason. |
201 virtual void addMainThreadScrollingReasons(uint32_t) = 0; | 201 virtual void addMainThreadScrollingReasons(uint32_t) = 0; |
202 // Indicates that the layer could scroll on the compositor thread. | 202 // Indicates that the layer could scroll on the compositor thread. |
203 virtual void clearMainThreadScrollingReasons() = 0; | 203 virtual void clearMainThreadScrollingReasons() = 0; |
| 204 virtual void clearMainThreadScrollingReasons(uint32_t mainThreadScrollingRea
sonsToClear) = 0; |
204 virtual bool shouldScrollOnMainThread() const = 0; | 205 virtual bool shouldScrollOnMainThread() const = 0; |
205 | 206 |
206 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0; | 207 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0; |
207 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0; | 208 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0; |
208 | 209 |
209 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0; | 210 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0; |
210 virtual WebVector<WebRect> touchEventHandlerRegion() const = 0; | 211 virtual WebVector<WebRect> touchEventHandlerRegion() const = 0; |
211 | 212 |
212 // Setter and getter for Frame Timing rects. | 213 // Setter and getter for Frame Timing rects. |
213 // See http://w3c.github.io/frame-timing/ for definition of terms. | 214 // See http://w3c.github.io/frame-timing/ for definition of terms. |
(...skipping 28 matching lines...) Expand all Loading... |
242 virtual void setElementId(uint64_t) = 0; | 243 virtual void setElementId(uint64_t) = 0; |
243 virtual uint64_t elementId() const = 0; | 244 virtual uint64_t elementId() const = 0; |
244 | 245 |
245 virtual void setCompositorMutableProperties(uint32_t) = 0; | 246 virtual void setCompositorMutableProperties(uint32_t) = 0; |
246 virtual uint32_t compositorMutableProperties() const = 0; | 247 virtual uint32_t compositorMutableProperties() const = 0; |
247 }; | 248 }; |
248 | 249 |
249 } // namespace blink | 250 } // namespace blink |
250 | 251 |
251 #endif // WebLayer_h | 252 #endif // WebLayer_h |
OLD | NEW |