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

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

Issue 1239993005: Revert of Expose scroll customization for touch to JS (behind REF). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/input/EventHandler.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
22 // https://docs.google.com/document/d/1VnvAqeWFG9JFZfgG5evBqrLGDZYRE5w6G5jEDORek PY
23 // for details.
24 enum NativeScrollBehavior { "disable-native-scroll", "perform-before-native-scro ll", "perform-after-native-scroll" };
25
26 // https://dom.spec.whatwg.org/#interface-element 21 // https://dom.spec.whatwg.org/#interface-element
27 22
28 [ 23 [
29 TypeChecking=Interface, 24 TypeChecking=Interface,
30 ] interface Element : Node { 25 ] interface Element : Node {
31 readonly attribute DOMString? namespaceURI; 26 readonly attribute DOMString? namespaceURI;
32 readonly attribute DOMString? prefix; 27 readonly attribute DOMString? prefix;
33 readonly attribute DOMString localName; 28 readonly attribute DOMString localName;
34 readonly attribute DOMString tagName; 29 readonly attribute DOMString tagName;
35 30
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 readonly attribute long clientWidth; 96 readonly attribute long clientWidth;
102 readonly attribute long clientHeight; 97 readonly attribute long clientHeight;
103 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interfa ce 98 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interfa ce
104 // FIXME: offset* should only be on HTMLElement. crbug.com/504578 99 // FIXME: offset* should only be on HTMLElement. crbug.com/504578
105 [DeprecateAs=ElementOffsetParent, PerWorldBindings] readonly attribute Eleme nt? offsetParent; 100 [DeprecateAs=ElementOffsetParent, PerWorldBindings] readonly attribute Eleme nt? offsetParent;
106 [DeprecateAs=ElementOffsetTop] readonly attribute long offsetTop; 101 [DeprecateAs=ElementOffsetTop] readonly attribute long offsetTop;
107 [DeprecateAs=ElementOffsetLeft] readonly attribute long offsetLeft; 102 [DeprecateAs=ElementOffsetLeft] readonly attribute long offsetLeft;
108 [DeprecateAs=ElementOffsetWidth] readonly attribute long offsetWidth; 103 [DeprecateAs=ElementOffsetWidth] readonly attribute long offsetWidth;
109 [DeprecateAs=ElementOffsetHeight] readonly attribute long offsetHeight; 104 [DeprecateAs=ElementOffsetHeight] readonly attribute long offsetHeight;
110 105
111 // Scroll Customization API. See crbug.com/410974 for details.
112 [RuntimeEnabled=ScrollCustomization] void setApplyScroll(ScrollStateCallback scrollStateCallback, NativeScrollBehavior nativeScrollBehavior);
113 [RuntimeEnabled=ScrollCustomization] void setDistributeScroll(ScrollStateCal lback scrollStateCallback, NativeScrollBehavior nativeScrollBehavior);
114
115 // Non-standard APIs 106 // Non-standard APIs
116 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=19962 107 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=19962
117 [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] E lement insertAdjacentElement(DOMString where, Element element); 108 [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] E lement insertAdjacentElement(DOMString where, Element element);
118 [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText(DOMS tring where, DOMString text); 109 [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText(DOMS tring where, DOMString text);
119 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option al boolean centerIfNeeded); 110 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option al boolean centerIfNeeded);
120 [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSel ector] boolean webkitMatchesSelector(DOMString selectors); 111 [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSel ector] boolean webkitMatchesSelector(DOMString selectors);
121 112
122 // Experimental accessibility API 113 // Experimental accessibility API
123 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com putedRole; 114 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com putedRole;
124 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com putedName; 115 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com putedName;
(...skipping 10 matching lines...) Expand all
135 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; 126 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel;
136 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; 127 [RuntimeEnabled=Touch] attribute EventHandler ontouchend;
137 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; 128 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove;
138 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; 129 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart;
139 attribute EventHandler onwheel; 130 attribute EventHandler onwheel;
140 }; 131 };
141 132
142 Element implements ParentNode; 133 Element implements ParentNode;
143 Element implements ChildNode; 134 Element implements ChildNode;
144 Element implements NonDocumentTypeChildNode; 135 Element implements NonDocumentTypeChildNode;
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698