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

Side by Side Diff: client/dom/generated/src/wrapping/_WebKitBlobBuilderWrappingImplementation.dart

Issue 8895013: Add enables consistent with Chrome's WebKit (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Alpha the ENABLEs 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // WARNING: Do not edit - generated code. 5 // WARNING: Do not edit - generated code.
6 6
7 class _WebKitBlobBuilderWrappingImplementation extends DOMWrapperBase implements WebKitBlobBuilder { 7 class _WebKitBlobBuilderWrappingImplementation extends DOMWrapperBase implements WebKitBlobBuilder {
8 _WebKitBlobBuilderWrappingImplementation() : super() {} 8 _WebKitBlobBuilderWrappingImplementation() : super() {}
9 9
10 static create__WebKitBlobBuilderWrappingImplementation() native { 10 static create__WebKitBlobBuilderWrappingImplementation() native {
11 return new _WebKitBlobBuilderWrappingImplementation(); 11 return new _WebKitBlobBuilderWrappingImplementation();
12 } 12 }
13 13
14 void append(var blob_OR_value, [String endings = null]) { 14 void append(var arrayBuffer_OR_blob_OR_value, [String endings = null]) {
15 if (blob_OR_value is Blob) { 15 if (arrayBuffer_OR_blob_OR_value is Blob) {
16 if (endings === null) { 16 if (endings === null) {
17 _append(this, blob_OR_value); 17 _append(this, arrayBuffer_OR_blob_OR_value);
18 return; 18 return;
19 } 19 }
20 } else { 20 } else {
21 if (blob_OR_value is String) { 21 if (arrayBuffer_OR_blob_OR_value is ArrayBuffer) {
22 if (endings === null) { 22 if (endings === null) {
23 _append_2(this, blob_OR_value); 23 _append_2(this, arrayBuffer_OR_blob_OR_value);
24 return; 24 return;
25 } else { 25 }
26 _append_3(this, blob_OR_value, endings); 26 } else {
27 return; 27 if (arrayBuffer_OR_blob_OR_value is String) {
28 if (endings === null) {
29 _append_3(this, arrayBuffer_OR_blob_OR_value);
30 return;
31 } else {
32 _append_4(this, arrayBuffer_OR_blob_OR_value, endings);
33 return;
34 }
28 } 35 }
29 } 36 }
30 } 37 }
31 throw "Incorrect number or type of arguments"; 38 throw "Incorrect number or type of arguments";
32 } 39 }
33 static void _append(receiver, blob_OR_value) native; 40 static void _append(receiver, arrayBuffer_OR_blob_OR_value) native;
34 static void _append_2(receiver, blob_OR_value) native; 41 static void _append_2(receiver, arrayBuffer_OR_blob_OR_value) native;
35 static void _append_3(receiver, blob_OR_value, endings) native; 42 static void _append_3(receiver, arrayBuffer_OR_blob_OR_value) native;
43 static void _append_4(receiver, arrayBuffer_OR_blob_OR_value, endings) native;
36 44
37 Blob getBlob([String contentType = null]) { 45 Blob getBlob([String contentType = null]) {
38 if (contentType === null) { 46 if (contentType === null) {
39 return _getBlob(this); 47 return _getBlob(this);
40 } else { 48 } else {
41 return _getBlob_2(this, contentType); 49 return _getBlob_2(this, contentType);
42 } 50 }
43 } 51 }
44 static Blob _getBlob(receiver) native; 52 static Blob _getBlob(receiver) native;
45 static Blob _getBlob_2(receiver, contentType) native; 53 static Blob _getBlob_2(receiver, contentType) native;
46 54
47 String get typeName() { return "WebKitBlobBuilder"; } 55 String get typeName() { return "WebKitBlobBuilder"; }
48 } 56 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698