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

Unified Diff: client/html/generated/src/wrapping/_ArrayBufferWrappingImplementation.dart

Issue 8835006: New version of dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix typos Created 9 years 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/src/wrapping/_ArrayBufferWrappingImplementation.dart
diff --git a/client/html/generated/src/wrapping/_ArrayBufferWrappingImplementation.dart b/client/html/generated/src/wrapping/_ArrayBufferWrappingImplementation.dart
index ead6dcdf1fffafe5fae6e9bb3fbdefce34964568..2a32227e77a539faa62a6a7709d03747c835aa8b 100644
--- a/client/html/generated/src/wrapping/_ArrayBufferWrappingImplementation.dart
+++ b/client/html/generated/src/wrapping/_ArrayBufferWrappingImplementation.dart
@@ -8,4 +8,12 @@ class ArrayBufferWrappingImplementation extends DOMWrapperBase implements ArrayB
ArrayBufferWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
int get byteLength() { return _ptr.byteLength; }
+
+ ArrayBuffer slice(int begin, [int end]) {
+ if (end === null) {
+ return LevelDom.wrapArrayBuffer(_ptr.slice(begin));
+ } else {
+ return LevelDom.wrapArrayBuffer(_ptr.slice(begin, end));
+ }
+ }
}

Powered by Google App Engine
This is Rietveld 408576698