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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/dom/frog/dom_frog.dart ('k') | lib/dom/scripts/generator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/idl/dart/dart.idl
diff --git a/lib/dom/idl/dart/dart.idl b/lib/dom/idl/dart/dart.idl
index 4a62baf717c7f03ac4e5836f3917e4af99f1d4e0..e13c2b3790c5de99c49b25e925bf2b35bb68d33e 100644
--- a/lib/dom/idl/dart/dart.idl
+++ b/lib/dom/idl/dart/dart.idl
@@ -15,6 +15,14 @@ module default {
Int16Array implements sequence<int>;
Int32Array implements sequence<int>;
Uint8Array implements sequence<int>;
+ // Ugliness ahead: we cannot analyse inheritance right now when deducing if
+ // given interface is a typed array (database is not accessible), so I have
+ // to duplicate both sequence<int> and ArrayBufferView to make our heuristics
+ // work.
+ // FIXME: thread datatbase to all the clients that need it and probably
+ // move the method itself to database.
+ Uint8ClampedArray implements sequence<int>;
+ Uint8ClampedArray implements ArrayBufferView;
Uint16Array implements sequence<int>;
Uint32Array implements sequence<int>;
« 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