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

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

Issue 10379024: Proper support for Uint8ClampedArray. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Better FIXME Created 8 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 | « 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 NamedNodeMap implements sequence<Node>; 5 NamedNodeMap implements sequence<Node>;
6 NodeList implements sequence<Node>; 6 NodeList implements sequence<Node>;
7 HTMLCollection implements sequence<Node>; 7 HTMLCollection implements sequence<Node>;
8 MediaList implements sequence<DOMString>; 8 MediaList implements sequence<DOMString>;
9 StyleSheetList implements sequence<StyleSheet>; 9 StyleSheetList implements sequence<StyleSheet>;
10 TouchList implements sequence<Touch>; 10 TouchList implements sequence<Touch>;
11 11
12 Float32Array implements sequence<double>; 12 Float32Array implements sequence<double>;
13 Float64Array implements sequence<double>; 13 Float64Array implements sequence<double>;
14 Int8Array implements sequence<int>; 14 Int8Array implements sequence<int>;
15 Int16Array implements sequence<int>; 15 Int16Array implements sequence<int>;
16 Int32Array implements sequence<int>; 16 Int32Array implements sequence<int>;
17 Uint8Array implements sequence<int>; 17 Uint8Array implements sequence<int>;
18 // Ugliness ahead: we cannot analyse inheritance right now when deducing if
19 // given interface is a typed array (database is not accessible), so I have
20 // to duplicate both sequence<int> and ArrayBufferView to make our heuristics
21 // work.
22 // FIXME: thread datatbase to all the clients that need it and probably
23 // move the method itself to database.
24 Uint8ClampedArray implements sequence<int>;
25 Uint8ClampedArray implements ArrayBufferView;
18 Uint16Array implements sequence<int>; 26 Uint16Array implements sequence<int>;
19 Uint32Array implements sequence<int>; 27 Uint32Array implements sequence<int>;
20 28
21 // Is List<int> because inherits from Uint8Array: 29 // Is List<int> because inherits from Uint8Array:
22 // Uint8ClampedArray implements sequence<int>; 30 // Uint8ClampedArray implements sequence<int>;
23 } 31 }
24 32
25 module core { 33 module core {
26 [Supplemental] 34 [Supplemental]
27 interface Document { 35 interface Document {
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 [Supplemental, Callback] // Add missing Callback attribute. 237 [Supplemental, Callback] // Add missing Callback attribute.
230 interface VoidCallback { 238 interface VoidCallback {
231 }; 239 };
232 }; 240 };
233 241
234 module svg { 242 module svg {
235 interface SVGNumber { 243 interface SVGNumber {
236 [StrictTypeChecking, Custom] attribute double value; 244 [StrictTypeChecking, Custom] attribute double value;
237 }; 245 };
238 } 246 }
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