[webnfc] Step 2.

Add NFCPushOptions
Add NFCRecord
Add NFCWatchOptions

enum NFCPushTarget {"tag", "peer"};

dictionary NFCPushOptions {
  NFCPushTarget target;
  unsigned long timeout;
};

enum NFCRecordType { "empty", "text", "url", "json", "opaque" };

dictionary NFCRecord {
  NFCRecordType kind;
  USVString type;
  any data;
};

dictionary NFCWatchOptions {
  USVString    url = "";
  USVString    kind = "";
  USVString    type = "";
  NFCWatchMode mode = "web-nfc-only";
};

enum NFCWatchMode {"web-nfc-only", "any"};

BUG=520391

Review URL: https://codereview.chromium.org/1375483002

Cr-Commit-Position: refs/heads/master@{#353717}
4 files changed