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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 192 |
193 virtual void setShouldScrollOnMainThread(bool) = 0; | 193 virtual void setShouldScrollOnMainThread(bool) = 0; |
194 virtual bool shouldScrollOnMainThread() const = 0; | 194 virtual bool shouldScrollOnMainThread() const = 0; |
195 | 195 |
196 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0; | 196 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0; |
197 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0; | 197 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0; |
198 | 198 |
199 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0; | 199 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0; |
200 virtual WebVector<WebRect> touchEventHandlerRegion() const = 0; | 200 virtual WebVector<WebRect> touchEventHandlerRegion() const = 0; |
201 | 201 |
| 202 // Setter and getter for Frame Timing rects. |
| 203 // See http://w3c.github.io/frame-timing/ for definition of terms. |
| 204 virtual void setFrameTimingRequests(const WebVector<std::pair<int64_t, WebRe
ct>>&) = 0; |
| 205 virtual WebVector<std::pair<int64_t, WebRect>> frameTimingRequests() const =
0; |
| 206 |
202 // FIXME: Make pure once cc is updated. crbug.com/347272 | 207 // FIXME: Make pure once cc is updated. crbug.com/347272 |
203 virtual void setScrollBlocksOn(WebScrollBlocksOn) { }; | 208 virtual void setScrollBlocksOn(WebScrollBlocksOn) { }; |
204 virtual WebScrollBlocksOn scrollBlocksOn() const { return WebScrollBlocksOnN
one;}; | 209 virtual WebScrollBlocksOn scrollBlocksOn() const { return WebScrollBlocksOnN
one;}; |
205 | 210 |
206 virtual void setIsContainerForFixedPositionLayers(bool) = 0; | 211 virtual void setIsContainerForFixedPositionLayers(bool) = 0; |
207 virtual bool isContainerForFixedPositionLayers() const = 0; | 212 virtual bool isContainerForFixedPositionLayers() const = 0; |
208 | 213 |
209 // This function sets layer position constraint. The constraint will be used | 214 // This function sets layer position constraint. The constraint will be used |
210 // to adjust layer position during threaded scrolling. | 215 // to adjust layer position during threaded scrolling. |
211 virtual void setPositionConstraint(const WebLayerPositionConstraint&) = 0; | 216 virtual void setPositionConstraint(const WebLayerPositionConstraint&) = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
224 | 229 |
225 // True if the layer is not part of a tree attached to a WebLayerTreeView. | 230 // True if the layer is not part of a tree attached to a WebLayerTreeView. |
226 virtual bool isOrphan() const = 0; | 231 virtual bool isOrphan() const = 0; |
227 | 232 |
228 virtual void setWebLayerClient(WebLayerClient*) = 0; | 233 virtual void setWebLayerClient(WebLayerClient*) = 0; |
229 }; | 234 }; |
230 | 235 |
231 } // namespace blink | 236 } // namespace blink |
232 | 237 |
233 #endif // WebLayer_h | 238 #endif // WebLayer_h |
OLD | NEW |