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

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

Issue 1057603002: Expose scroll customization for touch to JS (behind REF). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 5 years, 6 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 // https://dom.spec.whatwg.org/#interface-element 21 // https://dom.spec.whatwg.org/#interface-element
22 22
23 callback ScrollStateCallback = void (ScrollState scrollState);
haraken 2015/06/09 00:07:13 Where is this callback used?
tdresser 2015/06/09 14:27:42 Whoops, removed.
24
23 [ 25 [
24 TypeChecking=Interface, 26 TypeChecking=Interface,
25 ] interface Element : Node { 27 ] interface Element : Node {
26 readonly attribute DOMString? namespaceURI; 28 readonly attribute DOMString? namespaceURI;
27 readonly attribute DOMString? prefix; 29 readonly attribute DOMString? prefix;
28 readonly attribute DOMString localName; 30 readonly attribute DOMString localName;
29 readonly attribute DOMString tagName; 31 readonly attribute DOMString tagName;
30 32
31 [Reflect, ExposeJSAccessors] attribute DOMString id; 33 [Reflect, ExposeJSAccessors] attribute DOMString id;
32 [Reflect=class] attribute DOMString className; 34 [Reflect=class] attribute DOMString className;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // FIXME: style should have [PutForwards=cssText]. 111 // FIXME: style should have [PutForwards=cssText].
110 [SameObject, PerWorldBindings] readonly attribute CSSStyleDeclaration style; 112 [SameObject, PerWorldBindings] readonly attribute CSSStyleDeclaration style;
111 113
112 // HTML 114 // HTML
113 // https://html.spec.whatwg.org/#htmlelement 115 // https://html.spec.whatwg.org/#htmlelement
114 // FIXME: dataset, focus() and blur() should be on HTMLElement. crbug.com/49 7274 116 // FIXME: dataset, focus() and blur() should be on HTMLElement. crbug.com/49 7274
115 [SameObject, PerWorldBindings] readonly attribute DOMStringMap dataset; 117 [SameObject, PerWorldBindings] readonly attribute DOMStringMap dataset;
116 void focus(); 118 void focus();
117 void blur(); 119 void blur();
118 120
121 // Scroll Customization API. See crbug.com/410974 for details.
122 [RuntimeEnabled=ScrollCustomization] void applyScroll(ScrollState scrollStat e);
123 [RuntimeEnabled=ScrollCustomization] void distributeScroll(ScrollState scrol lState);
124
119 // Non-standard APIs 125 // Non-standard APIs
120 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=19962 126 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=19962
121 [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] E lement insertAdjacentElement(DOMString where, Element element); 127 [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] E lement insertAdjacentElement(DOMString where, Element element);
122 [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText(DOMS tring where, DOMString text); 128 [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText(DOMS tring where, DOMString text);
123 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option al boolean centerIfNeeded); 129 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option al boolean centerIfNeeded);
124 [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSel ector] boolean webkitMatchesSelector(DOMString selectors); 130 [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSel ector] boolean webkitMatchesSelector(DOMString selectors);
125 131
126 // Experimental isTapStop API 132 // Experimental isTapStop API
127 [RuntimeEnabled=TabStopAttribute, MeasureAs=TabStopProperty] attribute boole an tabStop; 133 [RuntimeEnabled=TabStopAttribute, MeasureAs=TabStopProperty] attribute boole an tabStop;
128 134
(...skipping 13 matching lines...) Expand all
142 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; 148 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel;
143 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; 149 [RuntimeEnabled=Touch] attribute EventHandler ontouchend;
144 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; 150 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove;
145 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; 151 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart;
146 attribute EventHandler onwheel; 152 attribute EventHandler onwheel;
147 }; 153 };
148 154
149 Element implements ParentNode; 155 Element implements ParentNode;
150 Element implements ChildNode; 156 Element implements ChildNode;
151 Element implements NonDocumentTypeChildNode; 157 Element implements NonDocumentTypeChildNode;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698