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

Issue 2031823002: Mojo C++ bindings: more consistent Clone() and Equals(). (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), 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: more consistent Clone() and Equals(). With this change, the Clone() and Equals() methods of structs/unions/maps/arrays call Clone() and Equals() of elements if available, otherwise fall back on copy and == operator of elements. BUG=616527 Committed: https://crrev.com/14c4e1dca371579ceef264b8e3272b07c8bb92cb Cr-Commit-Position: refs/heads/master@{#397717}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+263 lines, -381 lines) Patch
M mojo/mojo_public.gyp View 2 chunks +0 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/BUILD.gn View 2 chunks +0 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/array.h View 4 chunks +11 lines, -35 lines 0 comments Download
M mojo/public/cpp/bindings/associated_interface_ptr_info.h View 1 chunk +9 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/associated_interface_request.h View 1 chunk +9 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/interface_ptr.h View 1 chunk +9 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/interface_request.h View 1 chunk +9 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/lib/array_internal.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/lib/array_serialization.h View 1 1 chunk +1 line, -0 lines 0 comments Download
D mojo/public/cpp/bindings/lib/map_internal.h View 1 chunk +0 lines, -46 lines 0 comments Download
M mojo/public/cpp/bindings/lib/template_util.h View 2 chunks +50 lines, -0 lines 0 comments Download
D mojo/public/cpp/bindings/lib/value_traits.h View 1 chunk +0 lines, -112 lines 0 comments Download
M mojo/public/cpp/bindings/map.h View 1 2 4 chunks +20 lines, -21 lines 0 comments Download
M mojo/public/cpp/bindings/tests/equals_unittest.cc View 2 chunks +10 lines, -16 lines 0 comments Download
M mojo/public/cpp/bindings/tests/struct_traits_unittest.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/tests/struct_with_traits_impl.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/struct_with_traits_impl.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/wtf_array.h View 3 chunks +11 lines, -39 lines 0 comments Download
M mojo/public/cpp/system/handle.h View 1 chunk +4 lines, -0 lines 0 comments Download
M mojo/public/interfaces/bindings/tests/struct_with_traits.mojom View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M mojo/public/interfaces/bindings/tests/test_unions.mojom View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/bindings.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/module-internal.h.tmpl View 1 chunk +0 lines, -1 line 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl View 1 2 3 3 chunks +17 lines, -8 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl View 1 2 3 1 chunk +6 lines, -25 lines 0 comments Download
A mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_template_definition.tmpl View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/wrapper_union_class_declaration.tmpl View 1 2 3 1 chunk +12 lines, -3 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/wrapper_union_class_definition.tmpl View 1 chunk +0 lines, -40 lines 0 comments Download
A mojo/public/tools/bindings/generators/cpp_templates/wrapper_union_class_template_definition.tmpl View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/mojom_cpp_generator.py View 2 chunks +0 lines, -4 lines 0 comments Download
M mojo/public/tools/bindings/pylib/mojom/generate/module.py View 1 chunk +0 lines, -25 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
yzshen1
Hi, Ken and Sam. Would you please take a look? Thanks!
4 years, 6 months ago (2016-06-01 21:49:42 UTC) #2
yzshen1
On 2016/06/01 21:49:42, yzshen1 wrote: > Hi, Ken and Sam. > > Would you please ...
4 years, 6 months ago (2016-06-01 22:58:03 UTC) #3
yzshen1
On 2016/06/01 22:58:03, yzshen1 wrote: > On 2016/06/01 21:49:42, yzshen1 wrote: > > Hi, Ken ...
4 years, 6 months ago (2016-06-01 23:46:10 UTC) #4
Ken Rockot(use gerrit already)
lgtm
4 years, 6 months ago (2016-06-02 20:18:05 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2031823002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2031823002/60001
4 years, 6 months ago (2016-06-03 15:58:51 UTC) #7
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-03 16:04:10 UTC) #8
commit-bot: I haz the power
4 years, 6 months ago (2016-06-03 16:05:16 UTC) #10
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/14c4e1dca371579ceef264b8e3272b07c8bb92cb
Cr-Commit-Position: refs/heads/master@{#397717}

Powered by Google App Engine
This is Rietveld 408576698