OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 ScrollStateData_h |
| 6 #define ScrollStateData_h |
| 7 |
| 8 #include "cc/input/scroll_state.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 // A wrapper around cc's structure to expose it to core. |
| 13 struct ScrollStateData : public cc::ScrollStateData { |
| 14 ScrollStateData(double deltaX, |
| 15 double deltaY, |
| 16 int startPositionX, |
| 17 int startPositionY, |
| 18 double velocityX, |
| 19 double velocityY, |
| 20 bool isBeginning, |
| 21 bool isInInertialPhase, |
| 22 bool isEnding, |
| 23 bool shouldPropagate, |
| 24 bool fromUserInput, |
| 25 bool isDirectManipulation, |
| 26 double deltaGranularity, |
| 27 bool deltaConsumedForScrollSequence) |
| 28 : cc::ScrollStateData(deltaX, deltaY, startPositionX, startPositionY, |
| 29 velocityX, velocityY, isBeginning, isInInertialPhase, isEnding, |
| 30 shouldPropagate, fromUserInput, |
| 31 isDirectManipulation, deltaGranularity, deltaConsumedForScrollSequen
ce) |
| 32 { |
| 33 } |
| 34 |
| 35 ScrollStateData() |
| 36 : cc::ScrollStateData() |
| 37 { |
| 38 } |
| 39 }; |
| 40 |
| 41 } // namespace blink |
| 42 |
| 43 #endif |
OLD | NEW |