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/html/generated/html/dartium/DataTransferItemList.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, 10 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/html/generated/html/dartium/DataTransferItemList.dart
diff --git a/client/html/generated/html/dartium/DataTransferItemList.dart b/client/html/generated/html/dartium/DataTransferItemList.dart
new file mode 100644
index 0000000000000000000000000000000000000000..60afa46bab4269ec0f6e3f1643c228b28fdff72d
--- /dev/null
+++ b/client/html/generated/html/dartium/DataTransferItemList.dart
@@ -0,0 +1,30 @@
+
+class _DataTransferItemListImpl extends _DOMTypeBase implements DataTransferItemList {
+ _DataTransferItemListImpl._wrap(ptr) : super._wrap(ptr);
+
+ int get length() => _wrap(_ptr.length);
+
+ void add(var data_OR_file, [String type = null]) {
+ if (data_OR_file is File) {
+ if (type === null) {
+ _ptr.add(_unwrap(data_OR_file));
+ return;
+ }
+ } else {
+ if (data_OR_file is String) {
+ _ptr.add(_unwrap(data_OR_file), _unwrap(type));
+ return;
+ }
+ }
+ throw "Incorrect number or type of arguments";
+ }
+
+ void clear() {
+ _ptr.clear();
+ return;
+ }
+
+ DataTransferItem item(int index) {
+ return _wrap(_ptr.item(_unwrap(index)));
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698