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

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

Issue 26466003: IDL compiler: [CustomElementCallbacks] for getter + cleanup values (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix Perl Created 7 years, 2 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
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([Default=Undefined] optional DOMString name); 29 [TreatReturnedNullStringAs=Null] DOMString getAttribute([Default=Undefined] optional DOMString name);
30 [RaisesException, CustomElementCallbacks=Enable] void setAttribute([Default= Undefined] optional DOMString name, 30 [RaisesException, CustomElementCallbacks] void setAttribute([Default=Undefin ed] optional DOMString name,
31 [Default=Undefined] optional DOMString valu e); 31 [Default=Undefined] optional DOMString valu e);
32 [CustomElementCallbacks=Enable] void removeAttribute([Default=Undefined] opt ional DOMString name); 32 [CustomElementCallbacks] void removeAttribute([Default=Undefined] optional D OMString name);
33 [MeasureAs=ElementGetAttributeNode] Attr getAttributeNode([Default=Undefined ] optional DOMString name); // Removed from DOM4. 33 [MeasureAs=ElementGetAttributeNode] Attr getAttributeNode([Default=Undefined ] optional DOMString name); // Removed from DOM4.
34 [RaisesException, CustomElementCallbacks=Enable, MeasureAs=ElementSetAttribu teNode] Attr setAttributeNode([Default=Undefined, StrictTypeChecking] optional A ttr newAttr); // Removed from DOM4. 34 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNode] Attr setAttributeNode([Default=Undefined, StrictTypeChecking] optional Attr new Attr); // Removed from DOM4.
35 [RaisesException, CustomElementCallbacks=Enable, MeasureAs=ElementRemoveAttr ibuteNode] Attr removeAttributeNode([Default=Undefined, StrictTypeChecking] opti onal Attr oldAttr); // Removed from DOM4. 35 [RaisesException, CustomElementCallbacks, MeasureAs=ElementRemoveAttributeNo de] Attr removeAttributeNode([Default=Undefined, StrictTypeChecking] optional At tr oldAttr); // Removed from DOM4.
36 [PerWorldBindings] NodeList getElementsByTagName([Default=Undefined] optiona l DOMString name); 36 [PerWorldBindings] NodeList getElementsByTagName([Default=Undefined] optiona l DOMString name);
37 37
38 [PerWorldBindings] readonly attribute NamedNodeMap attributes; 38 [PerWorldBindings] readonly attribute NamedNodeMap attributes;
39 [MeasureAs=HasAttributes] boolean hasAttributes(); 39 [MeasureAs=HasAttributes] boolean hasAttributes();
40 40
41 // DOM Level 2 Core 41 // DOM Level 2 Core
42 42
43 DOMString getAttributeNS([TreatNullAs=NullString,Default=Undefined] optiona l DOMString namespaceURI, 43 DOMString getAttributeNS([TreatNullAs=NullString,Default=Undefined] optiona l DOMString namespaceURI,
44 [Default=Undefined] optional DOMStri ng localName); 44 [Default=Undefined] optional DOMStri ng localName);
45 [RaisesException, CustomElementCallbacks=Enable] void setAttributeNS([Treat NullAs=NullString,Default=Undefined] optional DOMString namespaceURI, 45 [RaisesException, CustomElementCallbacks] void setAttributeNS([TreatNullAs= NullString,Default=Undefined] optional DOMString namespaceURI,
46 [Default=Undefined] optional DOMString qu alifiedName, 46 [Default=Undefined] optional DOMString qu alifiedName,
47 [Default=Undefined] optional DOMString va lue); 47 [Default=Undefined] optional DOMString va lue);
48 [CustomElementCallbacks=Enable] void removeAttributeNS([TreatNullAs=NullStr ing] DOMString namespaceURI, 48 [CustomElementCallbacks] void removeAttributeNS([TreatNullAs=NullString] DO MString namespaceURI,
49 DOMString localName); 49 DOMString localName);
50 NodeList getElementsByTagNameNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, 50 NodeList getElementsByTagNameNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI,
51 [Default=Undefined] optional DOMString localName); 51 [Default=Undefined] optional DOMString localName);
52 [MeasureAs=ElementGetAttributeNodeNS] Attr getAttributeNodeNS([TreatNullAs= NullString,Default=Undefined] optional DOMString namespaceURI, 52 [MeasureAs=ElementGetAttributeNodeNS] Attr getAttributeNodeNS([TreatNullAs= NullString,Default=Undefined] optional DOMString namespaceURI,
53 [Default=Unde fined] optional DOMString localName); // Removed from DOM4. 53 [Default=Unde fined] optional DOMString localName); // Removed from DOM4.
54 [RaisesException, CustomElementCallbacks=Enable] Attr setAttributeNodeNS([De fault=Undefined, StrictTypeChecking] optional Attr newAttr); 54 [RaisesException, CustomElementCallbacks] Attr setAttributeNodeNS([Default=U ndefined, StrictTypeChecking] optional Attr newAttr);
55 boolean hasAttribute(DOMString name); 55 boolean hasAttribute(DOMString name);
56 boolean hasAttributeNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, 56 boolean hasAttributeNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI,
57 [Default=Undefined] optional DOMString localName); 57 [Default=Undefined] optional DOMString localName);
58 58
59 [PerWorldBindings] readonly attribute CSSStyleDeclaration style; 59 [PerWorldBindings] readonly attribute CSSStyleDeclaration style;
60 60
61 // DOM4 61 // DOM4
62 // iht.com relies on id returning the empty string when no id is present. 62 // iht.com relies on id returning the empty string when no id is present.
63 // Other browsers do this as well. So we don't convert null to JS null. 63 // Other browsers do this as well. So we don't convert null to JS null.
64 [Reflect] attribute DOMString id; 64 [Reflect] attribute DOMString id;
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 [NotEnumerable, EnabledAtRuntime=Touch, PerWorldBindings] attribute EventHan dler ontouchstart; 206 [NotEnumerable, EnabledAtRuntime=Touch, PerWorldBindings] attribute EventHan dler ontouchstart;
207 [NotEnumerable, EnabledAtRuntime=Touch, PerWorldBindings] attribute EventHan dler ontouchmove; 207 [NotEnumerable, EnabledAtRuntime=Touch, PerWorldBindings] attribute EventHan dler ontouchmove;
208 [NotEnumerable, EnabledAtRuntime=Touch, PerWorldBindings] attribute EventHan dler ontouchend; 208 [NotEnumerable, EnabledAtRuntime=Touch, PerWorldBindings] attribute EventHan dler ontouchend;
209 [NotEnumerable, EnabledAtRuntime=Touch, PerWorldBindings] attribute EventHan dler ontouchcancel; 209 [NotEnumerable, EnabledAtRuntime=Touch, PerWorldBindings] attribute EventHan dler ontouchcancel;
210 [NotEnumerable, PerWorldBindings] attribute EventHandler onwebkitfullscreenc hange; 210 [NotEnumerable, PerWorldBindings] attribute EventHandler onwebkitfullscreenc hange;
211 [NotEnumerable, PerWorldBindings] attribute EventHandler onwebkitfullscreene rror; 211 [NotEnumerable, PerWorldBindings] attribute EventHandler onwebkitfullscreene rror;
212 }; 212 };
213 213
214 Element implements ParentNode; 214 Element implements ParentNode;
215 Element implements ChildNode; 215 Element implements ChildNode;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698