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

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

Issue 936503003: Add TypeChecking=Unrestricted to Element and Window interfaces (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added Window too. Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/frame/Window.idl » ('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 interface Element : Node { 21 [
22 TypeChecking=Unrestricted,
23 ] interface Element : Node {
22 24
23 // DOM Level 1 Core 25 // DOM Level 1 Core
24 26
25 readonly attribute DOMString? tagName; 27 readonly attribute DOMString? tagName;
26 28
27 DOMString? getAttribute(DOMString name); 29 DOMString? getAttribute(DOMString name);
28 [RaisesException, CustomElementCallbacks] void setAttribute(DOMString name, DOMString value); 30 [RaisesException, CustomElementCallbacks] void setAttribute(DOMString name, DOMString value);
29 [CustomElementCallbacks] void removeAttribute(DOMString name); 31 [CustomElementCallbacks] void removeAttribute(DOMString name);
30 [MeasureAs=ElementGetAttributeNode] Attr getAttributeNode(DOMString name); 32 [MeasureAs=ElementGetAttributeNode] Attr getAttributeNode(DOMString name);
31 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNode] Attr setAttributeNode(Attr newAttr); 33 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNode] Attr setAttributeNode(Attr newAttr);
(...skipping 30 matching lines...) Expand all
62 readonly attribute long offsetLeft; 64 readonly attribute long offsetLeft;
63 readonly attribute long offsetTop; 65 readonly attribute long offsetTop;
64 readonly attribute long offsetWidth; 66 readonly attribute long offsetWidth;
65 readonly attribute long offsetHeight; 67 readonly attribute long offsetHeight;
66 [ImplementedAs=offsetParentForBindings, PerWorldBindings] readonly attribute Element offsetParent; 68 [ImplementedAs=offsetParentForBindings, PerWorldBindings] readonly attribute Element offsetParent;
67 readonly attribute long clientLeft; 69 readonly attribute long clientLeft;
68 readonly attribute long clientTop; 70 readonly attribute long clientTop;
69 readonly attribute long clientWidth; 71 readonly attribute long clientWidth;
70 readonly attribute long clientHeight; 72 readonly attribute long clientHeight;
71 73
72 attribute double scrollLeft; 74 attribute unrestricted double scrollLeft;
73 attribute double scrollTop; 75 attribute unrestricted double scrollTop;
74 readonly attribute long scrollWidth; 76 readonly attribute long scrollWidth;
75 readonly attribute long scrollHeight; 77 readonly attribute long scrollHeight;
76 78
77 [RuntimeEnabled=CSSOMSmoothScroll] void scroll(double x, double y); 79 [RuntimeEnabled=CSSOMSmoothScroll] void scroll(unrestricted double x, unrest ricted double y);
78 [RuntimeEnabled=CSSOMSmoothScroll] void scroll(optional ScrollToOptions scro llToOptions); 80 [RuntimeEnabled=CSSOMSmoothScroll] void scroll(optional ScrollToOptions scro llToOptions);
79 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(double x, double y); 81 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(unrestricted double x, unre stricted double y);
80 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(optional ScrollToOptions sc rollToOptions); 82 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(optional ScrollToOptions sc rollToOptions);
81 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(double x, double y); 83 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(unrestricted double x, unre stricted double y);
82 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(optional ScrollToOptions sc rollToOptions); 84 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(optional ScrollToOptions sc rollToOptions);
83 85
84 void focus(); 86 void focus();
85 void blur(); 87 void blur();
86 void scrollIntoView(optional boolean alignWithTop); 88 void scrollIntoView(optional boolean alignWithTop);
87 89
88 // WebKit extensions 90 // WebKit extensions
89 91
90 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option al boolean centerIfNeeded); 92 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option al boolean centerIfNeeded);
91 93
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; 135 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel;
134 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; 136 [RuntimeEnabled=Touch] attribute EventHandler ontouchend;
135 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; 137 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove;
136 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; 138 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart;
137 attribute EventHandler onwheel; 139 attribute EventHandler onwheel;
138 }; 140 };
139 141
140 Element implements ParentNode; 142 Element implements ParentNode;
141 Element implements ChildNode; 143 Element implements ChildNode;
142 Element implements NonDocumentTypeChildNode; 144 Element implements NonDocumentTypeChildNode;
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/Window.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698