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

Issue 177183002: Mojo: Include "path/to/foo.mojom.h" (Closed)

Created:
6 years, 10 months ago by darin (slow to review)
Modified:
6 years, 9 months ago
CC:
chromium-reviews, Aaron Boodman, viettrungluu+watch_chromium.org, ben+mojo_chromium.org, abarth-chromium
Visibility:
Public.

Description

Mojo: Include "path/to/foo.mojom.h" Given path/to/foo.mojom, change the code generator to output: <(SHARED_INTERMEDIATE_DIR)/path/to/foo.mojom.cc <(SHARED_INTERMEDIATE_DIR)/path/to/foo.mojom.h <(SHARED_INTERMEDIATE_DIR)/path/to/foo.mojom-internal.h This involves shelling out to a python script to compute "path/to" part as that is not otherwise available from GYP. See build/inverse_depth.py. DEPTH is now passed to mojom_bindings_generator.py so that it can similarly compute "path/to". With that, we no longer need the include_dir argument, so I dropped it. R=davemoore@chromium.org, mark@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=253937

Patch Set 1 #

Patch Set 2 : functional #

Patch Set 3 : it works #

Patch Set 4 : make windows happy? #

Patch Set 5 : make windows happy (part 2) #

Patch Set 6 : fix oops #

Total comments: 1

Patch Set 7 : remove unnecessary abspath #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -117 lines) Patch
A build/inverse_depth.py View 1 2 3 4 5 6 1 chunk +24 lines, -0 lines 0 comments Download
M mojo/examples/aura_demo/aura_demo.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/examples/aura_demo/window_tree_host_mojo.h View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/examples/compositor_app/compositor_app.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/examples/launcher/launcher.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M mojo/examples/sample_app/gles2_client_impl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/examples/sample_app/sample_app.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/examples/view_manager/view_manager.cc View 1 1 chunk +4 lines, -4 lines 0 comments Download
M mojo/gles2/command_buffer_client_impl.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M mojo/mojo_public.gypi View 1 1 chunk +1 line, -1 line 0 comments Download
A + mojo/public/bindings/generators/cpp_templates/module-internal.h.tmpl View 1 1 chunk +3 lines, -3 lines 0 comments Download
M mojo/public/bindings/generators/cpp_templates/module.h.tmpl View 1 1 chunk +3 lines, -3 lines 0 comments Download
M mojo/public/bindings/generators/cpp_templates/module_internal.h.tmpl View 1 1 chunk +0 lines, -37 lines 0 comments Download
M mojo/public/bindings/generators/mojom_cpp_generator.py View 1 3 chunks +3 lines, -2 lines 0 comments Download
M mojo/public/bindings/mojom_bindings_generator.gypi View 1 2 3 3 chunks +10 lines, -11 lines 0 comments Download
M mojo/public/bindings/mojom_bindings_generator.py View 1 2 3 4 5 3 chunks +13 lines, -5 lines 0 comments Download
M mojo/public/bindings/pylib/generate/mojom.py View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/bindings/pylib/generate/mojom_generator.py View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/public/bindings/tests/handle_passing_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/bindings/tests/remote_ptr_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/public/bindings/tests/sample_service_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/bindings/tests/type_conversion_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/shell/application.h View 1 1 chunk +1 line, -1 line 0 comments Download
D mojo/public/shell/lib/shell.mojom View 1 2 3 4 5 1 chunk +0 lines, -19 lines 0 comments Download
M mojo/public/shell/service.h View 1 1 chunk +1 line, -1 line 0 comments Download
A + mojo/public/shell/shell.mojom View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M mojo/services/gles2/command_buffer_impl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/gles2/command_buffer_type_conversions.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/native_viewport/geometry_conversions.h View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/native_viewport/native_viewport_service.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/shell/dynamic_service_loader.h View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/shell/dynamic_service_loader.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M mojo/shell/service_manager.h View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/shell/service_manager.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M mojo/shell/service_manager_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
darin (slow to review)
Mark- please review build/inverse_depth.py Dave- please review the rest
6 years, 9 months ago (2014-02-27 06:33:58 UTC) #1
Mark Mentovai
LGTM. I only reviewed build/inverse_depth.py. https://codereview.chromium.org/177183002/diff/110001/build/inverse_depth.py File build/inverse_depth.py (right): https://codereview.chromium.org/177183002/diff/110001/build/inverse_depth.py#newcode12 build/inverse_depth.py:12: return os.path.relpath(os.path.abspath(os.getcwd()), I can’t ...
6 years, 9 months ago (2014-02-27 14:10:32 UTC) #2
DaveMoore
lgtm
6 years, 9 months ago (2014-02-27 14:22:14 UTC) #3
darin (slow to review)
On 2014/02/27 14:10:32, Mark Mentovai wrote: > LGTM. I only reviewed build/inverse_depth.py. > > https://codereview.chromium.org/177183002/diff/110001/build/inverse_depth.py ...
6 years, 9 months ago (2014-02-27 20:45:34 UTC) #4
darin (slow to review)
6 years, 9 months ago (2014-02-27 22:07:55 UTC) #5
Message was sent while issue was closed.
Committed patchset #7 manually as r253937 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698