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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollStateData.h

Issue 1646663002: Refactor Scroll Customization to share cc::ScrollStateData with blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix linking more. Created 4 years, 10 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/scroll/ScrollStateData.h
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollStateData.h b/third_party/WebKit/Source/platform/scroll/ScrollStateData.h
new file mode 100644
index 0000000000000000000000000000000000000000..a0548762b85d641a3ed1724e4def7323130bf787
--- /dev/null
+++ b/third_party/WebKit/Source/platform/scroll/ScrollStateData.h
@@ -0,0 +1,43 @@
+// Copyright 2016 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 ScrollStateData_h
+#define ScrollStateData_h
+
+#include "cc/input/scroll_state.h"
+
+namespace blink {
+
+// A wrapper around cc's structure to expose it to core.
+struct ScrollStateData : public cc::ScrollStateData {
+ ScrollStateData(double deltaX,
+ double deltaY,
+ int startPositionX,
+ int startPositionY,
+ double velocityX,
+ double velocityY,
+ bool isBeginning,
+ bool isInInertialPhase,
+ bool isEnding,
+ bool shouldPropagate,
+ bool fromUserInput,
+ bool isDirectManipulation,
+ double deltaGranularity,
+ bool deltaConsumedForScrollSequence)
+ : cc::ScrollStateData(deltaX, deltaY, startPositionX, startPositionY,
+ velocityX, velocityY, isBeginning, isInInertialPhase, isEnding,
+ shouldPropagate, fromUserInput,
+ isDirectManipulation, deltaGranularity, deltaConsumedForScrollSequence)
+ {
+ }
+
+ ScrollStateData()
+ : cc::ScrollStateData()
+ {
+ }
+};
+
+} // namespace blink
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698