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

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: finish animations on main 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // 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.
201 virtual void addMainThreadScrollingReasons(uint32_t) = 0; 201 virtual void addMainThreadScrollingReasons(uint32_t) = 0;
202 // Indicates that the layer could scroll on the compositor thread. 202 // Indicates that the layer could scroll on the compositor thread.
203 virtual void clearMainThreadScrollingReasons() = 0; 203 virtual void clearMainThreadScrollingReasons() = 0;
204 virtual void clearMainThreadScrollingReasons(uint32_t mainThreadScrollingRea sonsToClear) = 0;
204 virtual bool shouldScrollOnMainThread() const = 0; 205 virtual bool shouldScrollOnMainThread() const = 0;
205 206
206 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0; 207 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0;
207 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0; 208 virtual WebVector<WebRect> nonFastScrollableRegion() const = 0;
208 209
209 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0; 210 virtual void setTouchEventHandlerRegion(const WebVector<WebRect>&) = 0;
210 virtual WebVector<WebRect> touchEventHandlerRegion() const = 0; 211 virtual WebVector<WebRect> touchEventHandlerRegion() const = 0;
211 212
212 // Setter and getter for Frame Timing rects. 213 // Setter and getter for Frame Timing rects.
213 // See http://w3c.github.io/frame-timing/ for definition of terms. 214 // See http://w3c.github.io/frame-timing/ for definition of terms.
(...skipping 28 matching lines...) Expand all
242 virtual void setElementId(uint64_t) = 0; 243 virtual void setElementId(uint64_t) = 0;
243 virtual uint64_t elementId() const = 0; 244 virtual uint64_t elementId() const = 0;
244 245
245 virtual void setCompositorMutableProperties(uint32_t) = 0; 246 virtual void setCompositorMutableProperties(uint32_t) = 0;
246 virtual uint32_t compositorMutableProperties() const = 0; 247 virtual uint32_t compositorMutableProperties() const = 0;
247 }; 248 };
248 249
249 } // namespace blink 250 } // namespace blink
250 251
251 #endif // WebLayer_h 252 #endif // WebLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698