| 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 15 matching lines...) Expand all Loading... |
| 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 "WebDoublePoint.h" |
| 33 #include "WebFloatPoint3D.h" | 33 #include "WebFloatPoint3D.h" |
| 34 #include "WebPoint.h" | 34 #include "WebPoint.h" |
| 35 #include "WebRect.h" | 35 #include "WebRect.h" |
| 36 #include "WebScrollBlocksOn.h" | |
| 37 #include "WebSize.h" | 36 #include "WebSize.h" |
| 38 #include "WebString.h" | 37 #include "WebString.h" |
| 39 #include "WebVector.h" | 38 #include "WebVector.h" |
| 40 | 39 |
| 41 class SkMatrix44; | 40 class SkMatrix44; |
| 42 class SkImageFilter; | 41 class SkImageFilter; |
| 43 | 42 |
| 44 namespace cc { | 43 namespace cc { |
| 45 class Layer; | 44 class Layer; |
| 46 class LayerClient; | 45 class LayerClient; |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0; | 213 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0; |
| 215 | 214 |
| 216 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0; | 215 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0; |
| 217 virtual WebVector<WebRect> touchEventHandlerRegion() const = 0; | 216 virtual WebVector<WebRect> touchEventHandlerRegion() const = 0; |
| 218 | 217 |
| 219 // Setter and getter for Frame Timing rects. | 218 // Setter and getter for Frame Timing rects. |
| 220 // See http://w3c.github.io/frame-timing/ for definition of terms. | 219 // See http://w3c.github.io/frame-timing/ for definition of terms. |
| 221 virtual void setFrameTimingRequests(const WebVector<std::pair<int64_t, WebRe
ct>>&) = 0; | 220 virtual void setFrameTimingRequests(const WebVector<std::pair<int64_t, WebRe
ct>>&) = 0; |
| 222 virtual WebVector<std::pair<int64_t, WebRect>> frameTimingRequests() const =
0; | 221 virtual WebVector<std::pair<int64_t, WebRect>> frameTimingRequests() const =
0; |
| 223 | 222 |
| 224 // FIXME: Make pure once cc is updated. crbug.com/347272 | |
| 225 virtual void setScrollBlocksOn(WebScrollBlocksOn) { } | |
| 226 virtual WebScrollBlocksOn scrollBlocksOn() const { return WebScrollBlocksOnN
one; } | |
| 227 | |
| 228 virtual void setIsContainerForFixedPositionLayers(bool) = 0; | 223 virtual void setIsContainerForFixedPositionLayers(bool) = 0; |
| 229 virtual bool isContainerForFixedPositionLayers() const = 0; | 224 virtual bool isContainerForFixedPositionLayers() const = 0; |
| 230 | 225 |
| 231 // This function sets layer position constraint. The constraint will be used | 226 // This function sets layer position constraint. The constraint will be used |
| 232 // to adjust layer position during threaded scrolling. | 227 // to adjust layer position during threaded scrolling. |
| 233 virtual void setPositionConstraint(const WebLayerPositionConstraint&) = 0; | 228 virtual void setPositionConstraint(const WebLayerPositionConstraint&) = 0; |
| 234 virtual WebLayerPositionConstraint positionConstraint() const = 0; | 229 virtual WebLayerPositionConstraint positionConstraint() const = 0; |
| 235 | 230 |
| 236 // The scroll client is notified when the scroll position of the WebLayer | 231 // The scroll client is notified when the scroll position of the WebLayer |
| 237 // changes. Only a single scroll client can be set for a WebLayer at a time. | 232 // changes. Only a single scroll client can be set for a WebLayer at a time. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 256 virtual void setElementId(uint64_t) = 0; | 251 virtual void setElementId(uint64_t) = 0; |
| 257 virtual uint64_t elementId() const = 0; | 252 virtual uint64_t elementId() const = 0; |
| 258 | 253 |
| 259 virtual void setCompositorMutableProperties(uint32_t) = 0; | 254 virtual void setCompositorMutableProperties(uint32_t) = 0; |
| 260 virtual uint32_t compositorMutableProperties() const = 0; | 255 virtual uint32_t compositorMutableProperties() const = 0; |
| 261 }; | 256 }; |
| 262 | 257 |
| 263 } // namespace blink | 258 } // namespace blink |
| 264 | 259 |
| 265 #endif // WebLayer_h | 260 #endif // WebLayer_h |
| OLD | NEW |