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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 12092114: Documenting misleading DataTransfer API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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:
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index fa018931621c5a3aed08d0e726ea9903aae0da69..df21606bba0cf65ea6301a24b812d1278fa83dbf 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -5828,6 +5828,21 @@ class DataTransfer native "*Clipboard" {
@DocsEditable
void clearData([String type]) native;
+ /**
+ * Gets the data for the specified type.
+ *
+ * The data is only available from within a drop operation (such as an
Andrei Mouravski 2013/02/01 18:40:45 Nit: There's an extra space between "the" and "dat
+ * onDrop event) and will return `null` before then.
Andrei Mouravski 2013/02/01 18:40:45 Nit: link to onDrop event if you can.
Andrei Mouravski 2013/02/01 18:40:45 "... and will return `null` anywhere else." or may
blois 2013/04/10 00:26:47 Done.
blois 2013/04/10 00:26:47 Done.
+ *
+ * Data transfer is also prohibited across domains. If a drag originates
Andrei Mouravski 2013/02/01 18:40:45 No need for "also." Just: "Data transfer is prohib
+ * from content from another domain or protocol (HTTP vs HTTPS) then the
+ * data cannot be accessed.
+ *
+ * The [type] can have values such as:
+ *
+ * * `'Text'`
+ * * `'URL'`
+ */
@DomName('Clipboard.getData')
@DocsEditable
String getData(String type) native;
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698