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

Unified Diff: third_party/WebKit/Source/core/page/scrolling/SnapCoordinator.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/core/page/scrolling/SnapCoordinator.h
diff --git a/third_party/WebKit/Source/core/page/scrolling/SnapCoordinator.h b/third_party/WebKit/Source/core/page/scrolling/SnapCoordinator.h
index c9f55585154c3f4bc568bd9f3ac6b1f7e5cca3df..cfa3fea56fc135c6df13ed88ecbfc88516d7fd5c 100644
--- a/third_party/WebKit/Source/core/page/scrolling/SnapCoordinator.h
+++ b/third_party/WebKit/Source/core/page/scrolling/SnapCoordinator.h
@@ -15,6 +15,9 @@ namespace blink {
class ContainerNode;
class LayoutBox;
struct LengthPoint;
+struct ScrollSnapType;
+struct ScrollSnapAlign;
+struct WebSnapPointList;
// Snap Coordinator keeps track of snap containers and all of their associated
// snap areas. It also contains the logic to generate the list of valid snap
@@ -39,8 +42,11 @@ class CORE_EXPORT SnapCoordinator final
DEFINE_INLINE_TRACE() {}
void SnapContainerDidChange(LayoutBox&, ScrollSnapType);
- void SnapAreaDidChange(LayoutBox&,
- const Vector<LengthPoint>& snap_coordinates);
+ /*void SnapAreaDidChange(LayoutBox&,
+ const Vector<LengthPoint>& snap_coordinates);*/
+ void SnapAreaDidChange(LayoutBox&, ScrollSnapAlign);
+
+ WebSnapPointList SnapOffsets(const ContainerNode&);
#ifndef NDEBUG
void ShowSnapAreaMap();
@@ -50,8 +56,7 @@ class CORE_EXPORT SnapCoordinator final
private:
friend class SnapCoordinatorTest;
explicit SnapCoordinator();
-
- Vector<double> SnapOffsets(const ContainerNode&, ScrollbarOrientation);
+ // Vector<double> SnapOffsets(const ContainerNode&, ScrollbarOrientation);
HashSet<const LayoutBox*> snap_containers_;
};

Powered by Google App Engine
This is Rietveld 408576698