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

Unified Diff: lib/dom/dom.dart

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 | « no previous file | lib/dom/frog/dom_frog.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/dom.dart
diff --git a/lib/dom/dom.dart b/lib/dom/dom.dart
index 5c9b75f90395c49c156ab901aaffe044924ce139..9fcdb35e2e11e4803862ba19d42632801a733be1 100644
--- a/lib/dom/dom.dart
+++ b/lib/dom/dom.dart
@@ -27,6 +27,13 @@ class _DOMURLFactoryProvider {
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+class _DataViewFactoryProvider {
+ factory DataView(ArrayBuffer buffer, [int byteOffset = null, int byteLength = null]) => _dummy();
+}
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
class _DeprecatedPeerConnectionFactoryProvider {
factory DeprecatedPeerConnection(String serverConfiguration, SignalingCallback signalingCallback) => _dummy();
}
@@ -1960,7 +1967,9 @@ interface DataTransferItemList {
// WARNING: Do not edit - generated code.
-interface DataView extends ArrayBufferView {
+interface DataView extends ArrayBufferView default _DataViewFactoryProvider {
+
+ DataView(ArrayBuffer buffer, [int byteOffset, int byteLength]);
num getFloat32(int byteOffset, [bool littleEndian]);
@@ -1970,13 +1979,13 @@ interface DataView extends ArrayBufferView {
int getInt32(int byteOffset, [bool littleEndian]);
- Object getInt8();
+ int getInt8(int byteOffset);
int getUint16(int byteOffset, [bool littleEndian]);
int getUint32(int byteOffset, [bool littleEndian]);
- Object getUint8();
+ int getUint8(int byteOffset);
void setFloat32(int byteOffset, num value, [bool littleEndian]);
@@ -1986,13 +1995,13 @@ interface DataView extends ArrayBufferView {
void setInt32(int byteOffset, int value, [bool littleEndian]);
- void setInt8();
+ void setInt8(int byteOffset, int value);
void setUint16(int byteOffset, int value, [bool littleEndian]);
void setUint32(int byteOffset, int value, [bool littleEndian]);
- void setUint8();
+ void setUint8(int byteOffset, int value);
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
« no previous file with comments | « no previous file | lib/dom/frog/dom_frog.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698