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

Unified 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 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 9dd16623daec3574e6d4a48b45799f932d7d3d44..e2d0f3af713dc11c8f140b5ab27e92bb833d7c7d 100644
--- a/lib/dom/idl/dart/dart.idl
+++ b/lib/dom/idl/dart/dart.idl
@@ -191,6 +191,34 @@ module canvas {
[Suppressed] void set();
[DartName=setElements, Custom] void set(in any array, [Optional] in unsigned long offset);
};
+
+ [Supplemental,
+ Constructor(in ArrayBuffer buffer,
+ [Optional] in unsigned long byteOffset,
+ [Optional] in unsigned long byteLength)
+ ]
+ interface DataView {
+ // Undo this:
+ // We have to use custom code because our code generator does not support int8_t type.
+ // int8_t getInt8(in unsigned long byteOffset);
+ // uint8_t getUint8(in unsigned long byteOffset);
+ [Suppressed] DOMObject getInt8();
+ [Suppressed] DOMObject getUint8();
+ byte getInt8(in unsigned long byteOffset)
+ raises (DOMException);
+ octet getUint8(in unsigned long byteOffset)
+ raises (DOMException);
+
+ // We have to use custom code because our code generator does not support uint8_t type.
+ // void setInt8(in unsigned long byteOffset, in int8_t value);
+ // void setUint8(in unsigned long byteOffset, in uint8_t value);
+ [Suppressed] void setInt8();
+ [Suppressed] void setUint8();
+ void setInt8(in unsigned long byteOffset, in byte value)
+ raises (DOMException);
+ void setUint8(in unsigned long byteOffset, in octet value)
+ raises (DOMException);
+ };
};
module storage {
« 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