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 |