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

Unified Diff: client/html/generated/html/dartium/DataTransferItem.dart

Issue 9610011: Port DocumentFragment to the new wrapperless DOM. (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 side-by-side diff with in-line comments
Download patch
Index: client/html/generated/html/dartium/DataTransferItem.dart
diff --git a/client/html/generated/html/dartium/DataTransferItem.dart b/client/html/generated/html/dartium/DataTransferItem.dart
index e70472855897ed341e63f3e20bfe251c65c3f9eb..6f0ae3bff4fb7ccc1d533cfc99b993dd3302c89c 100644
--- a/client/html/generated/html/dartium/DataTransferItem.dart
+++ b/client/html/generated/html/dartium/DataTransferItem.dart
@@ -10,8 +10,13 @@ class _DataTransferItemImpl extends _DOMTypeBase implements DataTransferItem {
return _wrap(_ptr.getAsFile());
}
- void getAsString(StringCallback callback) {
- _ptr.getAsString(_unwrap(callback));
- return;
+ void getAsString([StringCallback callback = null]) {
+ if (callback === null) {
+ _ptr.getAsString();
+ return;
+ } else {
+ _ptr.getAsString(_unwrap(callback));
+ return;
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698