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

Unified Diff: Source/core/page/scrolling/ScrollState.idl

Issue 850443002: Scroll Customization Prototype (Not for review, WIP) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase / cleanup / minor bug fixes Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/page/scrolling/ScrollState.cpp ('k') | Source/core/testing/Internals.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/scrolling/ScrollState.idl
diff --git a/Source/core/page/scrolling/ScrollState.idl b/Source/core/page/scrolling/ScrollState.idl
new file mode 100644
index 0000000000000000000000000000000000000000..17fdb319522402cf2efbe221067ccdbf57b0b8bc
--- /dev/null
+++ b/Source/core/page/scrolling/ScrollState.idl
@@ -0,0 +1,30 @@
+// Copyright 2014 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.
+
+// FIXME: Link to spec, once specified.
+
+[
+ Constructor(optional double deltaX = 0,
+ optional double deltaY = 0,
+ optional double deltaGranularity = 0,
+ optional double velocityX = 0,
+ optional double velocityY = 0,
+ optional boolean inInertialPhase = false,
+ optional boolean isEnding = false),
+ GarbageCollected,
+ RuntimeEnabled=ScrollCustomization
+] interface ScrollState {
+ readonly attribute double deltaX;
+ readonly attribute double deltaY;
+ readonly attribute double deltaGranularity;
+ readonly attribute double velocityX;
+ readonly attribute double velocityY;
+ readonly attribute boolean inInertialPhase;
+ readonly attribute boolean isEnding;
+ readonly attribute boolean fromUserInput;
+ readonly attribute boolean shouldPropagate;
+
+ [RaisesException] void consumeDelta(double x, double y);
+ void distributeToScrollChainDescendant();
+};
« no previous file with comments | « Source/core/page/scrolling/ScrollState.cpp ('k') | Source/core/testing/Internals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698