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

Issue 1218023006: Implement python mojo bindings unions. (Closed)

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

Description

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 21

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Total comments: 14

Patch Set 14 : #

Total comments: 6

Patch Set 15 : #

Total comments: 3

Patch Set 16 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+473 lines, -10 lines) Patch
M mojo/public/interfaces/bindings/tests/test_unions.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +10 lines, -0 lines 0 comments Download
M mojo/public/python/mojo_bindings/descriptor.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +53 lines, -2 lines 0 comments Download
M mojo/public/python/mojo_bindings/reflection.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +97 lines, -0 lines 0 comments Download
M mojo/public/python/mojo_bindings/serialization.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +90 lines, -1 line 0 comments Download
M mojo/public/tools/bindings/generators/mojom_python_generator.py View 1 2 3 4 5 6 7 8 5 chunks +21 lines, -7 lines 0 comments Download
M mojo/public/tools/bindings/generators/python_templates/module.py.tmpl View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +8 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/python_templates/module_macros.tmpl View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +10 lines, -0 lines 0 comments Download
A mojo/python/tests/bindings_unions_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +184 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (1 generated)
azani
please take a look.
5 years, 5 months ago (2015-07-10 19:50:21 UTC) #2
qsr
Monday and Tuesday are bank holidays in France, I won't be able to review this ...
5 years, 5 months ago (2015-07-10 21:37:34 UTC) #3
qsr
On 2015/07/10 21:37:34, qsr wrote: > Monday and Tuesday are bank holidays in France, I ...
5 years, 5 months ago (2015-07-16 08:32:55 UTC) #4
qsr
https://codereview.chromium.org/1218023006/diff/140001/mojo/public/python/mojo_bindings/reflection.py File mojo/public/python/mojo_bindings/reflection.py (right): https://codereview.chromium.org/1218023006/diff/140001/mojo/public/python/mojo_bindings/reflection.py#newcode111 mojo/public/python/mojo_bindings/reflection.py:111: dictionary['GetS'] = classmethod(lambda s: serialization_object) What is this? I ...
5 years, 5 months ago (2015-07-16 09:35:26 UTC) #5
azani
ptal I'm looking at what might be causing the test failures, but they look unrelated-enough ...
5 years, 5 months ago (2015-07-16 21:57:39 UTC) #6
qsr
> > In the meantime, it would be very good if there was validation tests ...
5 years, 5 months ago (2015-07-17 10:02:04 UTC) #7
qsr
https://codereview.chromium.org/1218023006/diff/140001/mojo/public/python/mojo_bindings/serialization.py File mojo/public/python/mojo_bindings/serialization.py (right): https://codereview.chromium.org/1218023006/diff/140001/mojo/public/python/mojo_bindings/serialization.py#newcode237 mojo/public/python/mojo_bindings/serialization.py:237: if hasattr(field.field_type, 'union_type'): On 2015/07/16 21:57:38, azani wrote: > ...
5 years, 5 months ago (2015-07-17 10:53:59 UTC) #8
azani
ptal https://codereview.chromium.org/1218023006/diff/240001/mojo/public/python/mojo_bindings/reflection.py File mojo/public/python/mojo_bindings/reflection.py (right): https://codereview.chromium.org/1218023006/diff/240001/mojo/public/python/mojo_bindings/reflection.py#newcode141 mojo/public/python/mojo_bindings/reflection.py:141: dictionary['__slots__'] = ('_fields', '_tag', '_data') On 2015/07/17 10:53:58, ...
5 years, 5 months ago (2015-07-17 20:38:16 UTC) #9
qsr
https://codereview.chromium.org/1218023006/diff/260001/mojo/public/python/mojo_bindings/reflection.py File mojo/public/python/mojo_bindings/reflection.py (right): https://codereview.chromium.org/1218023006/diff/260001/mojo/public/python/mojo_bindings/reflection.py#newcode141 mojo/public/python/mojo_bindings/reflection.py:141: dictionary['__slots__'] = ('_fields', '_cur_field', '_data') _fields doesn't seem to ...
5 years, 5 months ago (2015-07-20 21:29:59 UTC) #10
azani
ptal https://codereview.chromium.org/1218023006/diff/260001/mojo/public/python/mojo_bindings/reflection.py File mojo/public/python/mojo_bindings/reflection.py (right): https://codereview.chromium.org/1218023006/diff/260001/mojo/public/python/mojo_bindings/reflection.py#newcode141 mojo/public/python/mojo_bindings/reflection.py:141: dictionary['__slots__'] = ('_fields', '_cur_field', '_data') On 2015/07/20 21:29:59, ...
5 years, 5 months ago (2015-07-20 22:17:52 UTC) #11
qsr
https://codereview.chromium.org/1218023006/diff/280001/mojo/public/python/mojo_bindings/serialization.py File mojo/public/python/mojo_bindings/serialization.py (right): https://codereview.chromium.org/1218023006/diff/280001/mojo/public/python/mojo_bindings/serialization.py#newcode295 mojo/public/python/mojo_bindings/serialization.py:295: if tag not in self._fields: Do the test pass? ...
5 years, 5 months ago (2015-07-20 23:08:28 UTC) #12
azani
ptal https://codereview.chromium.org/1218023006/diff/280001/mojo/public/python/mojo_bindings/serialization.py File mojo/public/python/mojo_bindings/serialization.py (right): https://codereview.chromium.org/1218023006/diff/280001/mojo/public/python/mojo_bindings/serialization.py#newcode295 mojo/public/python/mojo_bindings/serialization.py:295: if tag not in self._fields: On 2015/07/20 23:08:27, ...
5 years, 5 months ago (2015-07-20 23:12:13 UTC) #13
qsr
lgtm https://codereview.chromium.org/1218023006/diff/280001/mojo/public/python/mojo_bindings/serialization.py File mojo/public/python/mojo_bindings/serialization.py (right): https://codereview.chromium.org/1218023006/diff/280001/mojo/public/python/mojo_bindings/serialization.py#newcode295 mojo/public/python/mojo_bindings/serialization.py:295: if tag not in self._fields: On 2015/07/20 23:12:13, ...
5 years, 5 months ago (2015-07-20 23:16:16 UTC) #14
azani
5 years, 5 months ago (2015-07-20 23:41:30 UTC) #15
Message was sent while issue was closed.
Committed patchset #16 (id:300001) manually as
9b88deb16f58cd9a7a0e0ec10a9ef3331896a236 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698