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

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

Issue 1648293003: Fix smooth scroll jump when switching scroll handling between MT and CC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: skip irrelevant test on mac Created 4 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 194
195 // To set a WebLayer as scrollable we must specify the corresponding clip la yer. 195 // To set a WebLayer as scrollable we must specify the corresponding clip la yer.
196 virtual void setScrollClipLayer(WebLayer*) = 0; 196 virtual void setScrollClipLayer(WebLayer*) = 0;
197 virtual bool scrollable() const = 0; 197 virtual bool scrollable() const = 0;
198 virtual void setUserScrollable(bool horizontal, bool vertical) = 0; 198 virtual void setUserScrollable(bool horizontal, bool vertical) = 0;
199 virtual bool userScrollableHorizontal() const = 0; 199 virtual bool userScrollableHorizontal() const = 0;
200 virtual bool userScrollableVertical() const = 0; 200 virtual bool userScrollableVertical() const = 0;
201 201
202 // Indicates that this layer will always scroll on the main thread for the p rovided reason. 202 // Indicates that this layer will always scroll on the main thread for the p rovided reason.
203 virtual void addMainThreadScrollingReasons(uint32_t) = 0; 203 virtual void addMainThreadScrollingReasons(uint32_t) = 0;
204 // Indicates that the layer could scroll on the compositor thread. 204 virtual void clearMainThreadScrollingReasons(uint32_t mainThreadScrollingRea sonsToClear) = 0;
205 virtual void clearMainThreadScrollingReasons() = 0; 205 virtual uint32_t mainThreadScrollingReasons() = 0;
206 virtual bool shouldScrollOnMainThread() const = 0; 206 virtual bool shouldScrollOnMainThread() const = 0;
207 207
208 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0; 208 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0;
209 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0; 209 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0;
210 210
211 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0; 211 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0;
212 virtual WebVector<WebRect> touchEventHandlerRegion() const = 0; 212 virtual WebVector<WebRect> touchEventHandlerRegion() const = 0;
213 213
214 // Setter and getter for Frame Timing rects. 214 // Setter and getter for Frame Timing rects.
215 // See http://w3c.github.io/frame-timing/ for definition of terms. 215 // See http://w3c.github.io/frame-timing/ for definition of terms.
(...skipping 28 matching lines...) Expand all
244 virtual void setElementId(uint64_t) = 0; 244 virtual void setElementId(uint64_t) = 0;
245 virtual uint64_t elementId() const = 0; 245 virtual uint64_t elementId() const = 0;
246 246
247 virtual void setCompositorMutableProperties(uint32_t) = 0; 247 virtual void setCompositorMutableProperties(uint32_t) = 0;
248 virtual uint32_t compositorMutableProperties() const = 0; 248 virtual uint32_t compositorMutableProperties() const = 0;
249 }; 249 };
250 250
251 } // namespace blink 251 } // namespace blink
252 252
253 #endif // WebLayer_h 253 #endif // WebLayer_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698