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

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

Issue 361883004: Replace many [TreatReturnedNullStringAs=Null] with nullable DOMString (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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, 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,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 [CustomElementCallbacks, RaisesException, TypeChecking=Interface] Node impor tNode(Node node, optional boolean deep); 45 [CustomElementCallbacks, RaisesException, TypeChecking=Interface] Node impor tNode(Node node, optional boolean deep);
46 [CustomElementCallbacks, RaisesException] Element createElementNS([TreatNull As=NullString] DOMString namespaceURI, DOMString qualifiedName); 46 [CustomElementCallbacks, RaisesException] Element createElementNS([TreatNull As=NullString] DOMString namespaceURI, DOMString qualifiedName);
47 [RaisesException, DeprecateAs=DocumentCreateAttributeNS] Attr createAttribut eNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, 47 [RaisesException, DeprecateAs=DocumentCreateAttributeNS] Attr createAttribut eNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI,
48 [TreatNullAs=NullString,Default=Undefined] optional DOMString qualifiedName); // Removed from DOM4. 48 [TreatNullAs=NullString,Default=Undefined] optional DOMString qualifiedName); // Removed from DOM4.
49 HTMLCollection getElementsByTagNameNS([TreatNullAs=NullString] DOMString nam espaceURI, DOMString localName); 49 HTMLCollection getElementsByTagNameNS([TreatNullAs=NullString] DOMString nam espaceURI, DOMString localName);
50 [PerWorldBindings] Element getElementById(DOMString elementId); 50 [PerWorldBindings] Element getElementById(DOMString elementId);
51 51
52 // DOM Level 3 Core 52 // DOM Level 3 Core
53 53
54 [TreatReturnedNullStringAs=Null, MeasureAs=DocumentInputEncoding] readonly a ttribute DOMString inputEncoding; // Removed from DOM4. 54 [MeasureAs=DocumentInputEncoding] readonly attribute DOMString? inputEncodin g; // Removed from DOM4.
55 55
56 [TreatReturnedNullStringAs=Null, MeasureAs=DocumentXMLEncoding] readonly att ribute DOMString xmlEncoding; // Removed from DOM4. 56 [MeasureAs=DocumentXMLEncoding] readonly attribute DOMString? xmlEncoding; / / Removed from DOM4.
57 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, RaisesException=Set ter, MeasureAs=DocumentXMLVersion] attribute DOMString xmlVersion; // Removed fr om DOM4. 57 [RaisesException=Setter, MeasureAs=DocumentXMLVersion] attribute DOMString? xmlVersion; // Removed from DOM4.
58 [RaisesException=Setter, MeasureAs=DocumentXMLStandalone] attribute boolean xmlStandalone; // Removed from DOM4. 58 [RaisesException=Setter, MeasureAs=DocumentXMLStandalone] attribute boolean xmlStandalone; // Removed from DOM4.
59 59
60 [RaisesException, CustomElementCallbacks, TypeChecking=Interface] Node adopt Node(Node node); 60 [RaisesException, CustomElementCallbacks, TypeChecking=Interface] Node adopt Node(Node node);
61 61
62 [TreatReturnedNullStringAs=Null, ImplementedAs=url] readonly attribute DOMSt ring documentURI; 62 [ImplementedAs=url] readonly attribute DOMString? documentURI;
63 63
64 // DOM Level 2 Events (DocumentEvents interface) 64 // DOM Level 2 Events (DocumentEvents interface)
65 65
66 [RaisesException] Event createEvent(DOMString eventType); 66 [RaisesException] Event createEvent(DOMString eventType);
67 67
68 // DOM Level 2 Traversal and Range (DocumentRange interface) 68 // DOM Level 2 Traversal and Range (DocumentRange interface)
69 69
70 Range createRange(); 70 Range createRange();
71 71
72 // DOM Level 2 Traversal and Range (DocumentTraversal interface) 72 // DOM Level 2 Traversal and Range (DocumentTraversal interface)
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString readyStat e; 139 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString readyStat e;
140 140
141 Element elementFromPoint([Default=Undefined] optional long x, 141 Element elementFromPoint([Default=Undefined] optional long x,
142 [Default=Undefined] optional long y); 142 [Default=Undefined] optional long y);
143 [MeasureAs=DocumentCaretRangeFromPoint] 143 [MeasureAs=DocumentCaretRangeFromPoint]
144 Range caretRangeFromPoint([Default=Undefined] optional long x, 144 Range caretRangeFromPoint([Default=Undefined] optional long x,
145 [Default=Undefined] optional long y); 145 [Default=Undefined] optional long y);
146 146
147 // Mozilla extensions 147 // Mozilla extensions
148 Selection getSelection(); 148 Selection getSelection();
149 [TreatReturnedNullStringAs=Null] readonly attribute DOMString characterSet; 149 readonly attribute DOMString? characterSet;
150 150
151 // WebKit extensions 151 // WebKit extensions
152 152
153 [TreatReturnedNullStringAs=Null] readonly attribute DOMString preferredStyle sheetSet; 153 readonly attribute DOMString? preferredStylesheetSet;
154 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] attribute DOMString selectedStylesheetSet; 154 attribute DOMString? selectedStylesheetSet;
155 155
156 [MeasureAs=DocumentGetCSSCanvasContext] RenderingContext getCSSCanvasContext (DOMString contextId, DOMString name, long width, long height); 156 [MeasureAs=DocumentGetCSSCanvasContext] RenderingContext getCSSCanvasContext (DOMString contextId, DOMString name, long width, long height);
157 157
158 // HTML 5 158 // HTML 5
159 HTMLCollection getElementsByClassName(DOMString classNames); 159 HTMLCollection getElementsByClassName(DOMString classNames);
160 readonly attribute Element activeElement; 160 readonly attribute Element activeElement;
161 boolean hasFocus(); 161 boolean hasFocus();
162 162
163 readonly attribute DOMString compatMode; 163 readonly attribute DOMString compatMode;
164 164
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // TODO(davidben): This is a property so attaching a deprecation warning res ults in false positives when outputting 217 // TODO(davidben): This is a property so attaching a deprecation warning res ults in false positives when outputting
218 // document in the console. It's possible http://crbug.com/43394 will resolv e this. 218 // document in the console. It's possible http://crbug.com/43394 will resolv e this.
219 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a ttribute DOMString webkitVisibilityState; 219 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a ttribute DOMString webkitVisibilityState;
220 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute boolean webkitHidden; 220 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute boolean webkitHidden;
221 221
222 readonly attribute HTMLScriptElement currentScript; 222 readonly attribute HTMLScriptElement currentScript;
223 }; 223 };
224 224
225 Document implements GlobalEventHandlers; 225 Document implements GlobalEventHandlers;
226 Document implements ParentNode; 226 Document implements ParentNode;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698