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

Issue 437643002: Support nullable types in mojom. (Closed)

Created:
6 years, 4 months ago by yzshen1
Modified:
6 years, 4 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
Project:
chromium
Visibility:
Public.

Description

Support nullable types in mojom. This CL updates the lexer, parser and also the internal representation of mojom modules. The changes to the generators will be in a separate CL. This CL doesn't change data_tests.py because it has been broken for quite a while. We could fix it in a separate CL if we think that it is still useful. BUG=324170 TEST=those updated test files. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287997

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : changes according to darin's suggestions #

Total comments: 2

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+298 lines, -82 lines) Patch
M mojo/public/tools/bindings/pylib/mojom/generate/data.py View 1 2 3 1 chunk +9 lines, -9 lines 0 comments Download
M mojo/public/tools/bindings/pylib/mojom/generate/module.py View 1 2 3 4 5 5 chunks +133 lines, -43 lines 0 comments Download
M mojo/public/tools/bindings/pylib/mojom/generate/pack.py View 1 2 3 4 1 chunk +23 lines, -17 lines 0 comments Download
M mojo/public/tools/bindings/pylib/mojom/generate/pack_tests.py View 1 2 3 2 chunks +22 lines, -5 lines 0 comments Download
M mojo/public/tools/bindings/pylib/mojom/parse/lexer.py View 2 chunks +2 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/pylib/mojom/parse/parser.py View 1 1 chunk +12 lines, -4 lines 0 comments Download
M mojo/public/tools/bindings/pylib/mojom/parse/translate.py View 1 2 1 chunk +11 lines, -2 lines 0 comments Download
M mojo/public/tools/bindings/pylib/mojom_tests/parse/lexer_unittest.py View 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/pylib/mojom_tests/parse/parser_unittest.py View 2 chunks +84 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
yzshen1
Hi, Darin. Would you please take a look? Thanks!
6 years, 4 months ago (2014-07-31 20:49:47 UTC) #1
darin (slow to review)
https://codereview.chromium.org/437643002/diff/20001/mojo/public/tools/bindings/pylib/mojom/generate/module.py File mojo/public/tools/bindings/pylib/mojom/generate/module.py (right): https://codereview.chromium.org/437643002/diff/20001/mojo/public/tools/bindings/pylib/mojom/generate/module.py#newcode220 mojo/public/tools/bindings/pylib/mojom/generate/module.py:220: return (kind == STRING or kind == HANDLE or ...
6 years, 4 months ago (2014-08-03 05:57:58 UTC) #2
yzshen1
Thanks Darin! (I haven't uploaded a new patch. I will do that after some questions ...
6 years, 4 months ago (2014-08-03 08:27:46 UTC) #3
yzshen1
Hi, Darin. New patch has been uploaded. Please take a look. Thanks!
6 years, 4 months ago (2014-08-04 22:49:39 UTC) #4
yzshen1
https://codereview.chromium.org/437643002/diff/40001/mojo/public/tools/bindings/pylib/mojom/generate/module.py File mojo/public/tools/bindings/pylib/mojom/generate/module.py (right): https://codereview.chromium.org/437643002/diff/40001/mojo/public/tools/bindings/pylib/mojom/generate/module.py#newcode280 mojo/public/tools/bindings/pylib/mojom/generate/module.py:280: nullable_kind.__dict__ = ref_kind.__dict__.copy() Hmm... Thinking more about this solution ...
6 years, 4 months ago (2014-08-05 05:11:43 UTC) #5
yzshen1
https://codereview.chromium.org/437643002/diff/40001/mojo/public/tools/bindings/pylib/mojom/generate/module.py File mojo/public/tools/bindings/pylib/mojom/generate/module.py (right): https://codereview.chromium.org/437643002/diff/40001/mojo/public/tools/bindings/pylib/mojom/generate/module.py#newcode280 mojo/public/tools/bindings/pylib/mojom/generate/module.py:280: nullable_kind.__dict__ = ref_kind.__dict__.copy() On 2014/08/05 05:11:43, yzshen1 wrote: > ...
6 years, 4 months ago (2014-08-06 21:39:27 UTC) #6
darin (slow to review)
LGTM https://codereview.chromium.org/437643002/diff/60001/mojo/public/tools/bindings/pylib/mojom/generate/module.py File mojo/public/tools/bindings/pylib/mojom/generate/module.py (right): https://codereview.chromium.org/437643002/diff/60001/mojo/public/tools/bindings/pylib/mojom/generate/module.py#newcode97 mojo/public/tools/bindings/pylib/mojom/generate/module.py:97: NLBL_STRING = ReferenceKind('?s', True) I know we have ...
6 years, 4 months ago (2014-08-06 22:48:26 UTC) #7
yzshen1
https://codereview.chromium.org/437643002/diff/60001/mojo/public/tools/bindings/pylib/mojom/generate/module.py File mojo/public/tools/bindings/pylib/mojom/generate/module.py (right): https://codereview.chromium.org/437643002/diff/60001/mojo/public/tools/bindings/pylib/mojom/generate/module.py#newcode97 mojo/public/tools/bindings/pylib/mojom/generate/module.py:97: NLBL_STRING = ReferenceKind('?s', True) Done. Thanks!
6 years, 4 months ago (2014-08-06 22:55:42 UTC) #8
yzshen1
The CQ bit was checked by yzshen@chromium.org
6 years, 4 months ago (2014-08-07 00:23:59 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/437643002/100001
6 years, 4 months ago (2014-08-07 00:25:54 UTC) #10
commit-bot: I haz the power
6 years, 4 months ago (2014-08-07 07:47:00 UTC) #11
Message was sent while issue was closed.
Change committed as 287997

Powered by Google App Engine
This is Rietveld 408576698