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

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

Issue 1444303002: [webnfc] Align NFC interface with latest specification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes for review comments from Kenneth Created 5 years, 1 month 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
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 a20ccbbc17d437cd002d7150e57e6a7a5e7e7b37..48bfd2435f522b7fc63e0b1536b78c27d3f91249 100644
--- a/third_party/WebKit/Source/modules/nfc/NFCRecord.idl
+++ b/third_party/WebKit/Source/modules/nfc/NFCRecord.idl
@@ -2,17 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// https://w3c.github.io/web-nfc/index.html#the-nfcrecord-dictionary
+// https://w3c.github.io/web-nfc/#the-nfcrecord-dictionary
enum NFCRecordType { "empty", "text", "url", "json", "opaque" };
-// typedef (DOMString or unrestricted double or object or ArrayBuffer) NFCRecordData;
+// TODO(shalamov): This is blocked by https://crbug.com/524424
+// typedef (DOMString or unrestricted double or ArrayBuffer or Dictionary) NFCRecordData;
+typedef any 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;
+ NFCRecordType recordType;
+ USVString mediaType;
+ NFCRecordData data;
};

Powered by Google App Engine
This is Rietveld 408576698