OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // https://docs.google.com/document/d/1VnvAqeWFG9JFZfgG5evBqrLGDZYRE5w6G5jEDORek PY | 5 // https://docs.google.com/document/d/1VnvAqeWFG9JFZfgG5evBqrLGDZYRE5w6G5jEDORek PY |
6 | 6 |
7 [ | 7 [ |
8 Constructor(optional double deltaX = 0, | 8 Constructor(optional double deltaX = 0, |
9 optional double deltaY = 0, | 9 optional double deltaY = 0, |
10 optional double deltaGranularity = 0, | 10 optional long startPositionX = 0, |
11 optional double velocityX = 0, | 11 optional long startPositionY = 0, |
12 optional double velocityY = 0, | 12 optional double velocityX = 0, |
13 optional boolean inInertialPhase = false, | 13 optional double velocityY = 0, |
14 optional boolean isBeginning = false, | 14 optional boolean isBeginning = false, |
15 optional boolean isEnding = false), | 15 optional boolean inInertialPhase = false, |
16 WillBeGarbageCollected, | 16 optional boolean isEnding = false, |
17 RuntimeEnabled=ScrollCustomization | 17 optional boolean shouldPropagate = true, |
18 ] interface ScrollState { | 18 optional boolean fromUserInput = false, |
19 optional boolean isDirectManipulation = false, | |
20 optional double deltaGranularity = 0), | |
Ian Vollick
2016/02/08 18:30:35
nit: Could we pass a dictionary? There are quite a
| |
21 WillBeGarbageCollected, | |
22 RuntimeEnabled = ScrollCustomization, | |
23 ] interface ScrollState | |
24 { | |
19 readonly attribute double deltaX; | 25 readonly attribute double deltaX; |
20 readonly attribute double deltaY; | 26 readonly attribute double deltaY; |
21 readonly attribute double deltaGranularity; | 27 readonly attribute long startPositionX; |
28 readonly attribute long startPositionY; | |
22 readonly attribute double velocityX; | 29 readonly attribute double velocityX; |
23 readonly attribute double velocityY; | 30 readonly attribute double velocityY; |
31 readonly attribute boolean isBeginning; | |
24 readonly attribute boolean inInertialPhase; | 32 readonly attribute boolean inInertialPhase; |
25 readonly attribute boolean isEnding; | 33 readonly attribute boolean isEnding; |
26 readonly attribute boolean isBeginning; | 34 readonly attribute boolean shouldPropagate; |
27 readonly attribute boolean fromUserInput; | 35 readonly attribute boolean fromUserInput; |
28 readonly attribute boolean shouldPropagate; | 36 readonly attribute boolean isDirectManipulation; |
37 readonly attribute double deltaGranularity; | |
29 | 38 |
30 [RaisesException] void consumeDelta(double x, double y); | 39 [RaisesException] void consumeDelta(double x, double y); |
31 void distributeToScrollChainDescendant(); | 40 void distributeToScrollChainDescendant(); |
32 }; | 41 }; |
OLD | NEW |