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

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

Issue 2769793002: Implement CSS: scroll-boundary-behavior (Closed)
Patch Set: Add documentation Created 3 years, 5 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
« no previous file with comments | « third_party/WebKit/public/platform/WebLayer.h ('k') | tools/metrics/histograms/enums.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebScrollBoundaryBehavior.h
diff --git a/third_party/WebKit/public/platform/WebScrollBoundaryBehavior.h b/third_party/WebKit/public/platform/WebScrollBoundaryBehavior.h
new file mode 100644
index 0000000000000000000000000000000000000000..0954d3b8a50cd5571b63d1e42a9cbd48b65d4c71
--- /dev/null
+++ b/third_party/WebKit/public/platform/WebScrollBoundaryBehavior.h
@@ -0,0 +1,31 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebScrollBoundaryBehavior_h
+#define WebScrollBoundaryBehavior_h
+
+#include "cc/input/scroll_boundary_behavior.h"
+
+using cc::ScrollBoundaryBehavior;
+
+namespace blink {
+
+// The scroll-boundary-behavior allows developers to specify whether the
+// scroll should be propagated to its ancestors at the beginning of the scroll,
+// and whether the overscroll should cause UI affordance such as glow/bounce
+// etc. See cc/input/scroll_boundary_behavior.h for detailed value description.
+struct WebScrollBoundaryBehavior : public ScrollBoundaryBehavior {
+ using ScrollBoundaryBehaviorType =
+ ScrollBoundaryBehavior::ScrollBoundaryBehaviorType;
+ WebScrollBoundaryBehavior() : ScrollBoundaryBehavior() {}
+ WebScrollBoundaryBehavior(ScrollBoundaryBehaviorType type)
+ : ScrollBoundaryBehavior(type) {}
+ WebScrollBoundaryBehavior(ScrollBoundaryBehaviorType x_type,
+ ScrollBoundaryBehaviorType y_type)
+ : ScrollBoundaryBehavior(x_type, y_type) {}
+};
+
+} // namespace blink
+
+#endif
« no previous file with comments | « third_party/WebKit/public/platform/WebLayer.h ('k') | tools/metrics/histograms/enums.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698