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

Unified Diff: client/html/generated/html/dartium/DataView.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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
Index: client/html/generated/html/dartium/DataView.dart
diff --git a/client/html/generated/html/dartium/DataView.dart b/client/html/generated/html/dartium/DataView.dart
new file mode 100644
index 0000000000000000000000000000000000000000..4599b27732e68ceeead0a867f72e098c7f78f790
--- /dev/null
+++ b/client/html/generated/html/dartium/DataView.dart
@@ -0,0 +1,130 @@
+
+class _DataViewImpl extends _ArrayBufferViewImpl implements DataView {
+ _DataViewImpl._wrap(ptr) : super._wrap(ptr);
+
+ num getFloat32(int byteOffset, [bool littleEndian = null]) {
+ if (littleEndian === null) {
+ return _wrap(_ptr.getFloat32(_unwrap(byteOffset)));
+ } else {
+ return _wrap(_ptr.getFloat32(_unwrap(byteOffset), _unwrap(littleEndian)));
+ }
+ }
+
+ num getFloat64(int byteOffset, [bool littleEndian = null]) {
+ if (littleEndian === null) {
+ return _wrap(_ptr.getFloat64(_unwrap(byteOffset)));
+ } else {
+ return _wrap(_ptr.getFloat64(_unwrap(byteOffset), _unwrap(littleEndian)));
+ }
+ }
+
+ int getInt16(int byteOffset, [bool littleEndian = null]) {
+ if (littleEndian === null) {
+ return _wrap(_ptr.getInt16(_unwrap(byteOffset)));
+ } else {
+ return _wrap(_ptr.getInt16(_unwrap(byteOffset), _unwrap(littleEndian)));
+ }
+ }
+
+ int getInt32(int byteOffset, [bool littleEndian = null]) {
+ if (littleEndian === null) {
+ return _wrap(_ptr.getInt32(_unwrap(byteOffset)));
+ } else {
+ return _wrap(_ptr.getInt32(_unwrap(byteOffset), _unwrap(littleEndian)));
+ }
+ }
+
+ Object getInt8() {
+ return _wrap(_ptr.getInt8());
+ }
+
+ int getUint16(int byteOffset, [bool littleEndian = null]) {
+ if (littleEndian === null) {
+ return _wrap(_ptr.getUint16(_unwrap(byteOffset)));
+ } else {
+ return _wrap(_ptr.getUint16(_unwrap(byteOffset), _unwrap(littleEndian)));
+ }
+ }
+
+ int getUint32(int byteOffset, [bool littleEndian = null]) {
+ if (littleEndian === null) {
+ return _wrap(_ptr.getUint32(_unwrap(byteOffset)));
+ } else {
+ return _wrap(_ptr.getUint32(_unwrap(byteOffset), _unwrap(littleEndian)));
+ }
+ }
+
+ Object getUint8() {
+ return _wrap(_ptr.getUint8());
+ }
+
+ void setFloat32(int byteOffset, num value, [bool littleEndian = null]) {
+ if (littleEndian === null) {
+ _ptr.setFloat32(_unwrap(byteOffset), _unwrap(value));
+ return;
+ } else {
+ _ptr.setFloat32(_unwrap(byteOffset), _unwrap(value), _unwrap(littleEndian));
+ return;
+ }
+ }
+
+ void setFloat64(int byteOffset, num value, [bool littleEndian = null]) {
+ if (littleEndian === null) {
+ _ptr.setFloat64(_unwrap(byteOffset), _unwrap(value));
+ return;
+ } else {
+ _ptr.setFloat64(_unwrap(byteOffset), _unwrap(value), _unwrap(littleEndian));
+ return;
+ }
+ }
+
+ void setInt16(int byteOffset, int value, [bool littleEndian = null]) {
+ if (littleEndian === null) {
+ _ptr.setInt16(_unwrap(byteOffset), _unwrap(value));
+ return;
+ } else {
+ _ptr.setInt16(_unwrap(byteOffset), _unwrap(value), _unwrap(littleEndian));
+ return;
+ }
+ }
+
+ void setInt32(int byteOffset, int value, [bool littleEndian = null]) {
+ if (littleEndian === null) {
+ _ptr.setInt32(_unwrap(byteOffset), _unwrap(value));
+ return;
+ } else {
+ _ptr.setInt32(_unwrap(byteOffset), _unwrap(value), _unwrap(littleEndian));
+ return;
+ }
+ }
+
+ void setInt8() {
+ _ptr.setInt8();
+ return;
+ }
+
+ void setUint16(int byteOffset, int value, [bool littleEndian = null]) {
+ if (littleEndian === null) {
+ _ptr.setUint16(_unwrap(byteOffset), _unwrap(value));
+ return;
+ } else {
+ _ptr.setUint16(_unwrap(byteOffset), _unwrap(value), _unwrap(littleEndian));
+ return;
+ }
+ }
+
+ void setUint32(int byteOffset, int value, [bool littleEndian = null]) {
+ if (littleEndian === null) {
+ _ptr.setUint32(_unwrap(byteOffset), _unwrap(value));
+ return;
+ } else {
+ _ptr.setUint32(_unwrap(byteOffset), _unwrap(value), _unwrap(littleEndian));
+ return;
+ }
+ }
+
+ void setUint8() {
+ _ptr.setUint8();
+ return;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698