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

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

Issue 1236913004: Expose scroll customization for touch to JS (behind REF). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add to leak expectations. Created 5 years, 3 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
21 // https://dom.spec.whatwg.org/#interface-element 26 // https://dom.spec.whatwg.org/#interface-element
22 27
23 [ 28 [
24 TypeChecking=Interface, 29 TypeChecking=Interface,
25 ] interface Element : Node { 30 ] interface Element : Node {
26 readonly attribute DOMString? namespaceURI; 31 readonly attribute DOMString? namespaceURI;
27 readonly attribute DOMString? prefix; 32 readonly attribute DOMString? prefix;
28 readonly attribute DOMString localName; 33 readonly attribute DOMString localName;
29 readonly attribute DOMString tagName; 34 readonly attribute DOMString tagName;
30 35
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 readonly attribute long clientWidth; 101 readonly attribute long clientWidth;
97 readonly attribute long clientHeight; 102 readonly attribute long clientHeight;
98 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interfa ce 103 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interfa ce
99 // FIXME: offset* should only be on HTMLElement. crbug.com/504578 104 // FIXME: offset* should only be on HTMLElement. crbug.com/504578
100 [DeprecateAs=ElementOffsetParent, PerWorldBindings] readonly attribute Eleme nt? offsetParent; 105 [DeprecateAs=ElementOffsetParent, PerWorldBindings] readonly attribute Eleme nt? offsetParent;
101 [DeprecateAs=ElementOffsetTop] readonly attribute long offsetTop; 106 [DeprecateAs=ElementOffsetTop] readonly attribute long offsetTop;
102 [DeprecateAs=ElementOffsetLeft] readonly attribute long offsetLeft; 107 [DeprecateAs=ElementOffsetLeft] readonly attribute long offsetLeft;
103 [DeprecateAs=ElementOffsetWidth] readonly attribute long offsetWidth; 108 [DeprecateAs=ElementOffsetWidth] readonly attribute long offsetWidth;
104 [DeprecateAs=ElementOffsetHeight] readonly attribute long offsetHeight; 109 [DeprecateAs=ElementOffsetHeight] readonly attribute long offsetHeight;
105 110
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
106 // Non-standard APIs 115 // Non-standard APIs
107 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=19962 116 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=19962
108 [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] E lement insertAdjacentElement(DOMString where, Element element); 117 [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] E lement insertAdjacentElement(DOMString where, Element element);
109 [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText(DOMS tring where, DOMString text); 118 [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText(DOMS tring where, DOMString text);
110 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option al boolean centerIfNeeded); 119 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option al boolean centerIfNeeded);
111 [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSel ector] boolean webkitMatchesSelector(DOMString selectors); 120 [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSel ector] boolean webkitMatchesSelector(DOMString selectors);
112 121
113 // Experimental accessibility API 122 // Experimental accessibility API
114 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com putedRole; 123 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com putedRole;
115 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com putedName; 124 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com putedName;
(...skipping 10 matching lines...) Expand all
126 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; 135 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel;
127 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; 136 [RuntimeEnabled=Touch] attribute EventHandler ontouchend;
128 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; 137 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove;
129 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; 138 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart;
130 attribute EventHandler onwheel; 139 attribute EventHandler onwheel;
131 }; 140 };
132 141
133 Element implements ParentNode; 142 Element implements ParentNode;
134 Element implements ChildNode; 143 Element implements ChildNode;
135 Element implements NonDocumentTypeChildNode; 144 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