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

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

Issue 120373003: Revert of Make arguments to Element methods non-optional (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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 | « LayoutTests/fast/speech/bubble-position.html ('k') | 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, 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 [ 21 [
22 SpecialWrapFor=HTMLElement|SVGElement 22 SpecialWrapFor=HTMLElement|SVGElement
23 ] interface Element : Node { 23 ] interface Element : Node {
24 24
25 // DOM Level 1 Core 25 // DOM Level 1 Core
26 26
27 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing tagName; 27 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing tagName;
28 28
29 [TreatReturnedNullStringAs=Null] DOMString getAttribute(DOMString name); 29 [TreatReturnedNullStringAs=Null] DOMString getAttribute([Default=Undefined] optional DOMString name);
30 [RaisesException, CustomElementCallbacks] void setAttribute(DOMString name, DOMString value); 30 [RaisesException, CustomElementCallbacks] void setAttribute([Default=Undefin ed] optional DOMString name, [Default=Undefined] optional DOMString value);
31 [CustomElementCallbacks] void removeAttribute(DOMString name); 31 [CustomElementCallbacks] void removeAttribute([Default=Undefined] optional D OMString name);
32 [MeasureAs=ElementGetAttributeNode] Attr getAttributeNode([Default=Undefined ] optional DOMString name); // Removed from DOM4. 32 [MeasureAs=ElementGetAttributeNode] Attr getAttributeNode([Default=Undefined ] optional DOMString name); // Removed from DOM4.
33 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNode] Attr setAttributeNode([Default=Undefined, StrictTypeChecking] optional Attr new Attr); // Removed from DOM4. 33 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNode] Attr setAttributeNode([Default=Undefined, StrictTypeChecking] optional Attr new Attr); // Removed from DOM4.
34 [RaisesException, CustomElementCallbacks, MeasureAs=ElementRemoveAttributeNo de] Attr removeAttributeNode([Default=Undefined, StrictTypeChecking] optional At tr oldAttr); // Removed from DOM4. 34 [RaisesException, CustomElementCallbacks, MeasureAs=ElementRemoveAttributeNo de] Attr removeAttributeNode([Default=Undefined, StrictTypeChecking] optional At tr oldAttr); // Removed from DOM4.
35 [PerWorldBindings] NodeList getElementsByTagName(DOMString name); 35 [PerWorldBindings] NodeList getElementsByTagName([Default=Undefined] optiona l DOMString name);
36 36
37 [PerWorldBindings] readonly attribute NamedNodeMap attributes; 37 [PerWorldBindings] readonly attribute NamedNodeMap attributes;
38 [MeasureAs=HasAttributes] boolean hasAttributes(); 38 [MeasureAs=HasAttributes] boolean hasAttributes();
39 39
40 // DOM Level 2 Core 40 // DOM Level 2 Core
41 41
42 DOMString getAttributeNS([TreatNullAs=NullString] DOMString namespaceURI, DO MString localName); 42 DOMString getAttributeNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI,
43 [RaisesException, CustomElementCallbacks] void setAttributeNS([TreatNullAs=N ullString] DOMString namespaceURI, DOMString qualifiedName, DOMString value); 43 [Default=Undefined] optional DOMString localName);
44 [RaisesException, CustomElementCallbacks] void setAttributeNS([TreatNullAs=N ullString,Default=Undefined] optional DOMString namespaceURI,
45 [Default=Undef ined] optional DOMString qualifiedName,
46 [Default=Undef ined] optional DOMString value);
44 [CustomElementCallbacks] void removeAttributeNS([TreatNullAs=NullString] DOM String namespaceURI, DOMString localName); 47 [CustomElementCallbacks] void removeAttributeNS([TreatNullAs=NullString] DOM String namespaceURI, DOMString localName);
45 NodeList getElementsByTagNameNS([TreatNullAs=NullString] DOMString namespace URI, DOMString localName); 48 NodeList getElementsByTagNameNS([TreatNullAs=NullString,Default=Undefined] o ptional DOMString namespaceURI,
49 [Default=Undefined] optional DOMString local Name);
46 [MeasureAs=ElementGetAttributeNodeNS] Attr getAttributeNodeNS([TreatNullAs=N ullString,Default=Undefined] optional DOMString namespaceURI, 50 [MeasureAs=ElementGetAttributeNodeNS] Attr getAttributeNodeNS([TreatNullAs=N ullString,Default=Undefined] optional DOMString namespaceURI,
47 [Default=Undef ined] optional DOMString localName); // Removed from DOM4. 51 [Default=Undef ined] optional DOMString localName); // Removed from DOM4.
48 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNodeN S] Attr setAttributeNodeNS([Default=Undefined, StrictTypeChecking] optional Attr newAttr); // Removed from DOM4. 52 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNodeN S] Attr setAttributeNodeNS([Default=Undefined, StrictTypeChecking] optional Attr newAttr); // Removed from DOM4.
49 boolean hasAttribute(DOMString name); 53 boolean hasAttribute(DOMString name);
50 boolean hasAttributeNS([TreatNullAs=NullString] DOMString namespaceURI, DOMS tring localName); 54 boolean hasAttributeNS([TreatNullAs=NullString,Default=Undefined] optional D OMString namespaceURI,
55 [Default=Undefined] optional DOMString localName);
51 56
52 [PerWorldBindings] readonly attribute CSSStyleDeclaration style; 57 [PerWorldBindings] readonly attribute CSSStyleDeclaration style;
53 58
54 // DOM4 59 // DOM4
55 [Reflect] attribute DOMString id; 60 [Reflect] attribute DOMString id;
56 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing namespaceURI; 61 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing namespaceURI;
57 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, PerWorldBindings, R aisesException=Setter] attribute DOMString prefix; 62 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, PerWorldBindings, R aisesException=Setter] attribute DOMString prefix;
58 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing localName; 63 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing localName;
59 64
60 // Common extensions 65 // Common extensions
(...skipping 16 matching lines...) Expand all
77 void blur(); 82 void blur();
78 void scrollIntoView(optional boolean alignWithTop); 83 void scrollIntoView(optional boolean alignWithTop);
79 84
80 // WebKit extensions 85 // WebKit extensions
81 86
82 void scrollIntoViewIfNeeded(optional boolean centerIfNeeded); 87 void scrollIntoViewIfNeeded(optional boolean centerIfNeeded);
83 void scrollByLines([Default=Undefined] optional long lines); 88 void scrollByLines([Default=Undefined] optional long lines);
84 void scrollByPages([Default=Undefined] optional long pages); 89 void scrollByPages([Default=Undefined] optional long pages);
85 90
86 // HTML 5 91 // HTML 5
87 NodeList getElementsByClassName(DOMString classNames); 92 NodeList getElementsByClassName([Default=Undefined] optional DOMString name) ;
88 [TreatNullAs=NullString, CustomElementCallbacks, PerWorldBindings, ActivityL ogging=SetterForIsolatedWorlds, RaisesException=Setter] attribute DOMString inne rHTML; 93 [TreatNullAs=NullString, CustomElementCallbacks, PerWorldBindings, ActivityL ogging=SetterForIsolatedWorlds, RaisesException=Setter] attribute DOMString inne rHTML;
89 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] att ribute DOMString outerHTML; 94 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] att ribute DOMString outerHTML;
90 [CustomElementCallbacks, RaisesException] void insertAdjacentHTML(DOMString where, DOMString html); 95 [CustomElementCallbacks, RaisesException] void insertAdjacentHTML(DOMString where, DOMString html);
91 96
92 [Reflect=class, PerWorldBindings] attribute DOMString className; 97 [Reflect=class, PerWorldBindings] attribute DOMString className;
93 [PerWorldBindings] readonly attribute DOMTokenList classList; 98 [PerWorldBindings] readonly attribute DOMTokenList classList;
94 99
95 [PerWorldBindings] readonly attribute DOMStringMap dataset; 100 [PerWorldBindings] readonly attribute DOMStringMap dataset;
96 101
97 // NodeSelector - Selector API 102 // NodeSelector - Selector API
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; 147 [RuntimeEnabled=Touch] attribute EventHandler ontouchend;
143 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; 148 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove;
144 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; 149 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart;
145 attribute EventHandler onwebkitfullscreenchange; 150 attribute EventHandler onwebkitfullscreenchange;
146 attribute EventHandler onwebkitfullscreenerror; 151 attribute EventHandler onwebkitfullscreenerror;
147 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH andler onwheel; 152 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH andler onwheel;
148 }; 153 };
149 154
150 Element implements ParentNode; 155 Element implements ParentNode;
151 Element implements ChildNode; 156 Element implements ChildNode;
OLDNEW
« no previous file with comments | « LayoutTests/fast/speech/bubble-position.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698