Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(593)

Side by Side Diff: third_party/WebKit/public/platform/WebLayer.h

Issue 1646603004: Move scroll event handlers from layer to layer tree view. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_cc_listeners
Patch Set: Rebase against scroll blocks on Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 // this function and cc side would just work. 190 // this function and cc side would just work.
191 virtual void setScrollCompensationAdjustment(WebDoublePoint) = 0; 191 virtual void setScrollCompensationAdjustment(WebDoublePoint) = 0;
192 192
193 // To set a WebLayer as scrollable we must specify the corresponding clip la yer. 193 // To set a WebLayer as scrollable we must specify the corresponding clip la yer.
194 virtual void setScrollClipLayer(WebLayer*) = 0; 194 virtual void setScrollClipLayer(WebLayer*) = 0;
195 virtual bool scrollable() const = 0; 195 virtual bool scrollable() const = 0;
196 virtual void setUserScrollable(bool horizontal, bool vertical) = 0; 196 virtual void setUserScrollable(bool horizontal, bool vertical) = 0;
197 virtual bool userScrollableHorizontal() const = 0; 197 virtual bool userScrollableHorizontal() const = 0;
198 virtual bool userScrollableVertical() const = 0; 198 virtual bool userScrollableVertical() const = 0;
199 199
200 virtual void setHaveScrollEventHandlers(bool) = 0;
201 virtual bool haveScrollEventHandlers() const = 0;
202
203 // Indicates that this layer will always scroll on the main thread for the p rovided reason. 200 // Indicates that this layer will always scroll on the main thread for the p rovided reason.
204 virtual void addMainThreadScrollingReasons(uint32_t) = 0; 201 virtual void addMainThreadScrollingReasons(uint32_t) = 0;
205 // Indicates that the layer could scroll on the compositor thread. 202 // Indicates that the layer could scroll on the compositor thread.
206 virtual void clearMainThreadScrollingReasons() = 0; 203 virtual void clearMainThreadScrollingReasons() = 0;
207 virtual bool shouldScrollOnMainThread() const = 0; 204 virtual bool shouldScrollOnMainThread() const = 0;
208 205
209 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0; 206 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0;
210 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0; 207 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0;
211 208
212 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0; 209 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 virtual void setElementId(uint64_t) = 0; 245 virtual void setElementId(uint64_t) = 0;
249 virtual uint64_t elementId() const = 0; 246 virtual uint64_t elementId() const = 0;
250 247
251 virtual void setCompositorMutableProperties(uint32_t) = 0; 248 virtual void setCompositorMutableProperties(uint32_t) = 0;
252 virtual uint32_t compositorMutableProperties() const = 0; 249 virtual uint32_t compositorMutableProperties() const = 0;
253 }; 250 };
254 251
255 } // namespace blink 252 } // namespace blink
256 253
257 #endif // WebLayer_h 254 #endif // WebLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698