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

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Issue 12092114: Documenting misleading DataTransfer API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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:
Download patch
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index 88901637363ec9dae67fe6c3750356ccf8ae596a..fc0e62ba116e5e7afbeb66c6e3eb40ba2a882e42 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -6496,6 +6496,12 @@ class DataTransfer extends NativeFieldWrapperClass1 {
@DocsEditable
void clearData([String type]) native "Clipboard_clearData_Callback";
+ /**
+ * Gets the data for the specified MIME type.
+ *
+ * The data is only available from within a drop operation (such as an
+ * onDrop event) and will return `null` before then.
+ */
@DomName('Clipboard.getData')
@DocsEditable
String getData(String type) native "Clipboard_getData_Callback";

Powered by Google App Engine
This is Rietveld 408576698