Chromium Code Reviews| 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. |
|
vsm
2012/06/15 19:40:27
nit: line length here and on 202.
|
| + // void setInt8(in unsigned long byteOffset, in int8_t value); |
| + // void setUint8(in unsigned long byteOffset, in uint8_t value); |
|
vsm
2012/06/15 19:40:27
Is this just a matter of mapping int8_t/uint8_t to
|
| + [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 { |