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

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

Issue 935583003: Add TypeChecking=Unrestricted to Document (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | no next file » | 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, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org> 3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org>
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 callback CustomElementConstructor = Element (); 21 callback CustomElementConstructor = Element ();
22 22
23 typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext; 23 typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;
24 24
25 // http://www.w3.org/TR/page-visibility/#VisibilityState 25 // http://www.w3.org/TR/page-visibility/#VisibilityState
26 enum VisibilityState { "hidden", "visible", "prerender", "unloaded" }; 26 enum VisibilityState { "hidden", "visible", "prerender", "unloaded" };
27 27
28 interface Document : Node { 28 [
29 TypeChecking=Unrestricted,
30 ] interface Document : Node {
29 31
30 // DOM Level 1 Core 32 // DOM Level 1 Core
31 readonly attribute DocumentType doctype; 33 readonly attribute DocumentType doctype;
32 readonly attribute DOMImplementation implementation; 34 readonly attribute DOMImplementation implementation;
33 readonly attribute Element documentElement; 35 readonly attribute Element documentElement;
34 36
35 [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createEl ement(DOMString tagName); 37 [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createEl ement(DOMString tagName);
36 DocumentFragment createDocumentFragment(); 38 DocumentFragment createDocumentFragment();
37 Text createTextNode(DOMString data); 39 Text createTextNode(DOMString data);
38 Comment createComment(DOMString data); 40 Comment createComment(DOMString data);
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 attribute EventHandler onselectstart; 179 attribute EventHandler onselectstart;
178 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; 180 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel;
179 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; 181 [RuntimeEnabled=Touch] attribute EventHandler ontouchend;
180 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; 182 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove;
181 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; 183 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart;
182 attribute EventHandler onwheel; 184 attribute EventHandler onwheel;
183 185
184 [RuntimeEnabled=Touch] Touch createTouch([Default=Undefined] optional Window window, 186 [RuntimeEnabled=Touch] Touch createTouch([Default=Undefined] optional Window window,
185 [Default=Undefined] optional EventT arget target, 187 [Default=Undefined] optional EventT arget target,
186 [Default=Undefined] optional long i dentifier, 188 [Default=Undefined] optional long i dentifier,
187 [Default=Undefined] optional double pageX, 189 [Default=Undefined] optional unrest ricted double pageX,
188 [Default=Undefined] optional double pageY, 190 [Default=Undefined] optional unrest ricted double pageY,
189 [Default=Undefined] optional double screenX, 191 [Default=Undefined] optional unrest ricted double screenX,
190 [Default=Undefined] optional double screenY, 192 [Default=Undefined] optional unrest ricted double screenY,
191 [Default=Undefined] optional double webkitRadiusX, 193 [Default=Undefined] optional unrest ricted double webkitRadiusX,
192 [Default=Undefined] optional double webkitRadiusY, 194 [Default=Undefined] optional unrest ricted double webkitRadiusY,
193 [Default=Undefined] optional float webkitRotationAngle, 195 [Default=Undefined] optional unrest ricted float webkitRotationAngle,
194 [Default=Undefined] optional float webkitForce); 196 [Default=Undefined] optional unrest ricted float webkitForce);
195 [RuntimeEnabled=Touch] TouchList createTouchList(Touch... touches); 197 [RuntimeEnabled=Touch] TouchList createTouchList(Touch... touches);
196 198
197 [CallWith=ScriptState, CustomElementCallbacks, RaisesException, MeasureAs=Do cumentRegisterElement] CustomElementConstructor registerElement(DOMString name, optional ElementRegistrationOptions options); 199 [CallWith=ScriptState, CustomElementCallbacks, RaisesException, MeasureAs=Do cumentRegisterElement] CustomElementConstructor registerElement(DOMString name, optional ElementRegistrationOptions options);
198 [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createEl ement(DOMString localName, DOMString? typeExtension); 200 [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createEl ement(DOMString localName, DOMString? typeExtension);
199 [CustomElementCallbacks, RaisesException] Element createElementNS(DOMString? namespaceURI, DOMString qualifiedName, DOMString? typeExtension); 201 [CustomElementCallbacks, RaisesException] Element createElementNS(DOMString? namespaceURI, DOMString qualifiedName, DOMString? typeExtension);
200 202
201 // Page visibility API. 203 // Page visibility API.
202 readonly attribute VisibilityState visibilityState; 204 readonly attribute VisibilityState visibilityState;
203 readonly attribute boolean hidden; 205 readonly attribute boolean hidden;
204 206
205 // Deprecated prefixed page visibility API. 207 // Deprecated prefixed page visibility API.
206 // TODO(davidben): This is a property so attaching a deprecation warning res ults in false positives when outputting 208 // TODO(davidben): This is a property so attaching a deprecation warning res ults in false positives when outputting
207 // document in the console. It's possible http://crbug.com/43394 will resolv e this. 209 // document in the console. It's possible http://crbug.com/43394 will resolv e this.
208 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a ttribute DOMString webkitVisibilityState; 210 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a ttribute DOMString webkitVisibilityState;
209 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute boolean webkitHidden; 211 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute boolean webkitHidden;
210 212
211 readonly attribute HTMLScriptElement currentScript; 213 readonly attribute HTMLScriptElement currentScript;
212 }; 214 };
213 215
214 Document implements GlobalEventHandlers; 216 Document implements GlobalEventHandlers;
215 Document implements ParentNode; 217 Document implements ParentNode;
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698