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

Unified Diff: lib/dom/dom.dart

Issue 10548065: Revert "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 9fcdb35e2e11e4803862ba19d42632801a733be1..5c9b75f90395c49c156ab901aaffe044924ce139 100644
--- a/lib/dom/dom.dart
+++ b/lib/dom/dom.dart
@@ -27,13 +27,6 @@ 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();
}
@@ -1967,9 +1960,7 @@ interface DataTransferItemList {
// WARNING: Do not edit - generated code.
-interface DataView extends ArrayBufferView default _DataViewFactoryProvider {
-
- DataView(ArrayBuffer buffer, [int byteOffset, int byteLength]);
+interface DataView extends ArrayBufferView {
num getFloat32(int byteOffset, [bool littleEndian]);
@@ -1979,13 +1970,13 @@ interface DataView extends ArrayBufferView default _DataViewFactoryProvider {
int getInt32(int byteOffset, [bool littleEndian]);
- int getInt8(int byteOffset);
+ Object getInt8();
int getUint16(int byteOffset, [bool littleEndian]);
int getUint32(int byteOffset, [bool littleEndian]);
- int getUint8(int byteOffset);
+ Object getUint8();
void setFloat32(int byteOffset, num value, [bool littleEndian]);
@@ -1995,13 +1986,13 @@ interface DataView extends ArrayBufferView default _DataViewFactoryProvider {
void setInt32(int byteOffset, int value, [bool littleEndian]);
- void setInt8(int byteOffset, int value);
+ void setInt8();
void setUint16(int byteOffset, int value, [bool littleEndian]);
void setUint32(int byteOffset, int value, [bool littleEndian]);
- void setUint8(int byteOffset, int value);
+ void setUint8();
}
// 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