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

Unified Diff: sdk/lib/html/dartium/html_dartium.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 | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tools/dom/docs/docs.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c00b76e16b0152d8e5b02137c9cafead44dff05b..631ee7bf21fb2968ec594b48cbddebcac4fc683a 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -6042,6 +6042,22 @@ class DataTransfer extends NativeFieldWrapperClass1 {
@DocsEditable
void clearData([String type]) native "Clipboard_clearData_Callback";
+ /**
+ * 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 "Clipboard_getData_Callback";
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tools/dom/docs/docs.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698