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

Side by Side 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698