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

Unified Diff: third_party/WebKit/Source/modules/nfc/NFCWatchOptions.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/NFCWatchOptions.idl
diff --git a/third_party/WebKit/Source/modules/nfc/NFCWatchOptions.idl b/third_party/WebKit/Source/modules/nfc/NFCWatchOptions.idl
index 971497a05250db00b544305624b76746a974bc83..8a4722dedaa56f2801beb82d34b74a41f5787148 100644
--- a/third_party/WebKit/Source/modules/nfc/NFCWatchOptions.idl
+++ b/third_party/WebKit/Source/modules/nfc/NFCWatchOptions.idl
@@ -2,15 +2,13 @@
// 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/#idl-def-nfcwatchoptions
+// https://w3c.github.io/web-nfc/#the-nfcwatchoptions-dictionary
enum NFCWatchMode { "web-nfc-only", "any" };
-[
- RuntimeEnabled=WebNFC,
-] dictionary NFCWatchOptions {
- USVString url = "";
- USVString kind = "";
- USVString type = "";
+dictionary NFCWatchOptions {
+ USVString url = "";
+ NFCRecordType? recordType;
+ USVString mediaType = "";
NFCWatchMode mode = "web-nfc-only";
};

Powered by Google App Engine
This is Rietveld 408576698