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

Unified Diff: third_party/WebKit/Source/modules/nfc/NFCRecord.idl

Issue 1403933003: [webnfc] : Dictionaries in IDL are not Web exposed, so remove RuntimeEnabled= . (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/nfc/NFCPushOptions.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « third_party/WebKit/Source/modules/nfc/NFCPushOptions.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698