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

Unified Diff: lib/html/dartium/html_dartium.dart

Issue 10780029: ArrayBuffer constructor (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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:
Download patch
Index: lib/html/dartium/html_dartium.dart
diff --git a/lib/html/dartium/html_dartium.dart b/lib/html/dartium/html_dartium.dart
index 65cf31053195ba2e892dc40d31522d22e58daaba..9a5461c2a03e89529e6162d058acc2de654efce5 100644
--- a/lib/html/dartium/html_dartium.dart
+++ b/lib/html/dartium/html_dartium.dart
@@ -115,6 +115,14 @@ class _AbstractWorkerImpl extends _EventTargetImpl implements AbstractWorker {
// 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 _ArrayBufferFactoryProvider {
+ factory ArrayBuffer(int length) => _createArrayBuffer(length);
+ static ArrayBuffer _createArrayBuffer(int length) native "ArrayBuffer_constructor_Callback";
+}
+// 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.
+
// WARNING: Do not edit - generated code.
class _ArrayBufferImpl extends NativeFieldWrapperClass1 implements ArrayBuffer {
@@ -21931,7 +21939,9 @@ interface AreaElement extends Element default _Elements {
// WARNING: Do not edit - generated code.
/// @domName ArrayBuffer
-interface ArrayBuffer {
+interface ArrayBuffer default _ArrayBufferFactoryProvider {
+
+ ArrayBuffer(int length);
/** @domName ArrayBuffer.byteLength */
final int byteLength;

Powered by Google App Engine
This is Rietveld 408576698