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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.h

Issue 2767213003: First Implementation of Snapped Points
Patch Set: Rebase and format Created 3 years, 6 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/Source/platform/graphics/GraphicsLayer.h
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
index 8ed6290d8515c53c48f23818811495dd396f11bf..0fb8c55f93558a2a6b5086ed646bfd9dfd4d43fd 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
@@ -50,6 +50,7 @@
#include "public/platform/WebContentLayer.h"
#include "public/platform/WebImageLayer.h"
#include "public/platform/WebLayerStickyPositionConstraint.h"
+#include "public/platform/WebSnapPointList.h"
#include "third_party/skia/include/core/SkFilterQuality.h"
#include "third_party/skia/include/core/SkRefCnt.h"
@@ -277,6 +278,8 @@ class PLATFORM_EXPORT GraphicsLayer : public cc::LayerClient,
void SetHasWillChangeTransformHint(bool);
+ void SetSnapOffsets(const WebSnapPointList&);
+
protected:
String DebugName(cc::Layer*) const;
bool ShouldFlattenTransform() const { return should_flatten_transform_; }
@@ -383,6 +386,9 @@ class PLATFORM_EXPORT GraphicsLayer : public cc::LayerClient,
Vector<LinkHighlight*> link_highlights_;
+ Vector<double> m_snapOffsetsH;
+ Vector<double> m_snapOffsetsV;
+
std::unique_ptr<ContentLayerDelegate> content_layer_delegate_;
WeakPersistent<ScrollableArea> scrollable_area_;

Powered by Google App Engine
This is Rietveld 408576698