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

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

Issue 10540175: Fix DataView constructor and byte accessors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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 | « lib/dom/frog/dom_frog.dart ('k') | lib/dom/scripts/generator.py » ('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 // This file introduces / supplements and forces Dart declarations. 2 // This file introduces / supplements and forces Dart declarations.
3 3
4 module default { 4 module default {
5 FileList implements sequence<File>; 5 FileList implements sequence<File>;
6 HTMLCollection implements sequence<Node>; 6 HTMLCollection implements sequence<Node>;
7 MediaList implements sequence<DOMString>; 7 MediaList implements sequence<DOMString>;
8 NamedNodeMap implements sequence<Node>; 8 NamedNodeMap implements sequence<Node>;
9 NodeList implements sequence<Node>; 9 NodeList implements sequence<Node>;
10 StyleSheetList implements sequence<StyleSheet>; 10 StyleSheetList implements sequence<StyleSheet>;
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 }; 184 };
185 185
186 [Supplemental] 186 [Supplemental]
187 interface Uint8ClampedArray { 187 interface Uint8ClampedArray {
188 // Avoid 'overriding static member BYTES_PER_ELEMENT'. 188 // Avoid 'overriding static member BYTES_PER_ELEMENT'.
189 [Suppressed] const long BYTES_PER_ELEMENT = 1; 189 [Suppressed] const long BYTES_PER_ELEMENT = 1;
190 190
191 [Suppressed] void set(); 191 [Suppressed] void set();
192 [DartName=setElements, Custom] void set(in any array, [Optional] in unsigned long offset); 192 [DartName=setElements, Custom] void set(in any array, [Optional] in unsigned long offset);
193 }; 193 };
194
195 [Supplemental,
196 Constructor(in ArrayBuffer buffer,
197 [Optional] in unsigned long byteOffset,
198 [Optional] in unsigned long byteLength)
199 ]
200 interface DataView {
201 // Undo this:
202 // We have to use custom code because our code generator does not support in t8_t type.
203 // int8_t getInt8(in unsigned long byteOffset);
204 // uint8_t getUint8(in unsigned long byteOffset);
205 [Suppressed] DOMObject getInt8();
206 [Suppressed] DOMObject getUint8();
207 byte getInt8(in unsigned long byteOffset)
208 raises (DOMException);
209 octet getUint8(in unsigned long byteOffset)
210 raises (DOMException);
211
212 // We have to use custom code because our code generator does not support ui nt8_t type.
213 // void setInt8(in unsigned long byteOffset, in int8_t value);
214 // void setUint8(in unsigned long byteOffset, in uint8_t value);
215 [Suppressed] void setInt8();
216 [Suppressed] void setUint8();
217 void setInt8(in unsigned long byteOffset, in byte value)
218 raises (DOMException);
219 void setUint8(in unsigned long byteOffset, in octet value)
220 raises (DOMException);
221 };
194 }; 222 };
195 223
196 module storage { 224 module storage {
197 // TODO(vsm): Define new names for these (see b/4436830). 225 // TODO(vsm): Define new names for these (see b/4436830).
198 [Supplemental] 226 [Supplemental]
199 interface IDBCursor { 227 interface IDBCursor {
200 [DartName=continueFunction] void continue([Optional] in IDBKey key); 228 [DartName=continueFunction] void continue([Optional] in IDBKey key);
201 }; 229 };
202 [Supplemental] 230 [Supplemental]
203 interface IDBDatabase { 231 interface IDBDatabase {
(...skipping 27 matching lines...) Expand all
231 [Supplemental, Callback] // Add missing Callback attribute. 259 [Supplemental, Callback] // Add missing Callback attribute.
232 interface VoidCallback { 260 interface VoidCallback {
233 }; 261 };
234 }; 262 };
235 263
236 module svg { 264 module svg {
237 interface SVGNumber { 265 interface SVGNumber {
238 [StrictTypeChecking, Custom] attribute double value; 266 [StrictTypeChecking, Custom] attribute double value;
239 }; 267 };
240 } 268 }
OLDNEW
« no previous file with comments | « lib/dom/frog/dom_frog.dart ('k') | lib/dom/scripts/generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698