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 13 matching lines...) Expand all Loading... |
24 */ | 24 */ |
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 "WebEventListenerProperties.h" |
34 #include "WebFloatPoint3D.h" | 35 #include "WebFloatPoint3D.h" |
35 #include "WebPoint.h" | 36 #include "WebPoint.h" |
36 #include "WebRect.h" | 37 #include "WebRect.h" |
37 #include "WebScrollBlocksOn.h" | 38 #include "WebScrollBlocksOn.h" |
38 #include "WebSize.h" | 39 #include "WebSize.h" |
39 #include "WebString.h" | 40 #include "WebString.h" |
40 #include "WebVector.h" | 41 #include "WebVector.h" |
41 | 42 |
42 class SkMatrix44; | 43 class SkMatrix44; |
43 class SkImageFilter; | 44 class SkImageFilter; |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 // this function and cc side would just work. | 195 // this function and cc side would just work. |
195 virtual void setScrollCompensationAdjustment(WebDoublePoint) = 0; | 196 virtual void setScrollCompensationAdjustment(WebDoublePoint) = 0; |
196 | 197 |
197 // To set a WebLayer as scrollable we must specify the corresponding clip la
yer. | 198 // To set a WebLayer as scrollable we must specify the corresponding clip la
yer. |
198 virtual void setScrollClipLayer(WebLayer*) = 0; | 199 virtual void setScrollClipLayer(WebLayer*) = 0; |
199 virtual bool scrollable() const = 0; | 200 virtual bool scrollable() const = 0; |
200 virtual void setUserScrollable(bool horizontal, bool vertical) = 0; | 201 virtual void setUserScrollable(bool horizontal, bool vertical) = 0; |
201 virtual bool userScrollableHorizontal() const = 0; | 202 virtual bool userScrollableHorizontal() const = 0; |
202 virtual bool userScrollableVertical() const = 0; | 203 virtual bool userScrollableVertical() const = 0; |
203 | 204 |
204 virtual void setHaveWheelEventHandlers(bool) = 0; | 205 virtual void setTouchEventListenerProperties(WebEventListenerProperties) = 0
; |
205 virtual bool haveWheelEventHandlers() const = 0; | 206 virtual WebEventListenerProperties touchEventListenerProperties() const = 0; |
| 207 |
| 208 virtual void setWheelEventListenerProperties(WebEventListenerProperties) = 0
; |
| 209 virtual WebEventListenerProperties wheelEventListenerProperties() const = 0; |
206 | 210 |
207 virtual void setHaveScrollEventHandlers(bool) = 0; | 211 virtual void setHaveScrollEventHandlers(bool) = 0; |
208 virtual bool haveScrollEventHandlers() const = 0; | 212 virtual bool haveScrollEventHandlers() const = 0; |
209 | 213 |
210 virtual void setShouldScrollOnMainThread(bool) = 0; | 214 virtual void setShouldScrollOnMainThread(bool) = 0; |
211 virtual bool shouldScrollOnMainThread() const = 0; | 215 virtual bool shouldScrollOnMainThread() const = 0; |
212 | 216 |
213 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0; | 217 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0; |
214 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0; | 218 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0; |
215 | 219 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 virtual void setElementId(uint64_t) = 0; | 260 virtual void setElementId(uint64_t) = 0; |
257 virtual uint64_t elementId() const = 0; | 261 virtual uint64_t elementId() const = 0; |
258 | 262 |
259 virtual void setCompositorMutableProperties(uint32_t) = 0; | 263 virtual void setCompositorMutableProperties(uint32_t) = 0; |
260 virtual uint32_t compositorMutableProperties() const = 0; | 264 virtual uint32_t compositorMutableProperties() const = 0; |
261 }; | 265 }; |
262 | 266 |
263 } // namespace blink | 267 } // namespace blink |
264 | 268 |
265 #endif // WebLayer_h | 269 #endif // WebLayer_h |
OLD | NEW |