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

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

Issue 2650343008: Implement Element.scrollIntoView for scroll-behavior: smooth. (Closed)
Patch Set: Add a short comment. Created 3 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,
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Pointer Lock 86 // Pointer Lock
87 // https://w3c.github.io/pointerlock/#extensions-to-the-element-interface 87 // https://w3c.github.io/pointerlock/#extensions-to-the-element-interface
88 [MeasureAs=ElementRequestPointerLock] void requestPointerLock(); 88 [MeasureAs=ElementRequestPointerLock] void requestPointerLock();
89 89
90 // CSSOM View Module 90 // CSSOM View Module
91 // https://dev.w3.org/csswg/cssom-view/#extension-to-the-element-interface 91 // https://dev.w3.org/csswg/cssom-view/#extension-to-the-element-interface
92 // FIXME: getClientRect() and getBoundingClientRect() should 92 // FIXME: getClientRect() and getBoundingClientRect() should
93 // return DOMRectList and DOMRect respectively. 93 // return DOMRectList and DOMRect respectively.
94 ClientRectList getClientRects(); 94 ClientRectList getClientRects();
95 ClientRect getBoundingClientRect(); 95 ClientRect getBoundingClientRect();
96 // FIXME: scrollIntoView() should have a ScrollIntoViewOptions dictionary ar gument. 96
97 void scrollIntoView(optional boolean alignWithTop); 97 void scrollIntoView(optional (ScrollIntoViewOptions or boolean)? arg);
98 [RuntimeEnabled=CSSOMSmoothScroll, ImplementedAs=scrollTo] void scroll(optio nal ScrollToOptions options); 98 [RuntimeEnabled=CSSOMSmoothScroll, ImplementedAs=scrollTo] void scroll(optio nal ScrollToOptions options);
99 [RuntimeEnabled=CSSOMSmoothScroll, ImplementedAs=scrollTo] void scroll(unres tricted double x, unrestricted double y); 99 [RuntimeEnabled=CSSOMSmoothScroll, ImplementedAs=scrollTo] void scroll(unres tricted double x, unrestricted double y);
100 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(optional ScrollToOptions op tions); 100 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(optional ScrollToOptions op tions);
101 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(unrestricted double x, unre stricted double y); 101 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(unrestricted double x, unre stricted double y);
102 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(optional ScrollToOptions op tions); 102 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(optional ScrollToOptions op tions);
103 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(unrestricted double x, unre stricted double y); 103 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(unrestricted double x, unre stricted double y);
104 attribute unrestricted double scrollTop; 104 attribute unrestricted double scrollTop;
105 attribute unrestricted double scrollLeft; 105 attribute unrestricted double scrollLeft;
106 readonly attribute long scrollWidth; 106 readonly attribute long scrollWidth;
107 readonly attribute long scrollHeight; 107 readonly attribute long scrollHeight;
(...skipping 30 matching lines...) Expand all
138 attribute EventHandler oncut; 138 attribute EventHandler oncut;
139 attribute EventHandler onpaste; 139 attribute EventHandler onpaste;
140 attribute EventHandler onsearch; 140 attribute EventHandler onsearch;
141 attribute EventHandler onselectstart; 141 attribute EventHandler onselectstart;
142 attribute EventHandler onwheel; 142 attribute EventHandler onwheel;
143 }; 143 };
144 144
145 Element implements ParentNode; 145 Element implements ParentNode;
146 Element implements ChildNode; 146 Element implements ChildNode;
147 Element implements NonDocumentTypeChildNode; 147 Element implements NonDocumentTypeChildNode;
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | third_party/WebKit/Source/core/frame/FrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698