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

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

Issue 1814013002: Visual viewport API initial implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(unrestricted double x, unre stricted double y); 98 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(unrestricted double x, unre stricted double y);
99 attribute unrestricted double scrollTop; 99 attribute unrestricted double scrollTop;
100 attribute unrestricted double scrollLeft; 100 attribute unrestricted double scrollLeft;
101 readonly attribute long scrollWidth; 101 readonly attribute long scrollWidth;
102 readonly attribute long scrollHeight; 102 readonly attribute long scrollHeight;
103 readonly attribute long clientTop; 103 readonly attribute long clientTop;
104 readonly attribute long clientLeft; 104 readonly attribute long clientLeft;
105 readonly attribute long clientWidth; 105 readonly attribute long clientWidth;
106 readonly attribute long clientHeight; 106 readonly attribute long clientHeight;
107 107
108 // Visual Viewport API.
109 [RuntimeEnabled=VisualViewportAPI] readonly attribute VisualViewport? viewpo rt;
110
108 // Scroll Customization API. See crbug.com/410974 for details. 111 // Scroll Customization API. See crbug.com/410974 for details.
109 [RuntimeEnabled=ScrollCustomization] void setApplyScroll(ScrollStateCallback scrollStateCallback, NativeScrollBehavior nativeScrollBehavior); 112 [RuntimeEnabled=ScrollCustomization] void setApplyScroll(ScrollStateCallback scrollStateCallback, NativeScrollBehavior nativeScrollBehavior);
110 [RuntimeEnabled=ScrollCustomization] void setDistributeScroll(ScrollStateCal lback scrollStateCallback, NativeScrollBehavior nativeScrollBehavior); 113 [RuntimeEnabled=ScrollCustomization] void setDistributeScroll(ScrollStateCal lback scrollStateCallback, NativeScrollBehavior nativeScrollBehavior);
111 114
112 // Non-standard APIs 115 // Non-standard APIs
113 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=19962 116 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=19962
114 [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] E lement insertAdjacentElement(DOMString where, Element element); 117 [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] E lement insertAdjacentElement(DOMString where, Element element);
115 [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText(DOMS tring where, DOMString text); 118 [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText(DOMS tring where, DOMString text);
116 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option al boolean centerIfNeeded); 119 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option al boolean centerIfNeeded);
117 [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSel ector] boolean webkitMatchesSelector(DOMString selectors); 120 [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSel ector] boolean webkitMatchesSelector(DOMString selectors);
(...skipping 15 matching lines...) Expand all
133 136
134 // Pointerevent attributes (http://www.w3.org/TR/pointerevents/#extensions-t o-the-element-interface) 137 // Pointerevent attributes (http://www.w3.org/TR/pointerevents/#extensions-t o-the-element-interface)
135 [RuntimeEnabled=PointerEvent] attribute EventHandler ongotpointercapture; 138 [RuntimeEnabled=PointerEvent] attribute EventHandler ongotpointercapture;
136 [RuntimeEnabled=PointerEvent] attribute EventHandler onlostpointercapture; 139 [RuntimeEnabled=PointerEvent] attribute EventHandler onlostpointercapture;
137 140
138 }; 141 };
139 142
140 Element implements ParentNode; 143 Element implements ParentNode;
141 Element implements ChildNode; 144 Element implements ChildNode;
142 Element implements NonDocumentTypeChildNode; 145 Element implements NonDocumentTypeChildNode;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698