Index: third_party/WebKit/Source/modules/nfc/NFCRecord.idl |
diff --git a/third_party/WebKit/Source/modules/nfc/NFCRecord.idl b/third_party/WebKit/Source/modules/nfc/NFCRecord.idl |
index e3576b28967665212fcedfc0841f51082f5217db..bd176d7776282fe1c44e9d7c739756025eb47342 100644 |
--- a/third_party/WebKit/Source/modules/nfc/NFCRecord.idl |
+++ b/third_party/WebKit/Source/modules/nfc/NFCRecord.idl |
@@ -6,11 +6,14 @@ |
enum NFCRecordType { "empty", "text", "url", "json", "opaque" }; |
-[ |
- RuntimeEnabled=WebNFC, |
-] dictionary NFCRecord { |
- NFCRecordType kind; // based on TNF + JSON. |
- USVString type; // IANA media type, with parameters. |
- // TODO(riju_): https://crbug.com/537133 |
- any data; // null, string (text, url), Object (json), ArrayBuffer. |
+// typedef (DOMString or unrestricted double or object or ArrayBuffer) NFCRecordData; |
+ |
+dictionary NFCRecord { |
+ NFCRecordType kind; |
+ USVString type; |
+ // NFCRecordData data; |
+ // Blink IDL compiler complains that Object is not supported as an union member, |
kenneth.r.christiansen
2015/10/13 12:50:00
Use ´any´ as IDL compiler complains that Object is
|
+ // hence using "any" until the bug is fixed. |
+ // TODO(riju_): see https://crbug.com/537133 for more information. |
+ any data; |
}; |