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

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, 8 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 f1fff678094758c2f49c8855c5f1289e9433c2f2..4bf8f7555a90bd92b90a1170d2ade6a59b710203 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -5546,6 +5546,22 @@ 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
+ * [Element.onDrop] event) and will return `null` before the event is
+ * triggered.
+ *
+ * Data transfer is prohibited across domains. If a drag originates
+ * 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