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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 virtual void clearMainThreadScrollingReasons(uint32_t mainThreadScrollingRea
sonsToClear) = 0; | 168 virtual void clearMainThreadScrollingReasons(uint32_t mainThreadScrollingRea
sonsToClear) = 0; |
169 virtual uint32_t mainThreadScrollingReasons() = 0; | 169 virtual uint32_t mainThreadScrollingReasons() = 0; |
170 virtual bool shouldScrollOnMainThread() const = 0; | 170 virtual bool shouldScrollOnMainThread() const = 0; |
171 | 171 |
172 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0; | 172 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0; |
173 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0; | 173 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0; |
174 | 174 |
175 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0; | 175 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0; |
176 virtual WebVector<WebRect> touchEventHandlerRegion() const = 0; | 176 virtual WebVector<WebRect> touchEventHandlerRegion() const = 0; |
177 | 177 |
178 // Setter and getter for Frame Timing rects. | |
179 // See http://w3c.github.io/frame-timing/ for definition of terms. | |
180 virtual void setFrameTimingRequests(const WebVector<std::pair<int64_t, WebRe
ct>>&) = 0; | |
181 virtual WebVector<std::pair<int64_t, WebRect>> frameTimingRequests() const =
0; | |
182 | |
183 virtual void setIsContainerForFixedPositionLayers(bool) = 0; | 178 virtual void setIsContainerForFixedPositionLayers(bool) = 0; |
184 virtual bool isContainerForFixedPositionLayers() const = 0; | 179 virtual bool isContainerForFixedPositionLayers() const = 0; |
185 | 180 |
186 // This function sets layer position constraint. The constraint will be used | 181 // This function sets layer position constraint. The constraint will be used |
187 // to adjust layer position during threaded scrolling. | 182 // to adjust layer position during threaded scrolling. |
188 virtual void setPositionConstraint(const WebLayerPositionConstraint&) = 0; | 183 virtual void setPositionConstraint(const WebLayerPositionConstraint&) = 0; |
189 virtual WebLayerPositionConstraint positionConstraint() const = 0; | 184 virtual WebLayerPositionConstraint positionConstraint() const = 0; |
190 | 185 |
191 // The scroll client is notified when the scroll position of the WebLayer | 186 // The scroll client is notified when the scroll position of the WebLayer |
192 // changes. Only a single scroll client can be set for a WebLayer at a time. | 187 // changes. Only a single scroll client can be set for a WebLayer at a time. |
(...skipping 16 matching lines...) Expand all Loading... |
209 virtual void setElementId(uint64_t) = 0; | 204 virtual void setElementId(uint64_t) = 0; |
210 virtual uint64_t elementId() const = 0; | 205 virtual uint64_t elementId() const = 0; |
211 | 206 |
212 virtual void setCompositorMutableProperties(uint32_t) = 0; | 207 virtual void setCompositorMutableProperties(uint32_t) = 0; |
213 virtual uint32_t compositorMutableProperties() const = 0; | 208 virtual uint32_t compositorMutableProperties() const = 0; |
214 }; | 209 }; |
215 | 210 |
216 } // namespace blink | 211 } // namespace blink |
217 | 212 |
218 #endif // WebLayer_h | 213 #endif // WebLayer_h |
OLD | NEW |