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

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

Issue 26694003: Add support for [TreatNullAs] extended attribute for reflected attributes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move code to a subroutine 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
« no previous file with comments | « Source/bindings/tests/idls/TestObject.idl ('k') | Source/core/html/HTMLAnchorElement.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,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 [RaisesException, CustomElementCallbacks] Attr setAttributeNodeNS([Default=U ndefined, 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, TreatNullAs=NullString] attribute DOMString id;
65 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing namespaceURI; 65 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing namespaceURI;
66 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, PerWorldBindings, S etterRaisesException] attribute DOMString prefix; 66 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, PerWorldBindings, S etterRaisesException] attribute DOMString prefix;
67 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing localName; 67 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing localName;
68 68
69 // Common extensions 69 // Common extensions
70 70
71 [PerWorldBindings] readonly attribute long offsetLeft; 71 [PerWorldBindings] readonly attribute long offsetLeft;
72 [PerWorldBindings] readonly attribute long offsetTop; 72 [PerWorldBindings] readonly attribute long offsetTop;
73 [PerWorldBindings] readonly attribute long offsetWidth; 73 [PerWorldBindings] readonly attribute long offsetWidth;
74 [PerWorldBindings] readonly attribute long offsetHeight; 74 [PerWorldBindings] readonly attribute long offsetHeight;
(...skipping 13 matching lines...) Expand all
88 88
89 // WebKit extensions 89 // WebKit extensions
90 90
91 void scrollIntoViewIfNeeded(optional boolean centerIfNeeded); 91 void scrollIntoViewIfNeeded(optional boolean centerIfNeeded);
92 void scrollByLines([Default=Undefined] optional long lines); 92 void scrollByLines([Default=Undefined] optional long lines);
93 void scrollByPages([Default=Undefined] optional long pages); 93 void scrollByPages([Default=Undefined] optional long pages);
94 94
95 // HTML 5 95 // HTML 5
96 NodeList getElementsByClassName([Default=Undefined] optional DOMString name) ; 96 NodeList getElementsByClassName([Default=Undefined] optional DOMString name) ;
97 97
98 [Reflect=class, PerWorldBindings] attribute DOMString className; 98 [Reflect=class, TreatNullAs=NullString, PerWorldBindings] attribute DOMStrin g className;
99 [PerWorldBindings] readonly attribute DOMTokenList classList; 99 [PerWorldBindings] readonly attribute DOMTokenList classList;
100 100
101 [PerWorldBindings] readonly attribute DOMStringMap dataset; 101 [PerWorldBindings] readonly attribute DOMStringMap dataset;
102 102
103 // NodeSelector - Selector API 103 // NodeSelector - Selector API
104 [RaisesException] Element querySelector(DOMString selectors); 104 [RaisesException] Element querySelector(DOMString selectors);
105 [RaisesException] NodeList querySelectorAll(DOMString selectors); 105 [RaisesException] NodeList querySelectorAll(DOMString selectors);
106 106
107 // WebKit extension, pending specification. 107 // WebKit extension, pending specification.
108 [RaisesException] boolean webkitMatchesSelector([Default=Undefined] optional DOMString selectors); 108 [RaisesException] boolean webkitMatchesSelector([Default=Undefined] optional DOMString selectors);
109 109
110 // Shadow DOM API 110 // Shadow DOM API
111 [EnabledAtRuntime=ShadowDOM, Reflect, PerWorldBindings] attribute DOMString pseudo; 111 [EnabledAtRuntime=ShadowDOM, Reflect, TreatNullAs=NullString, PerWorldBindin gs] attribute DOMString pseudo;
112 [EnabledAtRuntime=ShadowDOM, RaisesException] ShadowRoot createShadowRoot(); 112 [EnabledAtRuntime=ShadowDOM, RaisesException] ShadowRoot createShadowRoot();
113 [EnabledAtRuntime=ShadowDOM, PerWorldBindings] readonly attribute ShadowRoot shadowRoot; 113 [EnabledAtRuntime=ShadowDOM, PerWorldBindings] readonly attribute ShadowRoot shadowRoot;
114 [EnabledAtRuntime=ShadowDOM, PerWorldBindings] NodeList getDestinationInsert ionPoints(); 114 [EnabledAtRuntime=ShadowDOM, PerWorldBindings] NodeList getDestinationInsert ionPoints();
115 115
116 // To-be-deprecated prefixed Shadow DOM API 116 // To-be-deprecated prefixed Shadow DOM API
117 [Reflect=pseudo, ImplementedAs=pseudo, PerWorldBindings, MeasureAs=ShadowDOM PrefixedPseudo] attribute DOMString webkitPseudo; 117 [Reflect=pseudo, TreatNullAs=NullString, ImplementedAs=pseudo, PerWorldBindi ngs, MeasureAs=ShadowDOMPrefixedPseudo] attribute DOMString webkitPseudo;
118 [ImplementedAs=createShadowRoot, RaisesException, MeasureAs=ShadowDOMPrefixe dCreateShadowRoot] ShadowRoot webkitCreateShadowRoot(); 118 [ImplementedAs=createShadowRoot, RaisesException, MeasureAs=ShadowDOMPrefixe dCreateShadowRoot] ShadowRoot webkitCreateShadowRoot();
119 [ImplementedAs=shadowRoot, PerWorldBindings, MeasureAs=ShadowDOMPrefixedShad owRoot] readonly attribute ShadowRoot webkitShadowRoot; 119 [ImplementedAs=shadowRoot, PerWorldBindings, MeasureAs=ShadowDOMPrefixedShad owRoot] readonly attribute ShadowRoot webkitShadowRoot;
120 120
121 // CSSOM View Module API 121 // CSSOM View Module API
122 ClientRectList getClientRects(); 122 ClientRectList getClientRects();
123 ClientRect getBoundingClientRect(); 123 ClientRect getBoundingClientRect();
124 124
125 // Mozilla version 125 // Mozilla version
126 const unsigned short ALLOW_KEYBOARD_INPUT = 1; 126 const unsigned short ALLOW_KEYBOARD_INPUT = 1;
127 [EnabledAtRuntime=Fullscreen, PerWorldBindings, ActivityLog=Access] void web kitRequestFullScreen([Default=Undefined] optional unsigned short flags); 127 [EnabledAtRuntime=Fullscreen, PerWorldBindings, ActivityLog=Access] void web kitRequestFullScreen([Default=Undefined] optional unsigned short flags);
(...skipping 78 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
« no previous file with comments | « Source/bindings/tests/idls/TestObject.idl ('k') | Source/core/html/HTMLAnchorElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698