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

Side by Side Diff: Source/core/dom/Element.idl

Issue 1209183004: Expose scroll customization for touch to JS (behind REF). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Clean up static map. Created 5 years, 5 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
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 // See https://goo.gl/1ipTpP for details.
22 enum NativeScrollBehavior { "disable-native-scroll", "perform-before-native-scro ll", "perform-after-native-scroll" };
23
21 // https://dom.spec.whatwg.org/#interface-element 24 // https://dom.spec.whatwg.org/#interface-element
22 25
23 [ 26 [
24 TypeChecking=Interface, 27 TypeChecking=Interface,
25 ] interface Element : Node { 28 ] interface Element : Node {
26 readonly attribute DOMString? namespaceURI; 29 readonly attribute DOMString? namespaceURI;
27 readonly attribute DOMString? prefix; 30 readonly attribute DOMString? prefix;
28 readonly attribute DOMString localName; 31 readonly attribute DOMString localName;
29 readonly attribute DOMString tagName; 32 readonly attribute DOMString tagName;
30 33
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 readonly attribute long clientWidth; 99 readonly attribute long clientWidth;
97 readonly attribute long clientHeight; 100 readonly attribute long clientHeight;
98 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interfa ce 101 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interfa ce
99 // FIXME: offset* should only be on HTMLElement. 102 // FIXME: offset* should only be on HTMLElement.
100 [MeasureAs=ElementOffsetParent, PerWorldBindings] readonly attribute Element ? offsetParent; 103 [MeasureAs=ElementOffsetParent, PerWorldBindings] readonly attribute Element ? offsetParent;
101 [MeasureAs=ElementOffsetTop] readonly attribute long offsetTop; 104 [MeasureAs=ElementOffsetTop] readonly attribute long offsetTop;
102 [MeasureAs=ElementOffsetLeft] readonly attribute long offsetLeft; 105 [MeasureAs=ElementOffsetLeft] readonly attribute long offsetLeft;
103 [MeasureAs=ElementOffsetWidth] readonly attribute long offsetWidth; 106 [MeasureAs=ElementOffsetWidth] readonly attribute long offsetWidth;
104 [MeasureAs=ElementOffsetHeight] readonly attribute long offsetHeight; 107 [MeasureAs=ElementOffsetHeight] readonly attribute long offsetHeight;
105 108
109 // Scroll Customization API. See crbug.com/410974 for details.
110 [RuntimeEnabled=ScrollCustomization] void setApplyScroll(ScrollStateCallback scrollStateCallback, NativeScrollBehavior nativeScrollBehavior);
111 [RuntimeEnabled=ScrollCustomization] void setDistributeScroll(ScrollStateCal lback scrollStateCallback, NativeScrollBehavior nativeScrollBehavior);
112
106 // Non-standard APIs 113 // Non-standard APIs
107 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=19962 114 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=19962
108 [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] E lement insertAdjacentElement(DOMString where, Element element); 115 [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] E lement insertAdjacentElement(DOMString where, Element element);
109 [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText(DOMS tring where, DOMString text); 116 [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText(DOMS tring where, DOMString text);
110 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option al boolean centerIfNeeded); 117 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option al boolean centerIfNeeded);
111 [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSel ector] boolean webkitMatchesSelector(DOMString selectors); 118 [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSel ector] boolean webkitMatchesSelector(DOMString selectors);
112 119
113 // Experimental accessibility API 120 // Experimental accessibility API
114 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com putedRole; 121 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com putedRole;
115 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com putedName; 122 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com putedName;
(...skipping 10 matching lines...) Expand all
126 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; 133 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel;
127 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; 134 [RuntimeEnabled=Touch] attribute EventHandler ontouchend;
128 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; 135 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove;
129 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; 136 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart;
130 attribute EventHandler onwheel; 137 attribute EventHandler onwheel;
131 }; 138 };
132 139
133 Element implements ParentNode; 140 Element implements ParentNode;
134 Element implements ChildNode; 141 Element implements ChildNode;
135 Element implements NonDocumentTypeChildNode; 142 Element implements NonDocumentTypeChildNode;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698