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

Issue 1759373003: [webnfc] Implement nfc.watch in blink nfc module. (Closed)

Created:
4 years, 9 months ago by shalamov
Modified:
4 years ago
CC:
blink-reviews, chromium-reviews, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@implement_nfc_push_in_android
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[webnfc] Implement nfc.watch in blink nfc module. Implementation for nfc.watch and nfc.cancelWatch methods in blink nfc module. https://w3c.github.io/web-nfc/#dom-nfc-watch https://w3c.github.io/web-nfc/#dom-nfc-cancelwatch LayoutTests/nfc/watch.html is added to validate input parameters and conversion between WebNFC and corresponding mojo data structures. BUG=520391 Committed: https://crrev.com/177f40f726442a7c2b489c3df87933baa5338e0b Cr-Commit-Position: refs/heads/master@{#434468}

Patch Set 1 #

Patch Set 2 : Rebase to master, add tests for new functionality. #

Patch Set 3 : Rebased. #

Total comments: 24

Patch Set 4 : Fixes for Kenneth's comments. #

Patch Set 5 : Use createBaseCallback instead of custom callback. #

Patch Set 6 : Use WeakPersistentThisPointer only for callbacks. #

Patch Set 7 : Rebased to master and improved tests #

Total comments: 12

Patch Set 8 : Fixes for comments from dcheng. #

Patch Set 9 : Rebased to master #

Total comments: 8

Patch Set 10 : Move max message size check to https://crrev.com/2524743002 #

Patch Set 11 : Use ScriptState provided in Nfc::watch #

Total comments: 10

Patch Set 12 : Fixes for comments from haraken #

Unified diffs Side-by-side diffs Delta from patch set Stats (+472 lines, -29 lines) Patch
M third_party/WebKit/LayoutTests/nfc/resources/nfc-helpers.js View 1 2 3 4 5 6 7 8 11 chunks +138 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/nfc/watch.html View 1 2 3 4 5 6 1 chunk +74 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/nfc/MessageCallback.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/nfc/NFC.h View 1 2 3 4 5 6 7 8 3 chunks +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/nfc/NFC.cpp View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +241 lines, -29 lines 0 comments Download

Messages

Total messages: 48 (28 generated)
shalamov
Please take a look.
4 years, 8 months ago (2016-04-22 13:53:40 UTC) #4
kenneth.christiansen
https://codereview.chromium.org/1759373003/diff/60001/third_party/WebKit/LayoutTests/nfc/resources/nfc-helpers.js File third_party/WebKit/LayoutTests/nfc/resources/nfc-helpers.js (right): https://codereview.chromium.org/1759373003/diff/60001/third_party/WebKit/LayoutTests/nfc/resources/nfc-helpers.js#newcode41 third_party/WebKit/LayoutTests/nfc/resources/nfc-helpers.js:41: return { url: url, recordType: recordType, mediaType: mediaType, mode: ...
4 years, 7 months ago (2016-04-25 08:22:48 UTC) #5
kenneth.christiansen
https://codereview.chromium.org/1759373003/diff/60001/third_party/WebKit/LayoutTests/nfc/resources/nfc-helpers.js File third_party/WebKit/LayoutTests/nfc/resources/nfc-helpers.js (right): https://codereview.chromium.org/1759373003/diff/60001/third_party/WebKit/LayoutTests/nfc/resources/nfc-helpers.js#newcode98 third_party/WebKit/LayoutTests/nfc/resources/nfc-helpers.js:98: return nfc.NFCWatchMode.ANY; You can add a default here instead ...
4 years, 7 months ago (2016-04-25 08:31:47 UTC) #6
shalamov
https://codereview.chromium.org/1759373003/diff/60001/third_party/WebKit/LayoutTests/nfc/resources/nfc-helpers.js File third_party/WebKit/LayoutTests/nfc/resources/nfc-helpers.js (right): https://codereview.chromium.org/1759373003/diff/60001/third_party/WebKit/LayoutTests/nfc/resources/nfc-helpers.js#newcode41 third_party/WebKit/LayoutTests/nfc/resources/nfc-helpers.js:41: return { url: url, recordType: recordType, mediaType: mediaType, mode: ...
4 years, 7 months ago (2016-04-25 11:31:04 UTC) #7
kenneth.r.christiansen
lgtm
4 years, 7 months ago (2016-04-25 11:41:45 UTC) #9
shalamov
dcheng, could you please take a look at device/nfc/nfc.mojom I've added constant that limits max ...
4 years, 3 months ago (2016-08-23 10:46:10 UTC) #12
dcheng
https://codereview.chromium.org/1759373003/diff/220001/device/nfc/nfc.mojom File device/nfc/nfc.mojom (right): https://codereview.chromium.org/1759373003/diff/220001/device/nfc/nfc.mojom#newcode70 device/nfc/nfc.mojom:70: const uint32 kMaxNFCMessageSize = 32768; Nit: omit NFCMessage here, ...
4 years, 3 months ago (2016-09-08 04:42:39 UTC) #13
shalamov
https://codereview.chromium.org/1759373003/diff/220001/device/nfc/nfc.mojom File device/nfc/nfc.mojom (right): https://codereview.chromium.org/1759373003/diff/220001/device/nfc/nfc.mojom#newcode70 device/nfc/nfc.mojom:70: const uint32 kMaxNFCMessageSize = 32768; On 2016/09/08 04:42:38, dcheng ...
4 years, 2 months ago (2016-09-22 13:53:22 UTC) #15
shalamov
Tom, could you please check mojom modifications. @haraken, could you take a look at modules/nfc ...
4 years ago (2016-11-21 13:38:00 UTC) #26
Tom Sepez
Otherwise looks good. https://codereview.chromium.org/1759373003/diff/260001/device/nfc/nfc.mojom File device/nfc/nfc.mojom (right): https://codereview.chromium.org/1759373003/diff/260001/device/nfc/nfc.mojom#newcode71 device/nfc/nfc.mojom:71: const uint32 kMaxSize = 32768; Where ...
4 years ago (2016-11-21 18:12:34 UTC) #28
haraken
This CL is doing multiple CLs in one go -- would it be possible to ...
4 years ago (2016-11-22 02:38:14 UTC) #29
shalamov
Moved max message size check to https://codereview.chromium.org/2524743002/ https://codereview.chromium.org/1759373003/diff/260001/device/nfc/nfc.mojom File device/nfc/nfc.mojom (right): https://codereview.chromium.org/1759373003/diff/260001/device/nfc/nfc.mojom#newcode71 device/nfc/nfc.mojom:71: const uint32 ...
4 years ago (2016-11-22 12:50:41 UTC) #30
haraken
https://codereview.chromium.org/1759373003/diff/260001/third_party/WebKit/Source/modules/nfc/NFC.cpp File third_party/WebKit/Source/modules/nfc/NFC.cpp (right): https://codereview.chromium.org/1759373003/diff/260001/third_party/WebKit/Source/modules/nfc/NFC.cpp#newcode756 third_party/WebKit/Source/modules/nfc/NFC.cpp:756: ScriptState::forMainWorld(toLocalFrame(page()->mainFrame())); On 2016/11/22 12:50:41, shalamov wrote: > On 2016/11/22 ...
4 years ago (2016-11-22 14:39:09 UTC) #31
Tom Sepez
Nothing left for me to review in this CL, I'll chime in on the others. ...
4 years ago (2016-11-22 16:58:23 UTC) #32
shalamov
https://codereview.chromium.org/1759373003/diff/260001/third_party/WebKit/Source/modules/nfc/NFC.cpp File third_party/WebKit/Source/modules/nfc/NFC.cpp (right): https://codereview.chromium.org/1759373003/diff/260001/third_party/WebKit/Source/modules/nfc/NFC.cpp#newcode756 third_party/WebKit/Source/modules/nfc/NFC.cpp:756: ScriptState::forMainWorld(toLocalFrame(page()->mainFrame())); On 2016/11/22 14:39:09, haraken wrote: > On 2016/11/22 ...
4 years ago (2016-11-23 12:10:45 UTC) #34
haraken
LGTM on my side. https://codereview.chromium.org/1759373003/diff/300001/third_party/WebKit/Source/modules/nfc/NFC.cpp File third_party/WebKit/Source/modules/nfc/NFC.cpp (right): https://codereview.chromium.org/1759373003/diff/300001/third_party/WebKit/Source/modules/nfc/NFC.cpp#newcode490 third_party/WebKit/Source/modules/nfc/NFC.cpp:490: ScriptState* scriptState) { Move ScriptState ...
4 years ago (2016-11-23 13:35:16 UTC) #35
shalamov
https://codereview.chromium.org/1759373003/diff/300001/third_party/WebKit/Source/modules/nfc/NFC.cpp File third_party/WebKit/Source/modules/nfc/NFC.cpp (right): https://codereview.chromium.org/1759373003/diff/300001/third_party/WebKit/Source/modules/nfc/NFC.cpp#newcode490 third_party/WebKit/Source/modules/nfc/NFC.cpp:490: ScriptState* scriptState) { On 2016/11/23 13:35:15, haraken wrote: > ...
4 years ago (2016-11-23 14:58:38 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/1759373003/320001
4 years ago (2016-11-25 07:21:56 UTC) #43
commit-bot: I haz the power
Committed patchset #12 (id:320001)
4 years ago (2016-11-25 09:34:40 UTC) #46
commit-bot: I haz the power
4 years ago (2016-11-25 09:36:59 UTC) #48
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/177f40f726442a7c2b489c3df87933baa5338e0b
Cr-Commit-Position: refs/heads/master@{#434468}

Powered by Google App Engine
This is Rietveld 408576698