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

Side by Side Diff: tools/dom/idl/dart/dart.idl

Issue 14471026: Remove IDL overrides for DOM typed arrays. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 // This file introduces / supplements and forces Dart declarations. 1 // This file introduces / supplements and forces Dart declarations.
2 2
3 [Supplemental, 3 [Supplemental,
4 Constructor] 4 Constructor]
5 interface AudioContext { 5 interface AudioContext {
6 // TODO(ager): Auto-generate this custom method when the info about retaining 6 // TODO(ager): Auto-generate this custom method when the info about retaining
7 // typed arrays is in the IDL. 7 // typed arrays is in the IDL.
8 [Custom] void decodeAudioData(in ArrayBuffer audioData, in AudioBufferCallback successCallback, in AudioBufferCallback errorCallback); 8 [Custom] void decodeAudioData(in ArrayBuffer audioData, in AudioBufferCallback successCallback, in AudioBufferCallback errorCallback);
9 }; 9 };
10 10
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 158
159 [Custom] any getVertexAttrib(in unsigned long index, in unsigned long pname); 159 [Custom] any getVertexAttrib(in unsigned long index, in unsigned long pname);
160 [Suppressed, StrictTypeChecking, Custom] void getVertexAttrib(); 160 [Suppressed, StrictTypeChecking, Custom] void getVertexAttrib();
161 }; 161 };
162 [Supplemental] 162 [Supplemental]
163 interface CSSStyleDeclaration { 163 interface CSSStyleDeclaration {
164 void setProperty(in DOMString propertyName, in DOMString value, [ForceOptional ] optional DOMString priority); 164 void setProperty(in DOMString propertyName, in DOMString value, [ForceOptional ] optional DOMString priority);
165 [DartName=_getPropertyValue] DOMString getPropertyValue(in DOMString propertyN ame); 165 [DartName=_getPropertyValue] DOMString getPropertyValue(in DOMString propertyN ame);
166 }; 166 };
167 167
168 [Supplemental,
169 Constructor(in long length)] // Add constructor signature.
170 interface ArrayBuffer {
171 };
172 [Supplemental]
173 interface Float32Array {
174 [Suppressed] void set();
175 [DartName=setElements, Custom] void set(in any array, optional unsigned long o ffset);
176 };
177 [Supplemental]
178 interface Float64Array {
179 [Suppressed] void set();
180 [DartName=setElements, Custom] void set(in any array, optional unsigned long o ffset);
181 };
182 [Supplemental]
183 interface Int16Array {
184 [Suppressed] void set();
185 [DartName=setElements, Custom] void set(in any array, optional unsigned long o ffset);
186 };
187 [Supplemental]
188 interface Int32Array {
189 [Suppressed] void set();
190 [DartName=setElements, Custom] void set(in any array, optional unsigned long o ffset);
191 };
192 [Supplemental]
193 interface Int8Array {
194 [Suppressed] void set();
195 [DartName=setElements, Custom] void set(in any array, optional unsigned long o ffset);
196 };
197 [Supplemental]
198 interface Uint16Array {
199 [Suppressed] void set();
200 [DartName=setElements, Custom] void set(in any array, optional unsigned long o ffset);
201 };
202 [Supplemental]
203 interface Uint32Array {
204 [Suppressed] void set();
205 [DartName=setElements, Custom] void set(in any array, optional unsigned long o ffset);
206 };
207 [Supplemental]
208 interface Uint8Array {
209 [Suppressed] void set();
210 [DartName=setElements, Custom] void set(in any array, optional unsigned long o ffset);
211 };
212
213 [Supplemental]
214 interface Uint8ClampedArray {
215 // Avoid 'overriding static member BYTES_PER_ELEMENT'.
216 [Suppressed] const long BYTES_PER_ELEMENT = 1;
217
218 [Suppressed] void set();
219 [DartName=setElements, Custom] void set(in any array, optional unsigned long o ffset);
220 };
221
222 [Supplemental]
223 interface DataView {
224 // Undo this:
225 // We have to use custom code because our code generator does not support int8 _t type.
226 // int8_t getInt8(in unsigned long byteOffset);
227 // uint8_t getUint8(in unsigned long byteOffset);
228 [Suppressed] any getInt8();
229 [Suppressed] any getUint8();
230 [RaisesException] byte getInt8(in unsigned long byteOffset);
231 [RaisesException] octet getUint8(in unsigned long byteOffset);
232
233 // We have to use custom code because our code generator does not support uint 8_t type.
234 // void setInt8(in unsigned long byteOffset, in int8_t value);
235 // void setUint8(in unsigned long byteOffset, in uint8_t value);
236 [Suppressed] void setInt8();
237 [Suppressed] void setUint8();
238 [RaisesException] void setInt8(in unsigned long byteOffset, in byte value);
239 [RaisesException] void setUint8(in unsigned long byteOffset, in octet value);
240 };
241
242 // TODO(vsm): Define new names for these (see b/4436830). 168 // TODO(vsm): Define new names for these (see b/4436830).
243 [Supplemental] 169 [Supplemental]
244 interface IDBCursor { 170 interface IDBCursor {
245 [DartName=next, CallWith=ScriptExecutionContext, ImplementedAs=continueFunctio n, RaisesException] void continue([ForceOptional] optional any key); 171 [DartName=next, CallWith=ScriptExecutionContext, ImplementedAs=continueFunctio n, RaisesException] void continue([ForceOptional] optional any key);
246 }; 172 };
247 [Supplemental] 173 [Supplemental]
248 interface IDBIndex { 174 interface IDBIndex {
249 [CallWith=ScriptExecutionContext, RaisesException] IDBRequest openCursor([Fo rceOptional] optional IDBKeyRange? range, [ForceOptional] optional DOMString dir ection); 175 [CallWith=ScriptExecutionContext, RaisesException] IDBRequest openCursor([Fo rceOptional] optional IDBKeyRange? range, [ForceOptional] optional DOMString dir ection);
250 [CallWith=ScriptExecutionContext, RaisesException] IDBRequest openCursor(any key, [ForceOptional] optional DOMString direction); 176 [CallWith=ScriptExecutionContext, RaisesException] IDBRequest openCursor(any key, [ForceOptional] optional DOMString direction);
251 [CallWith=ScriptExecutionContext, RaisesException] IDBRequest openKeyCursor( [ForceOptional] optional IDBKeyRange? range, [ForceOptional] optional DOMString direction); 177 [CallWith=ScriptExecutionContext, RaisesException] IDBRequest openKeyCursor( [ForceOptional] optional IDBKeyRange? range, [ForceOptional] optional DOMString direction);
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 [Suppressed] 308 [Suppressed]
383 interface InspectorFrontendHost {}; 309 interface InspectorFrontendHost {};
384 310
385 311
386 [Suppressed] 312 [Suppressed]
387 interface JavaScriptCallFrame {}; 313 interface JavaScriptCallFrame {};
388 314
389 315
390 [Suppressed] 316 [Suppressed]
391 interface Entity {}; 317 interface Entity {};
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