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

Issue 1375483002: [webnfc] Step 2. Add IDL stubs for NFCRecord, NFCPushOptions, NFCWatchOptions (Closed)

Created:
5 years, 2 months ago by riju_
Modified:
5 years, 2 months ago
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[webnfc] Step 2. Add IDL s for NFCRecord, NFCPushOptions, 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 Committed: https://crrev.com/47f74ffa7fb97338cab582aeffab45d817ea10b6 Cr-Commit-Position: refs/heads/master@{#353717}

Patch Set 1 #

Total comments: 2

Patch Set 2 : remove comment, add a note for blink idl bug. #

Total comments: 6

Patch Set 3 : update idls to reflect changes in spec. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -0 lines) Patch
M third_party/WebKit/Source/modules/modules.gypi View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/nfc/NFCPushOptions.idl View 1 2 1 chunk +14 lines, -0 lines 1 comment Download
A third_party/WebKit/Source/modules/nfc/NFCRecord.idl View 1 1 chunk +16 lines, -0 lines 2 comments Download
A third_party/WebKit/Source/modules/nfc/NFCWatchOptions.idl View 1 2 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
riju_
PTAL. For NFCRecord idl, I am using "any". Please see -> https://github.com/w3c/web-nfc/issues/52
5 years, 2 months ago (2015-09-29 07:23:32 UTC) #2
kenneth.christiansen
Have you filed a blink bug for the issue you linked to? (that you have ...
5 years, 2 months ago (2015-09-29 08:20:26 UTC) #4
riju_
Blink IDL bug filed : https://crbug.com/537133 https://codereview.chromium.org/1375483002/diff/1/third_party/WebKit/Source/modules/nfc/NFCPushOptions.idl File third_party/WebKit/Source/modules/nfc/NFCPushOptions.idl (right): https://codereview.chromium.org/1375483002/diff/1/third_party/WebKit/Source/modules/nfc/NFCPushOptions.idl#newcode13 third_party/WebKit/Source/modules/nfc/NFCPushOptions.idl:13: unsigned long timeout; ...
5 years, 2 months ago (2015-09-30 08:19:17 UTC) #6
Jeffrey Yasskin
I'm going to be minimally available through the end of october, so please don't block ...
5 years, 2 months ago (2015-10-12 22:13:45 UTC) #7
riju_
Thanks jeffrey, hopefully the spec is more stable now. https://codereview.chromium.org/1375483002/diff/40001/third_party/WebKit/Source/modules/nfc/NFCPushOptions.idl File third_party/WebKit/Source/modules/nfc/NFCPushOptions.idl (right): https://codereview.chromium.org/1375483002/diff/40001/third_party/WebKit/Source/modules/nfc/NFCPushOptions.idl#newcode7 third_party/WebKit/Source/modules/nfc/NFCPushOptions.idl:7: ...
5 years, 2 months ago (2015-10-13 10:51:56 UTC) #8
kenneth.r.christiansen
lgtm
5 years, 2 months ago (2015-10-13 10:57:45 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1375483002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1375483002/60001
5 years, 2 months ago (2015-10-13 11:00:03 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years, 2 months ago (2015-10-13 11:04:40 UTC) #12
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/47f74ffa7fb97338cab582aeffab45d817ea10b6 Cr-Commit-Position: refs/heads/master@{#353717}
5 years, 2 months ago (2015-10-13 11:09:12 UTC) #13
Peter Beverloo
A few drive-by nits, sorry :) I came across this CL because of the subject: ...
5 years, 2 months ago (2015-10-13 11:19:58 UTC) #15
kenneth.christiansen
5 years, 2 months ago (2015-10-13 11:26:00 UTC) #16
Message was sent while issue was closed.
On 2015/10/13 11:19:58, Peter Beverloo wrote:
> A few drive-by nits, sorry :)
> 
> I came across this CL because of the subject: "[webnfc] Step 2.". The subject
is
> intended to be a brief one-liner describing what the change is. It'd be great
if
> you could try to make that more descriptive than "step 2".

Doh, my fault, I should have paid attention to the title. I agree that this
should be more descriptive, like "Add WebIDL stubs for the WebNFC API" or
similar.

> nit: dictionaries are not Web exposed, no need for RuntimeEnabled= on them.

Thanks for that info.

> micro nit: comments such as this make the code a bit convoluted - one can read
> the spec for this (and has to anyway, because I have no idea what TNF means).

I had the same comment - but don't feel strongly about it

Powered by Google App Engine
This is Rietveld 408576698