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

Issue 1677343002: mojom_types.mojom: Changes the name |interface_name| to |service_name| in struct MojomInterface. (Closed)

Created:
4 years, 10 months ago by rudominer
Modified:
4 years, 10 months ago
Reviewers:
azani
CC:
mojo-reviews_chromium.org, gregsimon, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, yzshen+mojopublicwatch_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

mojom_types.mojom: Changes the name |interface_name| to |service_name| in struct MojomInterface. Also the mojom parser now populates this field with the correct service name (that is, the value of the "ServiceName" attribute) if it is set. The field was changed to nullable and will be unset if the interface does not have the attribute. We removed the logic from mojom_translator.py that gets the service name from the "ServiceName" attribute and instead get it from the service_name field (which was set to the value in the "ServiceName" attribute in the parser.) The interface_name field of mojom.Interface is now obtained from the decl_data.short_name field. Previously it was obtained from the interface_name field (which was set to the value of decl_data.short_name in the parser.) BUG=#448 R=azani@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/de0d6c66f4208bdaeec3ef1cfa76d5ee1c4c7428

Patch Set 1 #

Total comments: 6

Patch Set 2 : Responds to code review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -1530 lines) Patch
M mojo/dart/packages/_mojo_for_test_only/lib/dart_to_cpp/dart_to_cpp.mojom.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/dart/packages/_mojo_for_test_only/lib/imported/sample_import.mojom.dart View 1 chunk +1 line, -1 line 0 comments Download
M mojo/dart/packages/_mojo_for_test_only/lib/math/math_calculator.mojom.dart View 1 chunk +1 line, -1 line 0 comments Download
M mojo/dart/packages/_mojo_for_test_only/lib/mojo/examples/echo.mojom.dart View 1 chunk +1 line, -1 line 0 comments Download
M mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/test_structs.mojom.dart View 1 chunk +1 line, -1 line 0 comments Download
M mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/test_unions.mojom.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/validation_test_interfaces.mojom.dart View 4 chunks +4 lines, -4 lines 0 comments Download
M mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/versioning/versioning_test_client.mojom.dart View 1 chunk +1 line, -1 line 0 comments Download
M mojo/dart/packages/_mojo_for_test_only/lib/regression_tests/regression_tests.mojom.dart View 6 chunks +6 lines, -6 lines 0 comments Download
M mojo/dart/packages/_mojo_for_test_only/lib/sample/sample_factory.mojom.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/dart/packages/_mojo_for_test_only/lib/sample/sample_interfaces.mojom.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M mojo/dart/packages/_mojo_for_test_only/lib/sample/sample_service.mojom.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/dart/packages/_mojo_for_test_only/lib/test/echo_service.mojom.dart View 1 chunk +1 line, -1 line 0 comments Download
M mojo/dart/packages/_mojo_for_test_only/lib/test/pingpong_service.mojom.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/dart/packages/mojo/lib/mojo/bindings/types/mojom_types.mojom.dart View 4 chunks +6 lines, -6 lines 0 comments Download
M mojo/public/interfaces/bindings/mojom_types.mojom View 1 chunk +9 lines, -4 lines 0 comments Download
M mojo/public/tools/bindings/generators/dart_templates/mojom_type_macros.tmpl View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/tools/bindings/mojom_parser/bin/linux64/mojom_parser.sha1 View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/tools/bindings/mojom_parser/bin/mac64/mojom_parser.sha1 View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/tools/bindings/pylib/mojom/generate/generated/mojom_types_mojom.py View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/tools/bindings/pylib/mojom/generate/mojom_translator.py View 1 1 chunk +8 lines, -4 lines 0 comments Download
M mojo/public/tools/bindings/pylib/mojom/generate/mojom_translator_unittest.py View 5 chunks +24 lines, -8 lines 0 comments Download
M mojom/mojom_parser/generated/mojom_types/mojom_types.mojom.go View 33 chunks +16 lines, -1471 lines 0 comments Download
M mojom/mojom_parser/mojom/user_defined_types.go View 1 2 chunks +17 lines, -0 lines 0 comments Download
M mojom/mojom_parser/serialization/serialization.go View 1 chunk +1 line, -2 lines 0 comments Download
M mojom/mojom_parser/serialization/serialization_test.go View 2 chunks +53 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (18 generated)
rudominer
Hi Alex, ptal.
4 years, 10 months ago (2016-02-09 22:42:17 UTC) #18
azani
https://codereview.chromium.org/1677343002/diff/220001/mojo/public/tools/bindings/generators/dart_templates/mojom_type_macros.tmpl File mojo/public/tools/bindings/generators/dart_templates/mojom_type_macros.tmpl (right): https://codereview.chromium.org/1677343002/diff/220001/mojo/public/tools/bindings/generators/dart_templates/mojom_type_macros.tmpl#newcode24 mojo/public/tools/bindings/generators/dart_templates/mojom_type_macros.tmpl:24: ..serviceName_ = '{{type|name}}' This changes the name in dart ...
4 years, 10 months ago (2016-02-10 00:06:39 UTC) #19
rudominer
ptal https://codereview.chromium.org/1677343002/diff/220001/mojo/public/tools/bindings/generators/dart_templates/mojom_type_macros.tmpl File mojo/public/tools/bindings/generators/dart_templates/mojom_type_macros.tmpl (right): https://codereview.chromium.org/1677343002/diff/220001/mojo/public/tools/bindings/generators/dart_templates/mojom_type_macros.tmpl#newcode24 mojo/public/tools/bindings/generators/dart_templates/mojom_type_macros.tmpl:24: ..serviceName_ = '{{type|name}}' On 2016/02/10 00:06:39, azani wrote: ...
4 years, 10 months ago (2016-02-10 00:43:49 UTC) #20
azani
lgtm
4 years, 10 months ago (2016-02-10 00:57:11 UTC) #21
rudominer
4 years, 10 months ago (2016-02-10 00:59:10 UTC) #23
Message was sent while issue was closed.
Committed patchset #2 (id:240001) manually as
de0d6c66f4208bdaeec3ef1cfa76d5ee1c4c7428 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698