| 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 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 "WebCompositorAnimation.h" | 32 #include "WebCompositorAnimation.h" |
| 33 #include "WebDoublePoint.h" | 33 #include "WebDoublePoint.h" |
| 34 #include "WebFloatPoint3D.h" | 34 #include "WebFloatPoint3D.h" |
| 35 #include "WebMainThreadScrollingReason.h" | |
| 36 #include "WebPoint.h" | 35 #include "WebPoint.h" |
| 37 #include "WebRect.h" | 36 #include "WebRect.h" |
| 38 #include "WebScrollBlocksOn.h" | 37 #include "WebScrollBlocksOn.h" |
| 39 #include "WebSize.h" | 38 #include "WebSize.h" |
| 40 #include "WebString.h" | 39 #include "WebString.h" |
| 41 #include "WebVector.h" | 40 #include "WebVector.h" |
| 42 | 41 |
| 43 class SkMatrix44; | 42 class SkMatrix44; |
| 44 class SkImageFilter; | 43 class SkImageFilter; |
| 45 | 44 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 virtual bool userScrollableHorizontal() const = 0; | 201 virtual bool userScrollableHorizontal() const = 0; |
| 203 virtual bool userScrollableVertical() const = 0; | 202 virtual bool userScrollableVertical() const = 0; |
| 204 | 203 |
| 205 virtual void setHaveWheelEventHandlers(bool) = 0; | 204 virtual void setHaveWheelEventHandlers(bool) = 0; |
| 206 virtual bool haveWheelEventHandlers() const = 0; | 205 virtual bool haveWheelEventHandlers() const = 0; |
| 207 | 206 |
| 208 virtual void setHaveScrollEventHandlers(bool) = 0; | 207 virtual void setHaveScrollEventHandlers(bool) = 0; |
| 209 virtual bool haveScrollEventHandlers() const = 0; | 208 virtual bool haveScrollEventHandlers() const = 0; |
| 210 | 209 |
| 211 // Indicates that this layer will always scroll on the main thread for the p
rovided reason. | 210 // Indicates that this layer will always scroll on the main thread for the p
rovided reason. |
| 212 virtual void addMainThreadScrollingReasons(WebMainThreadScrollingReason::Web
MainThreadScrollingReason) = 0; | 211 virtual void addMainThreadScrollingReasons(uint32_t) = 0; |
| 213 // Indicates that the layer could scroll on the compositor thread. | 212 // Indicates that the layer could scroll on the compositor thread. |
| 214 virtual void clearMainThreadScrollingReasons() = 0; | 213 virtual void clearMainThreadScrollingReasons() = 0; |
| 215 virtual bool shouldScrollOnMainThread() const = 0; | 214 virtual bool shouldScrollOnMainThread() const = 0; |
| 216 | 215 |
| 217 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0; | 216 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0; |
| 218 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0; | 217 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0; |
| 219 | 218 |
| 220 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0; | 219 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0; |
| 221 virtual WebVector<WebRect> touchEventHandlerRegion() const = 0; | 220 virtual WebVector<WebRect> touchEventHandlerRegion() const = 0; |
| 222 | 221 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 virtual void setElementId(uint64_t) = 0; | 259 virtual void setElementId(uint64_t) = 0; |
| 261 virtual uint64_t elementId() const = 0; | 260 virtual uint64_t elementId() const = 0; |
| 262 | 261 |
| 263 virtual void setCompositorMutableProperties(uint32_t) = 0; | 262 virtual void setCompositorMutableProperties(uint32_t) = 0; |
| 264 virtual uint32_t compositorMutableProperties() const = 0; | 263 virtual uint32_t compositorMutableProperties() const = 0; |
| 265 }; | 264 }; |
| 266 | 265 |
| 267 } // namespace blink | 266 } // namespace blink |
| 268 | 267 |
| 269 #endif // WebLayer_h | 268 #endif // WebLayer_h |
| OLD | NEW |