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

Unified Diff: public/platform/WebLayer.h

Issue 1308273010: Adapt and reland old position sticky implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix style errors and remaining layout tests. Created 5 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: public/platform/WebLayer.h
diff --git a/public/platform/WebLayer.h b/public/platform/WebLayer.h
index 83089ca7248ee0fa599542965cbdc6f3bb3a497e..539f111aaf5f0417e909d81418e34a6ff2804b01 100644
--- a/public/platform/WebLayer.h
+++ b/public/platform/WebLayer.h
@@ -32,6 +32,7 @@
#include "WebCompositorAnimation.h"
#include "WebDoublePoint.h"
#include "WebFloatPoint3D.h"
+#include "WebLayerPositionConstraint.h"
#include "WebPoint.h"
#include "WebRect.h"
#include "WebScrollBlocksOn.h"
@@ -49,6 +50,7 @@ class WebLayerClient;
class WebLayerScrollClient;
struct WebFloatPoint;
struct WebLayerPositionConstraint;
+struct WebLayerStickyPositionConstraint;
class WebLayer {
public:
@@ -220,6 +222,10 @@ public:
virtual void setPositionConstraint(const WebLayerPositionConstraint&) = 0;
virtual WebLayerPositionConstraint positionConstraint() const = 0;
+ // FIXME: Make pure once cc is updated.
+ virtual void setStickyPositionConstraint(const WebLayerStickyPositionConstraint&) { };
+ virtual WebLayerStickyPositionConstraint stickyPositionConstraint() const { return WebLayerStickyPositionConstraint(); }
+
// 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

Powered by Google App Engine
This is Rietveld 408576698