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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 // To set a WebLayer as scrollable we must specify the corresponding clip la
yer. | 176 // To set a WebLayer as scrollable we must specify the corresponding clip la
yer. |
177 virtual void setScrollClipLayer(WebLayer*) = 0; | 177 virtual void setScrollClipLayer(WebLayer*) = 0; |
178 virtual bool scrollable() const = 0; | 178 virtual bool scrollable() const = 0; |
179 virtual void setUserScrollable(bool horizontal, bool vertical) = 0; | 179 virtual void setUserScrollable(bool horizontal, bool vertical) = 0; |
180 virtual bool userScrollableHorizontal() const = 0; | 180 virtual bool userScrollableHorizontal() const = 0; |
181 virtual bool userScrollableVertical() const = 0; | 181 virtual bool userScrollableVertical() const = 0; |
182 | 182 |
183 virtual void setHaveWheelEventHandlers(bool) = 0; | 183 virtual void setHaveWheelEventHandlers(bool) = 0; |
184 virtual bool haveWheelEventHandlers() const = 0; | 184 virtual bool haveWheelEventHandlers() const = 0; |
185 | 185 |
| 186 virtual void setHaveScrollEventHandlers(bool) = 0; |
| 187 virtual bool haveScrollEventHandlers() const = 0; |
| 188 |
186 virtual void setShouldScrollOnMainThread(bool) = 0; | 189 virtual void setShouldScrollOnMainThread(bool) = 0; |
187 virtual bool shouldScrollOnMainThread() const = 0; | 190 virtual bool shouldScrollOnMainThread() const = 0; |
188 | 191 |
189 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0; | 192 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0; |
190 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0; | 193 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0; |
191 | 194 |
192 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0; | 195 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0; |
193 virtual WebVector<WebRect> touchEventHandlerRegion() const = 0; | 196 virtual WebVector<WebRect> touchEventHandlerRegion() const = 0; |
194 | 197 |
195 virtual void setIsContainerForFixedPositionLayers(bool) = 0; | 198 virtual void setIsContainerForFixedPositionLayers(bool) = 0; |
(...skipping 17 matching lines...) Expand all Loading... |
213 | 216 |
214 // True if the layer is not part of a tree attached to a WebLayerTreeView. | 217 // True if the layer is not part of a tree attached to a WebLayerTreeView. |
215 virtual bool isOrphan() const = 0; | 218 virtual bool isOrphan() const = 0; |
216 | 219 |
217 virtual void setWebLayerClient(WebLayerClient*) = 0; | 220 virtual void setWebLayerClient(WebLayerClient*) = 0; |
218 }; | 221 }; |
219 | 222 |
220 } // namespace blink | 223 } // namespace blink |
221 | 224 |
222 #endif // WebLayer_h | 225 #endif // WebLayer_h |
OLD | NEW |