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

Side by Side Diff: third_party/WebKit/Source/core/style/ScrollSnapPoints.h

Issue 2932593004: Update the snap points css properties (Closed)
Patch Set: Fix nits 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ScrollSnapPoints_h
6 #define ScrollSnapPoints_h
7
8 #include <memory>
9 #include "platform/Length.h"
10
11 namespace blink {
12
13 struct ScrollSnapPoints {
14 DISALLOW_NEW();
15
16 ScrollSnapPoints()
17 : repeat_offset(100, kPercent), has_repeat(false), uses_elements(false) {}
18
19 bool operator==(const ScrollSnapPoints& other) const {
20 return repeat_offset == other.repeat_offset &&
21 has_repeat == other.has_repeat &&
22 uses_elements == other.uses_elements;
23 }
24 bool operator!=(const ScrollSnapPoints& other) const {
25 return !(*this == other);
26 }
27
28 Length repeat_offset;
29 bool has_repeat;
30 bool uses_elements;
31 };
32
33 } // namespace blink
34
35 #endif // ScrollSnapPoints_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698