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

Side by Side 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, 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 _DataTransferItemListImpl extends _DOMTypeBase implements DataTransferItem List {
3 _DataTransferItemListImpl._wrap(ptr) : super._wrap(ptr);
4
5 int get length() => _wrap(_ptr.length);
6
7 void add(var data_OR_file, [String type = null]) {
8 if (data_OR_file is File) {
9 if (type === null) {
10 _ptr.add(_unwrap(data_OR_file));
11 return;
12 }
13 } else {
14 if (data_OR_file is String) {
15 _ptr.add(_unwrap(data_OR_file), _unwrap(type));
16 return;
17 }
18 }
19 throw "Incorrect number or type of arguments";
20 }
21
22 void clear() {
23 _ptr.clear();
24 return;
25 }
26
27 DataTransferItem item(int index) {
28 return _wrap(_ptr.item(_unwrap(index)));
29 }
30 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698