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

Unified Diff: third_party/WebKit/public/platform/WebLayer.h

Issue 2251303003: Implement position: sticky updates on compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with master and add comments to WebLayerStickyPositionConstraint members. Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/public/platform/WebLayer.h
diff --git a/third_party/WebKit/public/platform/WebLayer.h b/third_party/WebKit/public/platform/WebLayer.h
index 340b05e64dfb2a50de9049766441aebfceeadce5..095267ce51ca6253ba7e0ba75e9bbfc4ca4a7fa3 100644
--- a/third_party/WebKit/public/platform/WebLayer.h
+++ b/third_party/WebKit/public/platform/WebLayer.h
@@ -53,6 +53,7 @@ namespace blink {
class WebLayerScrollClient;
struct WebFloatPoint;
struct WebLayerPositionConstraint;
+struct WebLayerStickyPositionConstraint;
class WebLayer {
public:
@@ -188,6 +189,11 @@ public:
virtual void setPositionConstraint(const WebLayerPositionConstraint&) = 0;
virtual WebLayerPositionConstraint positionConstraint() const = 0;
+ // Sets the sticky position constraint. This will be used to adjust sticky
+ // position objects during threaded scrolling.
+ virtual void setStickyPositionConstraint(const WebLayerStickyPositionConstraint&) = 0;
+ virtual WebLayerStickyPositionConstraint stickyPositionConstraint() const = 0;
+
// The scroll client is notified when the scroll position of the WebLayer
// changes. Only a single scroll client can be set for a WebLayer at a time.
// The WebLayer does not take ownership of the scroll client, and it is the
« no previous file with comments | « third_party/WebKit/public/BUILD.gn ('k') | third_party/WebKit/public/platform/WebLayerStickyPositionConstraint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698