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

Unified Diff: client/html/src/Int16ArrayWrappingImplementation.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/src/Int16ArrayWrappingImplementation.dart
diff --git a/client/html/src/Int16ArrayWrappingImplementation.dart b/client/html/src/Int16ArrayWrappingImplementation.dart
deleted file mode 100644
index f1a94df36a176fb6f9c3e46f3cbe5ae6410e88b1..0000000000000000000000000000000000000000
--- a/client/html/src/Int16ArrayWrappingImplementation.dart
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) 2011, 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 Int16ArrayWrappingImplementation extends ArrayBufferViewWrappingImplementation implements Int16Array {
- Int16ArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
-
- factory Int16ArrayWrappingImplementation(int length) =>
- LevelDom.wrapInt16Array(new dom.Int16Array(length));
-
- factory Int16ArrayWrappingImplementation.from(List<num> list) =>
- // TODO(nweiz): when there's a cross-platform name for the native
- // implementation of List, check if [list] is native and if not convert it
- // to a native list before sending it to the JS constructor.
- LevelDom.wrapInt16Array(new dom.Int16Array.fromList(list));
-
- factory Int16ArrayWrappingImplementation.fromBuffer(ArrayBuffer buffer) =>
- LevelDom.wrapInt16Array(new dom.Int16Array.fromBuffer(LevelDom.unwrap(buffer)));
-
- int get length() { return _ptr.length; }
-
- Int16Array subarray(int start, [int end]) {
- if (end === null) {
- return LevelDom.wrapInt16Array(_ptr.subarray(start));
- } else {
- return LevelDom.wrapInt16Array(_ptr.subarray(start, end));
- }
- }
-}

Powered by Google App Engine
This is Rietveld 408576698