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

Side by Side Diff: client/html/generated/html/dartium/Blob.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, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1
2 class _BlobImpl extends _DOMTypeBase implements Blob {
3 _BlobImpl._wrap(ptr) : super._wrap(ptr);
4
5 int get size() => _wrap(_ptr.size);
6
7 String get type() => _wrap(_ptr.type);
8
9 Blob webkitSlice([int start = null, int end = null, String contentType = null] ) {
10 if (start === null) {
11 if (end === null) {
12 if (contentType === null) {
13 return _wrap(_ptr.webkitSlice());
14 }
15 }
16 } else {
17 if (end === null) {
18 if (contentType === null) {
19 return _wrap(_ptr.webkitSlice(_unwrap(start)));
20 }
21 } else {
22 if (contentType === null) {
23 return _wrap(_ptr.webkitSlice(_unwrap(start), _unwrap(end)));
24 } else {
25 return _wrap(_ptr.webkitSlice(_unwrap(start), _unwrap(end), _unwrap(co ntentType)));
26 }
27 }
28 }
29 throw "Incorrect number or type of arguments";
30 }
31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698