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

Issue 2732163002: Implements JS bindings for mojo data pipe. (Closed)

Created:
3 years, 9 months ago by alokp
Modified:
3 years, 9 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implements JS bindings for mojo data pipe. BUG=647036 Review-Url: https://codereview.chromium.org/2732163002 Cr-Commit-Position: refs/heads/master@{#455477} Committed: https://chromium.googlesource.com/chromium/src/+/a04226e0012f12397a1f653dd264b7849112def2

Patch Set 1 #

Patch Set 2 : optional args #

Total comments: 20

Patch Set 3 : split readData #

Total comments: 2

Patch Set 4 : removes numBytes from readData #

Total comments: 2

Patch Set 5 : adds layout tests #

Patch Set 6 : rebaseline layout test #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+358 lines, -2 lines) Patch
A third_party/WebKit/LayoutTests/mojo/data-pipe.html View 1 2 3 4 1 chunk +145 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/BUILD.gn View 1 2 3 4 5 6 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/core_idl_files.gni View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/mojo/Mojo.h View 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/mojo/Mojo.cpp View 2 chunks +23 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/mojo/Mojo.idl View 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/core/mojo/MojoCreateDataPipeOptions.idl View 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/mojo/MojoCreateDataPipeResult.idl View 1 chunk +9 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/mojo/MojoDiscardDataOptions.idl View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/mojo/MojoHandle.h View 1 2 3 2 chunks +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/mojo/MojoHandle.cpp View 1 2 3 4 2 chunks +78 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/mojo/MojoHandle.idl View 1 2 3 1 chunk +9 lines, -2 lines 0 comments Download
A third_party/WebKit/Source/core/mojo/MojoReadDataOptions.idl View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/mojo/MojoReadDataResult.idl View 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/mojo/MojoWriteDataOptions.idl View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/mojo/MojoWriteDataResult.idl View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (10 generated)
alokp
The patch is functional, but I would appreciate any feedback on splitting readData API into ...
3 years, 9 months ago (2017-03-07 05:48:58 UTC) #2
jbroman
https://codereview.chromium.org/2732163002/diff/20001/third_party/WebKit/Source/core/mojo/MojoHandle.cpp File third_party/WebKit/Source/core/mojo/MojoHandle.cpp (right): https://codereview.chromium.org/2732163002/diff/20001/third_party/WebKit/Source/core/mojo/MojoHandle.cpp#newcode162 third_party/WebKit/Source/core/mojo/MojoHandle.cpp:162: unsigned numBytes, Any reason for the disparity between read/write, ...
3 years, 9 months ago (2017-03-07 16:01:44 UTC) #3
yzshen1
https://codereview.chromium.org/2732163002/diff/20001/third_party/WebKit/Source/core/mojo/MojoHandle.cpp File third_party/WebKit/Source/core/mojo/MojoHandle.cpp (right): https://codereview.chromium.org/2732163002/diff/20001/third_party/WebKit/Source/core/mojo/MojoHandle.cpp#newcode163 third_party/WebKit/Source/core/mojo/MojoHandle.cpp:163: ArrayBufferOrArrayBufferView& buffer, [just to double check] Is it because ...
3 years, 9 months ago (2017-03-07 17:56:39 UTC) #5
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2732163002/diff/20001/third_party/WebKit/Source/core/mojo/MojoHandle.idl File third_party/WebKit/Source/core/mojo/MojoHandle.idl (right): https://codereview.chromium.org/2732163002/diff/20001/third_party/WebKit/Source/core/mojo/MojoHandle.idl#newcode21 third_party/WebKit/Source/core/mojo/MojoHandle.idl:21: MojoReadDataResult readData(MojoReadDataFlags flags, optional unsigned long numBytes, optional BufferSource ...
3 years, 9 months ago (2017-03-07 18:09:51 UTC) #6
alokp
This is ready for another round of review. I will add tests once everyone is ...
3 years, 9 months ago (2017-03-07 19:34:20 UTC) #7
jbroman
https://codereview.chromium.org/2732163002/diff/20001/third_party/WebKit/Source/core/mojo/MojoHandle.cpp File third_party/WebKit/Source/core/mojo/MojoHandle.cpp (right): https://codereview.chromium.org/2732163002/diff/20001/third_party/WebKit/Source/core/mojo/MojoHandle.cpp#newcode162 third_party/WebKit/Source/core/mojo/MojoHandle.cpp:162: unsigned numBytes, On 2017/03/07 at 19:34:20, alokp wrote: > ...
3 years, 9 months ago (2017-03-07 20:31:47 UTC) #8
jbroman
aside from the layout test (which needs to be updated) and those nits, this l-g-t-m
3 years, 9 months ago (2017-03-07 20:34:01 UTC) #9
alokp
Thanks Jeremy. I will wait for Yuzhu/Ken to sign off on the API before adding ...
3 years, 9 months ago (2017-03-07 20:49:32 UTC) #10
yzshen1
LGTM with one nit https://codereview.chromium.org/2732163002/diff/60001/third_party/WebKit/Source/core/mojo/MojoHandle.cpp File third_party/WebKit/Source/core/mojo/MojoHandle.cpp (right): https://codereview.chromium.org/2732163002/diff/60001/third_party/WebKit/Source/core/mojo/MojoHandle.cpp#newcode17 third_party/WebKit/Source/core/mojo/MojoHandle.cpp:17: #include "core/mojo/MojoReadMessageFlags.h" Maybe we should ...
3 years, 9 months ago (2017-03-07 22:14:00 UTC) #11
alokp
Jeremy: Ready for your review. https://codereview.chromium.org/2732163002/diff/60001/third_party/WebKit/Source/core/mojo/MojoHandle.cpp File third_party/WebKit/Source/core/mojo/MojoHandle.cpp (right): https://codereview.chromium.org/2732163002/diff/60001/third_party/WebKit/Source/core/mojo/MojoHandle.cpp#newcode17 third_party/WebKit/Source/core/mojo/MojoHandle.cpp:17: #include "core/mojo/MojoReadMessageFlags.h" On 2017/03/07 ...
3 years, 9 months ago (2017-03-08 00:45:35 UTC) #12
jbroman
lgtm
3 years, 9 months ago (2017-03-08 15:26:46 UTC) #17
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/2732163002/120001
3 years, 9 months ago (2017-03-08 15:40:02 UTC) #20
commit-bot: I haz the power
3 years, 9 months ago (2017-03-08 17:04:02 UTC) #23
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/a04226e0012f12397a1f653dd264...

Powered by Google App Engine
This is Rietveld 408576698