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

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: re-word comments. 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..a20ccbbc17d437cd002d7150e57e6a7a5e7e7b37 100644
--- a/third_party/WebKit/Source/modules/nfc/NFCRecord.idl
+++ b/third_party/WebKit/Source/modules/nfc/NFCRecord.idl
@@ -6,11 +6,13 @@
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;
+ // Use ´any´ as Blink IDL compiler complains that Object is not supported as
+ // union member. Tracked in https://crbug.com/537133 .
+ 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