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

Issue 2014403002: Mojo C++ bindings: custom type mapping of map (Closed)

Created:
4 years, 7 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), 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: custom type mapping of map This CL: - introduces map_traits which is similar to struct_traits; - adds specialization for mojo::Map and std::map; - changes the ArraySerializer interface so that it can be re-used by map key/value serialization. BUG=577686 Committed: https://crrev.com/507ce12625f5a76456ca3f7c844aa65d025aa0b2 Cr-Commit-Position: refs/heads/master@{#396862}

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+477 lines, -125 lines) Patch
M mojo/mojo_public.gyp View 1 chunk +3 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/BUILD.gn View 1 chunk +3 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/array_traits.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/lib/array_serialization.h View 1 17 chunks +105 lines, -47 lines 0 comments Download
M mojo/public/cpp/bindings/lib/map_internal.h View 2 chunks +3 lines, -3 lines 0 comments Download
M mojo/public/cpp/bindings/lib/map_serialization.h View 1 4 chunks +116 lines, -59 lines 0 comments Download
M mojo/public/cpp/bindings/lib/serialization.h View 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/lib/serialization_forward.h View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/cpp/bindings/lib/serialization_util.h View 1 1 chunk +31 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/map.h View 3 chunks +8 lines, -1 line 0 comments Download
A mojo/public/cpp/bindings/map_traits.h View 1 chunk +54 lines, -0 lines 0 comments Download
A mojo/public/cpp/bindings/map_traits_standard.h View 1 chunk +51 lines, -0 lines 0 comments Download
A mojo/public/cpp/bindings/map_traits_stl.h View 1 chunk +59 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/struct_traits.h View 1 chunk +4 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/struct_traits_unittest.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/struct_with_traits_impl.h View 4 chunks +13 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/struct_with_traits_impl.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.h View 1 chunk +5 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M mojo/public/interfaces/bindings/tests/struct_with_traits.mojom View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/tools/bindings/blink_bindings_configuration.gni View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_declaration.tmpl View 2 chunks +3 lines, -2 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_definition.tmpl View 1 chunk +2 lines, -13 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
yzshen1
Hi, Ken. Would you please take a look? Thanks!
4 years, 7 months ago (2016-05-26 21:55:39 UTC) #2
yzshen1
https://codereview.chromium.org/2014403002/diff/1/mojo/public/cpp/bindings/lib/map_serialization.h File mojo/public/cpp/bindings/lib/map_serialization.h (left): https://codereview.chromium.org/2014403002/diff/1/mojo/public/cpp/bindings/lib/map_serialization.h#oldcode100 mojo/public/cpp/bindings/lib/map_serialization.h:100: // short-circuit on failure here. (I think we can ...
4 years, 7 months ago (2016-05-26 21:58:30 UTC) #3
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/2014403002/diff/1/mojo/public/cpp/bindings/lib/array_serialization.h File mojo/public/cpp/bindings/lib/array_serialization.h (right): https://codereview.chromium.org/2014403002/diff/1/mojo/public/cpp/bindings/lib/array_serialization.h#newcode71 mojo/public/cpp/bindings/lib/array_serialization.h:71: return Traits::GetData(input_); If this can work in the ...
4 years, 6 months ago (2016-05-27 16:07:39 UTC) #4
yzshen1
Thanks! https://codereview.chromium.org/2014403002/diff/1/mojo/public/cpp/bindings/lib/array_serialization.h File mojo/public/cpp/bindings/lib/array_serialization.h (right): https://codereview.chromium.org/2014403002/diff/1/mojo/public/cpp/bindings/lib/array_serialization.h#newcode71 mojo/public/cpp/bindings/lib/array_serialization.h:71: return Traits::GetData(input_); On 2016/05/27 16:07:39, Ken Rockot wrote: ...
4 years, 6 months ago (2016-05-28 00:23:07 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2014403002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2014403002/20001
4 years, 6 months ago (2016-05-28 00:29:28 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clobber_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_clobber_rel_ng/builds/181831)
4 years, 6 months ago (2016-05-28 00:50:56 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2014403002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2014403002/40001
4 years, 6 months ago (2016-05-31 16:25:08 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-05-31 18:08:44 UTC) #14
commit-bot: I haz the power
4 years, 6 months ago (2016-05-31 18:10:08 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/507ce12625f5a76456ca3f7c844aa65d025aa0b2
Cr-Commit-Position: refs/heads/master@{#396862}

Powered by Google App Engine
This is Rietveld 408576698