| 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 ScrollStateInit scrollStateInit), | 8 Constructor(optional ScrollStateInit scrollStateInit), |
| 9 WillBeGarbageCollected, | 9 GarbageCollected, |
| 10 RuntimeEnabled = ScrollCustomization, | 10 RuntimeEnabled = ScrollCustomization, |
| 11 ] interface ScrollState | 11 ] interface ScrollState |
| 12 { | 12 { |
| 13 readonly attribute double deltaX; | 13 readonly attribute double deltaX; |
| 14 readonly attribute double deltaY; | 14 readonly attribute double deltaY; |
| 15 readonly attribute long startPositionX; | 15 readonly attribute long startPositionX; |
| 16 readonly attribute long startPositionY; | 16 readonly attribute long startPositionY; |
| 17 readonly attribute double velocityX; | 17 readonly attribute double velocityX; |
| 18 readonly attribute double velocityY; | 18 readonly attribute double velocityY; |
| 19 readonly attribute boolean isBeginning; | 19 readonly attribute boolean isBeginning; |
| 20 readonly attribute boolean inInertialPhase; | 20 readonly attribute boolean inInertialPhase; |
| 21 readonly attribute boolean isEnding; | 21 readonly attribute boolean isEnding; |
| 22 readonly attribute boolean shouldPropagate; | 22 readonly attribute boolean shouldPropagate; |
| 23 readonly attribute boolean fromUserInput; | 23 readonly attribute boolean fromUserInput; |
| 24 readonly attribute boolean isDirectManipulation; | 24 readonly attribute boolean isDirectManipulation; |
| 25 readonly attribute double deltaGranularity; | 25 readonly attribute double deltaGranularity; |
| 26 | 26 |
| 27 [RaisesException] void consumeDelta(double x, double y); | 27 [RaisesException] void consumeDelta(double x, double y); |
| 28 void distributeToScrollChainDescendant(); | 28 void distributeToScrollChainDescendant(); |
| 29 }; | 29 }; |
| OLD | NEW |