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

Issue 2136733002: Mojo C++ bindings: add a new mode to generator to use native STL/WTF types (Closed)

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

Description

Mojo C++ bindings: add a new mode to generator to use native STL/WTF types Users can add "use_new_wrapper_types = true" to their mojom targets to make the generator map mojom array/map/string to STL types (for chromium variant) or WTF types (for blink variant). This CL also switches bindings tests to use the new mode BUG=624136 Committed: https://crrev.com/c875b8baff46f35eb650e1f837d13d8c9ea1a862 Cr-Commit-Position: refs/heads/master@{#405273}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Total comments: 7

Patch Set 5 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+991 lines, -452 lines) Patch
M device/bluetooth/public/interfaces/bluetooth_uuid_struct_traits.h View 1 1 chunk +7 lines, -19 lines 0 comments Download
M mojo/mojo_public.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/mojo_public.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M mojo/mojo_public_tests.gyp View 1 6 chunks +8 lines, -0 lines 0 comments Download
M mojo/mojom_bindings_generator.gypi View 1 3 chunks +12 lines, -0 lines 0 comments Download
M mojo/mojom_bindings_generator_explicit.gypi View 1 3 chunks +12 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/BUILD.gn View 1 2 chunks +3 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/array.h View 1 2 4 chunks +6 lines, -14 lines 0 comments Download
M mojo/public/cpp/bindings/array_traits_stl.h View 1 2 3 1 chunk +10 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/lib/bindings_internal.h View 1 2 3 4 2 chunks +13 lines, -0 lines 0 comments Download
A mojo/public/cpp/bindings/lib/clone_equals_util.h View 1 1 chunk +161 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/lib/serialization_forward.h View 1 4 chunks +69 lines, -3 lines 0 comments Download
M mojo/public/cpp/bindings/lib/template_util.h View 1 1 chunk +0 lines, -48 lines 0 comments Download
A mojo/public/cpp/bindings/lib/wtf_clone_equals_util.h View 1 1 chunk +76 lines, -0 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.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M mojo/public/cpp/bindings/map_traits_stl.h View 2 chunks +52 lines, -0 lines 0 comments Download
A mojo/public/cpp/bindings/map_traits_wtf_hash_map.h View 1 chunk +71 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/native_enum.h View 1 2 chunks +11 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/binding_callback_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M mojo/public/cpp/bindings/tests/e2e_perftest.cc View 1 2 4 chunks +5 lines, -5 lines 0 comments Download
M mojo/public/cpp/bindings/tests/equals_unittest.cc View 2 chunks +17 lines, -15 lines 0 comments Download
M mojo/public/cpp/bindings/tests/handle_passing_unittest.cc View 5 chunks +9 lines, -9 lines 0 comments Download
M mojo/public/cpp/bindings/tests/pickle_unittest.cc View 4 chunks +31 lines, -29 lines 0 comments Download
M mojo/public/cpp/bindings/tests/request_response_unittest.cc View 5 chunks +10 lines, -11 lines 0 comments Download
M mojo/public/cpp/bindings/tests/sample_service_unittest.cc View 9 chunks +47 lines, -40 lines 0 comments Download
M mojo/public/cpp/bindings/tests/serialization_warning_unittest.cc View 3 chunks +0 lines, -25 lines 0 comments Download
M mojo/public/cpp/bindings/tests/stl_converters_unittest.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M mojo/public/cpp/bindings/tests/struct_unittest.cc View 12 chunks +62 lines, -62 lines 0 comments Download
M mojo/public/cpp/bindings/tests/type_conversion_unittest.cc View 2 chunks +9 lines, -4 lines 0 comments Download
M mojo/public/cpp/bindings/tests/union_unittest.cc View 1 5 chunks +23 lines, -23 lines 0 comments Download
M mojo/public/cpp/bindings/tests/wtf_types_unittest.cc View 1 9 chunks +49 lines, -45 lines 0 comments Download
M mojo/public/cpp/bindings/wtf_array.h View 1 3 chunks +3 lines, -10 lines 0 comments Download
M mojo/public/cpp/bindings/wtf_map.h View 1 3 chunks +3 lines, -17 lines 0 comments Download
M mojo/public/interfaces/bindings/tests/BUILD.gn View 9 chunks +10 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/enum_macros.tmpl View 1 1 chunk +6 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/interface_declaration.tmpl View 1 chunk +2 lines, -1 line 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl View 2 chunks +4 lines, -2 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/interface_macros.tmpl View 2 chunks +9 lines, -7 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl View 1 6 chunks +84 lines, -30 lines 0 comments Download
M mojo/public/tools/bindings/generators/mojom_cpp_generator.py View 1 8 chunks +57 lines, -13 lines 0 comments Download
M mojo/public/tools/bindings/mojom.gni View 1 2 3 4 2 chunks +15 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/mojom_bindings_generator.py View 2 chunks +6 lines, -1 line 0 comments Download
M mojo/public/tools/bindings/pylib/mojom/generate/generator.py View 1 chunk +3 lines, -1 line 0 comments Download
M mojo/public/tools/bindings/pylib/mojom/generate/module.py View 1 chunk +0 lines, -5 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 22 (7 generated)
yzshen1
Hi, Ken and Daniel. Would you please take a look? Thanks! Ken: everything Daniel: device/bluetooth/public/interfaces/bluetooth_uuid_struct_traits.h ...
4 years, 5 months ago (2016-07-11 21:03:43 UTC) #4
yzshen1
On 2016/07/11 21:03:43, yzshen1 wrote: > Hi, Ken and Daniel. > > Would you please ...
4 years, 5 months ago (2016-07-11 22:43:53 UTC) #5
yzshen1
On 2016/07/11 22:43:53, yzshen1 wrote: > On 2016/07/11 21:03:43, yzshen1 wrote: > > Hi, Ken ...
4 years, 5 months ago (2016-07-11 23:57:19 UTC) #6
Ken Rockot(use gerrit already)
fantastic. LGTM! https://codereview.chromium.org/2136733002/diff/60001/mojo/public/cpp/bindings/array_traits_stl.h File mojo/public/cpp/bindings/array_traits_stl.h (right): https://codereview.chromium.org/2136733002/diff/60001/mojo/public/cpp/bindings/array_traits_stl.h#newcode49 mojo/public/cpp/bindings/array_traits_stl.h:49: // std::vector<std::vector<MoveOnlyType>>. weird
4 years, 5 months ago (2016-07-11 23:59:03 UTC) #7
dcheng
Is the eventual plan to convert all bindings, or will we end up keeping both ...
4 years, 5 months ago (2016-07-12 04:19:42 UTC) #8
yzshen1
On 2016/07/12 04:19:42, dcheng wrote: > Is the eventual plan to convert all bindings, or ...
4 years, 5 months ago (2016-07-12 16:29:00 UTC) #9
yzshen1
https://codereview.chromium.org/2136733002/diff/60001/mojo/public/cpp/bindings/array_traits_stl.h File mojo/public/cpp/bindings/array_traits_stl.h (right): https://codereview.chromium.org/2136733002/diff/60001/mojo/public/cpp/bindings/array_traits_stl.h#newcode49 mojo/public/cpp/bindings/array_traits_stl.h:49: // std::vector<std::vector<MoveOnlyType>>. On 2016/07/11 23:59:03, Ken Rockot wrote: > ...
4 years, 5 months ago (2016-07-12 16:29:20 UTC) #10
dcheng
LGTM https://codereview.chromium.org/2136733002/diff/60001/mojo/public/cpp/bindings/map_traits_wtf_hash_map.h File mojo/public/cpp/bindings/map_traits_wtf_hash_map.h (right): https://codereview.chromium.org/2136733002/diff/60001/mojo/public/cpp/bindings/map_traits_wtf_hash_map.h#newcode27 mojo/public/cpp/bindings/map_traits_wtf_hash_map.h:27: // WTF::HashMap<> doesn't support null state. Set it ...
4 years, 5 months ago (2016-07-13 14:04:44 UTC) #11
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/2136733002/80001
4 years, 5 months ago (2016-07-13 15:24:49 UTC) #14
yzshen1
On 2016/07/13 14:04:44, dcheng wrote: > LGTM > > https://codereview.chromium.org/2136733002/diff/60001/mojo/public/cpp/bindings/map_traits_wtf_hash_map.h > File mojo/public/cpp/bindings/map_traits_wtf_hash_map.h (right): > ...
4 years, 5 months ago (2016-07-13 15:34:02 UTC) #15
dcheng
On 2016/07/13 15:34:02, yzshen1 wrote: > On 2016/07/13 14:04:44, dcheng wrote: > > LGTM > ...
4 years, 5 months ago (2016-07-13 16:22:04 UTC) #16
yzshen1
On 2016/07/13 16:22:04, dcheng wrote: > On 2016/07/13 15:34:02, yzshen1 wrote: > > On 2016/07/13 ...
4 years, 5 months ago (2016-07-13 19:12:22 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-07-13 20:24:33 UTC) #19
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-13 20:24:37 UTC) #20
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 20:26:53 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c875b8baff46f35eb650e1f837d13d8c9ea1a862
Cr-Commit-Position: refs/heads/master@{#405273}

Powered by Google App Engine
This is Rietveld 408576698