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

Issue 1967703004: Mojo C++ bindings: add StringTraits and ArrayTraits for STL types. (Closed)

Created:
4 years, 7 months ago by yzshen1
Modified:
4 years, 7 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@27_update_users
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mojo C++ bindings: add StringTraits and ArrayTraits for STL types. It means mojom string and array can be automatically convert to/from std::string and std::vector, respectively. This CL also allows array of custom-mapped objects. BUG=577686 Committed: https://crrev.com/dec89e06f5f7d1c747df774086480b739fb0accc Cr-Commit-Position: refs/heads/master@{#393567}

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -104 lines) Patch
M mojo/mojo_public.gyp View 4 chunks +4 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/BUILD.gn View 4 chunks +4 lines, -2 lines 0 comments Download
A + mojo/public/cpp/bindings/array_traits_standard.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
A mojo/public/cpp/bindings/array_traits_stl.h View 1 1 chunk +50 lines, -0 lines 0 comments Download
A + mojo/public/cpp/bindings/array_traits_wtf.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
D mojo/public/cpp/bindings/lib/array_traits_standard.h View 1 1 chunk +0 lines, -40 lines 0 comments Download
D mojo/public/cpp/bindings/lib/array_traits_wtf.h View 1 1 chunk +0 lines, -37 lines 0 comments Download
M mojo/public/cpp/bindings/lib/serialization.h View 1 chunk +3 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/lib/wtf_serialization.h View 1 chunk +1 line, -1 line 0 comments Download
A mojo/public/cpp/bindings/string_traits_stl.h View 1 1 chunk +38 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/struct_traits_unittest.cc View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/struct_with_traits.typemap View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/tests/struct_with_traits_impl.h View 1 2 2 chunks +30 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.h View 1 2 3 chunks +29 lines, -3 lines 0 comments Download
M mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.cc View 1 2 1 chunk +27 lines, -4 lines 0 comments Download
M mojo/public/interfaces/bindings/tests/struct_with_traits.mojom View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/mojom_cpp_generator.py View 1 chunk +1 line, -5 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 11 (3 generated)
yzshen1
Hi, Ken. Please take a look. Thanks!
4 years, 7 months ago (2016-05-11 17:14:13 UTC) #2
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/1967703004/diff/20001/mojo/public/interfaces/bindings/tests/struct_with_traits.mojom File mojo/public/interfaces/bindings/tests/struct_with_traits.mojom (right): https://codereview.chromium.org/1967703004/diff/20001/mojo/public/interfaces/bindings/tests/struct_with_traits.mojom#newcode17 mojo/public/interfaces/bindings/tests/struct_with_traits.mojom:17: array<string> f_array_string; nit: I think it would be ...
4 years, 7 months ago (2016-05-13 14:35:52 UTC) #3
yzshen1
Thanks! https://codereview.chromium.org/1967703004/diff/20001/mojo/public/interfaces/bindings/tests/struct_with_traits.mojom File mojo/public/interfaces/bindings/tests/struct_with_traits.mojom (right): https://codereview.chromium.org/1967703004/diff/20001/mojo/public/interfaces/bindings/tests/struct_with_traits.mojom#newcode17 mojo/public/interfaces/bindings/tests/struct_with_traits.mojom:17: array<string> f_array_string; On 2016/05/13 14:35:51, Ken Rockot wrote: ...
4 years, 7 months ago (2016-05-13 16:01:18 UTC) #4
Ken Rockot(use gerrit already)
On 2016/05/13 at 16:01:18, yzshen wrote: > Thanks! > > https://codereview.chromium.org/1967703004/diff/20001/mojo/public/interfaces/bindings/tests/struct_with_traits.mojom > File mojo/public/interfaces/bindings/tests/struct_with_traits.mojom (right): ...
4 years, 7 months ago (2016-05-13 16:01:58 UTC) #5
Ken Rockot(use gerrit already)
On 2016/05/13 at 16:01:58, Ken Rockot wrote: > On 2016/05/13 at 16:01:18, yzshen wrote: > ...
4 years, 7 months ago (2016-05-13 16:02:10 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1967703004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1967703004/40001
4 years, 7 months ago (2016-05-13 16:04:01 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-13 17:29:27 UTC) #9
commit-bot: I haz the power
4 years, 7 months ago (2016-05-13 17:30:51 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/dec89e06f5f7d1c747df774086480b739fb0accc
Cr-Commit-Position: refs/heads/master@{#393567}

Powered by Google App Engine
This is Rietveld 408576698