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

Issue 538613005: mojo: Start generating structs for python bindings (Closed)

Created:
6 years, 3 months ago by qsr
Modified:
6 years, 3 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, tburkard
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

mojo: Start generating structs for python bindings R=pkl@chromium.org,cmasone@chromium.org Committed: https://crrev.com/c53bf4ab6bdb3c05f61b8eb3851b15ab4591307a Cr-Commit-Position: refs/heads/master@{#294161}

Patch Set 1 #

Patch Set 2 : ix documentation #

Patch Set 3 : Follow sdefresne ideas #

Patch Set 4 : Make structs immutable. #

Total comments: 2

Patch Set 5 : Rebase + fix constant array #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -10 lines) Patch
M mojo/public/python/mojo/bindings/reflection.py View 1 2 3 4 2 chunks +53 lines, -0 lines 3 comments Download
M mojo/public/tools/bindings/generators/mojom_python_generator.py View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/python_templates/module.py.tmpl View 1 2 3 4 2 chunks +24 lines, -6 lines 0 comments Download
A + mojo/public/tools/bindings/generators/python_templates/module_macros.tmpl View 1 2 3 4 1 chunk +6 lines, -4 lines 0 comments Download
M mojo/public/tools/bindings/mojom.gni View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/tools/bindings/mojom_bindings_generator.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/python/tests/bindings_constants_unittest.py View 1 2 3 4 1 chunk +11 lines, -0 lines 2 comments Download
M mojo/python/tests/bindings_enums_unittest.py View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (6 generated)
qsr
6 years, 3 months ago (2014-09-04 13:55:39 UTC) #1
qsr
CC: +tburkard
6 years, 3 months ago (2014-09-04 15:18:04 UTC) #2
pkl (ping after 24h if needed)
https://chromiumcodereview.appspot.com/538613005/diff/60001/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl File mojo/public/tools/bindings/generators/python_templates/module.py.tmpl (right): https://chromiumcodereview.appspot.com/538613005/diff/60001/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl#newcode34 mojo/public/tools/bindings/generators/python_templates/module.py.tmpl:34: '{{constant|name}}': {{constant.value|expression_to_text}} missing , at the end?
6 years, 3 months ago (2014-09-04 18:12:12 UTC) #3
qsr
https://chromiumcodereview.appspot.com/538613005/diff/60001/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl File mojo/public/tools/bindings/generators/python_templates/module.py.tmpl (right): https://chromiumcodereview.appspot.com/538613005/diff/60001/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl#newcode34 mojo/public/tools/bindings/generators/python_templates/module.py.tmpl:34: '{{constant|name}}': {{constant.value|expression_to_text}} On 2014/09/04 18:12:12, pklpkl wrote: > missing ...
6 years, 3 months ago (2014-09-05 11:55:49 UTC) #4
pkl (ping after 24h if needed)
lgtm
6 years, 3 months ago (2014-09-05 14:14:45 UTC) #5
qsr
+sdefresne
6 years, 3 months ago (2014-09-09 08:20:25 UTC) #7
sdefresne
lgtm https://codereview.chromium.org/538613005/diff/80001/mojo/public/python/mojo/bindings/reflection.py File mojo/public/python/mojo/bindings/reflection.py (right): https://codereview.chromium.org/538613005/diff/80001/mojo/public/python/mojo/bindings/reflection.py#newcode72 mojo/public/python/mojo/bindings/reflection.py:72: '__slots__': [], nit: maybe you want to keep ...
6 years, 3 months ago (2014-09-09 08:51:57 UTC) #8
qsr
https://codereview.chromium.org/538613005/diff/80001/mojo/public/python/mojo/bindings/reflection.py File mojo/public/python/mojo/bindings/reflection.py (right): https://codereview.chromium.org/538613005/diff/80001/mojo/public/python/mojo/bindings/reflection.py#newcode72 mojo/public/python/mojo/bindings/reflection.py:72: '__slots__': [], On 2014/09/09 08:51:57, sdefresne wrote: > nit: ...
6 years, 3 months ago (2014-09-09 08:55:11 UTC) #9
sdefresne
Still lgtm. https://codereview.chromium.org/538613005/diff/80001/mojo/public/python/mojo/bindings/reflection.py File mojo/public/python/mojo/bindings/reflection.py (right): https://codereview.chromium.org/538613005/diff/80001/mojo/public/python/mojo/bindings/reflection.py#newcode72 mojo/public/python/mojo/bindings/reflection.py:72: '__slots__': [], On 2014/09/09 08:55:10, qsr wrote: ...
6 years, 3 months ago (2014-09-09 09:30:36 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/538613005/80001
6 years, 3 months ago (2014-09-10 08:26:38 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/64927) android_aosp on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/13880) android_arm64_dbg_recipe ...
6 years, 3 months ago (2014-09-10 08:29:38 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/538613005/80001
6 years, 3 months ago (2014-09-10 11:07:14 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001) as d2806c41298118db32300750069651702bc60c57
6 years, 3 months ago (2014-09-10 12:53:59 UTC) #19
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 12:58:21 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c53bf4ab6bdb3c05f61b8eb3851b15ab4591307a
Cr-Commit-Position: refs/heads/master@{#294161}

Powered by Google App Engine
This is Rietveld 408576698