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

Issue 2034273002: Mojo C++ bindings: introduce mojo::WTFMap for blink bindings. (Closed)

Created:
4 years, 6 months ago by yzshen1
Modified:
4 years, 6 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), esprehn, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mojo C++ bindings: introduce mojo::WTFMap for blink bindings. BUG=583738 Committed: https://crrev.com/5430084b388ddcf3913c32c7b86ba269a4f258a7 Cr-Commit-Position: refs/heads/master@{#400223}

Patch Set 1 #

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Patch Set 4 : Add enum key support in blink; disallow invalid keys during deserialization #

Patch Set 5 : #

Patch Set 6 : resolve conflicts #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : removed the code of adding enum key support to WTF::HashMap; which turned out to be non-trivial; wi… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+739 lines, -206 lines) Patch
M mojo/mojo_edk_tests.gyp View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M mojo/mojo_public.gyp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/lib/array_serialization.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/cpp/bindings/lib/map_serialization.h View 1 2 3 4 chunks +9 lines, -6 lines 0 comments Download
M mojo/public/cpp/bindings/lib/wtf_serialization.h View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/cpp/bindings/map_traits.h View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/map_traits_standard.h View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/map_traits_stl.h View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
A mojo/public/cpp/bindings/map_traits_wtf.h View 1 2 3 4 5 6 1 chunk +62 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/BUILD.gn View 1 2 chunks +3 lines, -0 lines 0 comments Download
A mojo/public/cpp/bindings/tests/map_common_test.h View 1 2 1 chunk +230 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/map_unittest.cc View 1 2 3 chunks +8 lines, -170 lines 0 comments Download
A mojo/public/cpp/bindings/tests/wtf_map_unittest.cc View 1 chunk +67 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/wtf_types_unittest.cc View 1 2 8 chunks +108 lines, -4 lines 0 comments Download
M mojo/public/cpp/bindings/wtf_array.h View 5 6 7 8 1 chunk +0 lines, -4 lines 0 comments Download
A mojo/public/cpp/bindings/wtf_map.h View 1 2 3 4 5 6 7 8 1 chunk +214 lines, -0 lines 0 comments Download
M mojo/public/interfaces/bindings/tests/test_structs.mojom View 1 chunk +2 lines, -1 line 0 comments Download
M mojo/public/interfaces/bindings/tests/test_wtf_types.mojom View 1 chunk +7 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/blink_bindings_configuration.gni View 1 2 3 4 5 6 7 8 1 chunk +1 line, -10 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/mojom_cpp_generator.py View 1 2 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (4 generated)
yzshen1
Hi, Would you please take a look? Thanks! Ken: everything Yuta: the usage of WTF::HashMap ...
4 years, 6 months ago (2016-06-03 22:18:56 UTC) #2
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/2034273002/diff/20001/mojo/public/tools/bindings/blink_bindings_configuration.gni File mojo/public/tools/bindings/blink_bindings_configuration.gni (left): https://codereview.chromium.org/2034273002/diff/20001/mojo/public/tools/bindings/blink_bindings_configuration.gni#oldcode25 mojo/public/tools/bindings/blink_bindings_configuration.gni:25: blacklist = [ Woohoo!
4 years, 6 months ago (2016-06-03 23:14:23 UTC) #3
haraken
I haven't reviewed the details, but the approach LGTM.
4 years, 6 months ago (2016-06-06 04:18:36 UTC) #4
Yuta Kitamura
LGTM, the use of WTF::HashMap in WTFMap appears sane. https://codereview.chromium.org/2034273002/diff/20001/mojo/public/cpp/bindings/wtf_map.h File mojo/public/cpp/bindings/wtf_map.h (right): https://codereview.chromium.org/2034273002/diff/20001/mojo/public/cpp/bindings/wtf_map.h#newcode200 mojo/public/cpp/bindings/wtf_map.h:200: ...
4 years, 6 months ago (2016-06-06 05:29:42 UTC) #5
yzshen1
On 2016/06/06 05:29:42, Yuta Kitamura wrote: > LGTM, the use of WTF::HashMap in WTFMap appears ...
4 years, 6 months ago (2016-06-06 20:48:57 UTC) #6
esprehn
WTF maps are also not ordered. It's not a std::map, it's a specialized std::hash_map that ...
4 years, 6 months ago (2016-06-06 21:20:24 UTC) #7
yzshen1
On Mon, Jun 6, 2016 at 2:20 PM, Elliott Sprehn <esprehn@chromium.org> wrote: > WTF maps ...
4 years, 6 months ago (2016-06-06 21:30:26 UTC) #8
esprehn
>> WTF maps are also not ordered. It's not a std::map, it's a specialized std::hash_map ...
4 years, 6 months ago (2016-06-06 21:43:45 UTC) #9
esprehn
Fwiw we could also try choosing different values. I don't know why we chose -1, ...
4 years, 6 months ago (2016-06-06 21:53:33 UTC) #10
Ken Rockot(use gerrit already)
On Mon, Jun 6, 2016 at 2:43 PM, Elliott Sprehn <esprehn@chromium.org> wrote: > >> WTF ...
4 years, 6 months ago (2016-06-07 15:49:08 UTC) #11
yzshen1
Hi, reviewers. According to our offline discussion, I have added better documentation and also rejected ...
4 years, 6 months ago (2016-06-07 23:49:11 UTC) #12
Yuta Kitamura
Still LGTM
4 years, 6 months ago (2016-06-09 09:46:20 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2034273002/160001
4 years, 6 months ago (2016-06-16 19:03:50 UTC) #16
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 6 months ago (2016-06-16 19:09:09 UTC) #17
commit-bot: I haz the power
4 years, 6 months ago (2016-06-16 19:10:16 UTC) #19
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/5430084b388ddcf3913c32c7b86ba269a4f258a7
Cr-Commit-Position: refs/heads/master@{#400223}

Powered by Google App Engine
This is Rietveld 408576698