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

Unified Diff: client/dom/generated/src/wrapping/_DataTransferItemListWrappingImplementation.dart

Issue 9264057: Refresh dart:dom libraries from WebKit (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: CR changes Created 8 years, 11 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/dom/generated/src/wrapping/_DataTransferItemListWrappingImplementation.dart
diff --git a/client/dom/generated/src/wrapping/_DataTransferItemListWrappingImplementation.dart b/client/dom/generated/src/wrapping/_DataTransferItemListWrappingImplementation.dart
index 9f618cae9fb46754f331d5596c5285d424f75399..ab45dbae29cc58b894165fddc315e35768fa4034 100644
--- a/client/dom/generated/src/wrapping/_DataTransferItemListWrappingImplementation.dart
+++ b/client/dom/generated/src/wrapping/_DataTransferItemListWrappingImplementation.dart
@@ -14,11 +14,22 @@ class _DataTransferItemListWrappingImplementation extends DOMWrapperBase impleme
int get length() { return _get_length(this); }
static int _get_length(var _this) native;
- void add(String data, String type) {
- _add(this, data, type);
- return;
+ void add(var data_OR_file, [String type = null]) {
+ if (data_OR_file is File) {
+ if (type === null) {
+ _add(this, data_OR_file);
+ return;
+ }
+ } else {
+ if (data_OR_file is String) {
+ _add_2(this, data_OR_file, type);
+ return;
+ }
+ }
+ throw "Incorrect number or type of arguments";
}
- static void _add(receiver, data, type) native;
+ static void _add(receiver, data_OR_file) native;
+ static void _add_2(receiver, data_OR_file, type) native;
void clear() {
_clear(this);

Powered by Google App Engine
This is Rietveld 408576698