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

Issue 2253293002: Mojo C++ bindings: change the first template parameter of StructTraits and UnionTraits. (Closed)

Created:
4 years, 4 months ago by yzshen1
Modified:
4 years, 4 months ago
CC:
Aaron Boodman, abarth-chromium, alokp+watch_chromium.org, ben+mojo_chromium.org, blink-reviews, browser-components-watch_chromium.org, cc-bugs_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, elijahtaylor+arcwatch_chromium.org, estade+watch_chromium.org, feature-media-reviews_chromium.org, gcasto+watchlist_chromium.org, hidehiko+watch_chromium.org, jam, jdonnelly+autofillwatch_chromium.org, lhchavez+watch_chromium.org, mcasas+watch+vc_chromium.org, media-router+watch_chromium.org, miu+watch_chromium.org, ortuno+watch_chromium.org, piman+watch_chromium.org, qsr+mojo_chromium.org, rjkroege, rouslan+autofill_chromium.org, scheib+watch_chromium.org, tdresser+watch_chromium.org, vabr+watchlistpasswordmanager_chromium.org, vabr+watchlistautofill_chromium.org, viettrungluu+watch_chromium.org, yusukes+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@91_extra
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mojo C++ bindings: change the first template parameter of StructTraits and UnionTraits. Previously the type is the auto-generated struct/union type. This CL changes it to the corresponding DataView type. The reason of doing this? The DataView type is shared by the chromium and blink variants of generated bindings, while the generated struct/union type is not. By changing StructTraits/UnionTraits to be specialized by the DataView type, users will be able to use the same StructTraits specialization in both variants. BUG=632061 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/1764bb964000947012673f05dfcebfcbe77a6a63 Cr-Commit-Position: refs/heads/master@{#413931}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : . #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+316 lines, -263 lines) Patch
M cc/ipc/begin_frame_args_struct_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/ipc/compositor_frame_metadata_struct_traits.h View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/ipc/compositor_frame_metadata_struct_traits.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/ipc/compositor_frame_struct_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/ipc/compositor_frame_struct_traits.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M cc/ipc/filter_operation_struct_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/ipc/filter_operations_struct_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/ipc/quads_struct_traits.h View 11 chunks +11 lines, -11 lines 0 comments Download
M cc/ipc/quads_struct_traits.cc View 9 chunks +9 lines, -9 lines 0 comments Download
M cc/ipc/render_pass_id_struct_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/ipc/render_pass_struct_traits.h View 1 chunk +2 lines, -1 line 0 comments Download
M cc/ipc/render_pass_struct_traits.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M cc/ipc/returned_resource_struct_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/ipc/selection_struct_traits.h View 1 chunk +2 lines, -1 line 0 comments Download
M cc/ipc/shared_quad_state_struct_traits.h View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/ipc/surface_id_struct_traits.h View 2 chunks +4 lines, -4 lines 0 comments Download
M cc/ipc/surface_sequence_struct_traits.h View 2 chunks +3 lines, -3 lines 0 comments Download
M cc/ipc/transferable_resource_struct_traits.h View 1 chunk +2 lines, -1 line 0 comments Download
M cc/ipc/transferable_resource_struct_traits.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/media/router/mojo/media_router_struct_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M components/arc/common/OWNERS View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M components/arc/common/app_struct_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M components/arc/common/app_struct_traits.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M components/autofill/content/public/cpp/autofill_types_struct_traits.h View 11 chunks +13 lines, -11 lines 0 comments Download
M components/autofill/content/public/cpp/autofill_types_struct_traits.cc View 14 chunks +30 lines, -26 lines 0 comments Download
M components/metrics/public/cpp/call_stack_profile_struct_traits.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M components/password_manager/content/public/cpp/credential_manager_struct_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M components/password_manager/content/public/cpp/credential_manager_struct_traits.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/translate/content/common/translate_struct_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M components/translate/content/common/translate_struct_traits.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/common/bluetooth/web_bluetooth_device_id_struct_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/public/interfaces/bluetooth_uuid_struct_traits.h View 1 chunk +2 lines, -1 line 0 comments Download
M device/generic_sensor/public/interfaces/sensor_struct_traits.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M device/generic_sensor/public/interfaces/sensor_struct_traits.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M gpu/ipc/common/dx_diag_node_struct_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M gpu/ipc/common/dx_diag_node_struct_traits.cc View 1 chunk +1 line, -1 line 0 comments Download
M gpu/ipc/common/gpu_info_struct_traits.h View 1 2 3 5 chunks +5 lines, -5 lines 0 comments Download
M gpu/ipc/common/gpu_info_struct_traits.cc View 1 2 3 5 chunks +5 lines, -5 lines 0 comments Download
M gpu/ipc/common/mailbox_holder_struct_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M gpu/ipc/common/mailbox_struct_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M gpu/ipc/common/mailbox_struct_traits.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/ipc/common/sync_token_struct_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M media/mojo/common/pipeline_statistics_struct_traits.h View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/common/common_custom_types_struct_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M mojo/common/common_custom_types_struct_traits.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/struct_traits.h View 1 7 chunks +30 lines, -17 lines 0 comments Download
M mojo/public/cpp/bindings/tests/rect_blink_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/cpp/bindings/tests/rect_chromium_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.h View 9 chunks +19 lines, -17 lines 0 comments Download
M mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.cc View 6 chunks +8 lines, -8 lines 0 comments Download
M mojo/public/cpp/bindings/union_traits.h View 1 2 chunks +7 lines, -3 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_declaration.tmpl View 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_declaration.tmpl View 4 chunks +4 lines, -4 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_definition.tmpl View 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/union_serialization_declaration.tmpl View 4 chunks +5 lines, -4 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/union_serialization_definition.tmpl View 1 chunk +2 lines, -2 lines 0 comments Download
M services/shell/public/cpp/capabilities_struct_traits.h View 2 chunks +4 lines, -2 lines 0 comments Download
M services/shell/public/cpp/identity_struct_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/public/interfaces/display/display_struct_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/public/interfaces/display/display_struct_traits.cc View 1 chunk +1 line, -1 line 0 comments Download
M skia/public/interfaces/bitmap_array_struct_traits.h View 2 chunks +2 lines, -2 lines 0 comments Download
M skia/public/interfaces/bitmap_skbitmap_struct_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M skia/public/interfaces/bitmap_skbitmap_struct_traits.cc View 2 chunks +17 lines, -13 lines 0 comments Download
M skia/public/interfaces/image_filter_struct_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/mojo/KURLStructTraits.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/mojo/SecurityOriginStructTraits.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ui/display/display.h View 2 chunks +3 lines, -2 lines 0 comments Download
M ui/events/devices/mojo/input_device_struct_traits.h View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M ui/events/devices/mojo/input_device_struct_traits.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M ui/events/latency_info.h View 2 chunks +3 lines, -2 lines 0 comments Download
M ui/events/mojo/OWNERS View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/events/mojo/event_struct_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/events/mojo/event_struct_traits.cc View 3 chunks +8 lines, -6 lines 0 comments Download
M ui/events/mojo/latency_info_struct_traits.h View 4 chunks +4 lines, -4 lines 0 comments Download
M ui/events/mojo/latency_info_struct_traits.cc View 3 chunks +19 lines, -19 lines 0 comments Download
M ui/gfx/geometry/mojo/geometry_struct_traits.h View 10 chunks +10 lines, -10 lines 0 comments Download
M ui/gfx/mojo/accelerated_widget_struct_traits.h View 1 chunk +2 lines, -1 line 0 comments Download
M ui/gfx/mojo/selection_bound_struct_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/mojo/transform_struct_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M url/mojo/origin_struct_traits.h View 1 chunk +1 line, -1 line 0 comments Download
M url/mojo/url_gurl_struct_traits.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 30 (20 generated)
yzshen1
Hi, Please take a look! Thanks! Luis: components/arc/* Scott: ui/* Daniel: security review Ken: general ...
4 years, 4 months ago (2016-08-22 20:44:17 UTC) #10
Ken Rockot(use gerrit already)
lgtm
4 years, 4 months ago (2016-08-22 20:59:26 UTC) #13
Luis Héctor Chávez
just confirming, this is expected to not change the protocol or serialization?
4 years, 4 months ago (2016-08-22 21:07:35 UTC) #16
yzshen1
On 2016/08/22 21:07:35, Luis Héctor Chávez wrote: > just confirming, this is expected to not ...
4 years, 4 months ago (2016-08-22 21:10:23 UTC) #17
Luis Héctor Chávez
lgtm then!
4 years, 4 months ago (2016-08-22 21:11:02 UTC) #18
sky
LGTM
4 years, 4 months ago (2016-08-22 23:24:27 UTC) #21
dcheng
lgtm
4 years, 4 months ago (2016-08-23 22:18:50 UTC) #22
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/2253293002/60001
4 years, 4 months ago (2016-08-23 22:42:07 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-24 01:44:32 UTC) #28
commit-bot: I haz the power
4 years, 4 months ago (2016-08-24 01:46:11 UTC) #30
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1764bb964000947012673f05dfcebfcbe77a6a63
Cr-Commit-Position: refs/heads/master@{#413931}

Powered by Google App Engine
This is Rietveld 408576698