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

Issue 306893010: Generate java bindings for structs. (Closed)

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

Description

Generate java bindings for structs. This CL introduces bindings for struct. It only generates fields and not serialization/deserialization methods. R=rmcilroy@chromium.org, viettrungluu@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=279677 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=279707

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 27

Patch Set 3 : Follow review #

Total comments: 14

Patch Set 4 : Follow review #

Patch Set 5 : Remove unuzed super class #

Patch Set 6 : Handle default values. #

Patch Set 7 : Follow review #

Patch Set 8 : Add missing generated files. #

Total comments: 15

Patch Set 9 : Follow review. #

Patch Set 10 : Fix tests #

Patch Set 11 : Suppress FB warnings. #

Patch Set 12 : Disable FB warning on mojom files. #

Patch Set 13 : Add mojom in generated packages. #

Patch Set 14 : Add landmine #

Patch Set 15 : Fix enums #

Patch Set 16 : Re-upload after revert #

Unified diffs Side-by-side diffs Delta from patch set Stats (+334 lines, -137 lines) Patch
M build/android/findbugs_filter/findbugs_exclude.xml View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -0 lines 0 comments Download
M build/get_landmines.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
A + mojo/android/javatests/src/org/chromium/mojo/HandleMock.java View 1 2 3 4 3 chunks +85 lines, -66 lines 0 comments Download
M mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +92 lines, -27 lines 0 comments Download
M mojo/android/javatests/src/org/chromium/mojo/system/impl/CoreImplTest.java View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
A + mojo/bindings/java/src/org/chromium/mojo/bindings/Struct.java View 1 chunk +5 lines, -3 lines 0 comments Download
M mojo/public/interfaces/bindings/tests/math_calculator.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/interfaces/bindings/tests/sample_factory.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/interfaces/bindings/tests/sample_import.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/interfaces/bindings/tests/sample_import2.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/interfaces/bindings/tests/sample_interfaces.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/interfaces/bindings/tests/sample_service.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/interfaces/bindings/tests/test_structs.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/public/java/src/org/chromium/mojo/system/InvalidHandle.java View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download
M mojo/public/tools/bindings/generators/java_templates/java_macros.tmpl View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download
A mojo/public/tools/bindings/generators/java_templates/struct.java.tmpl View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
A mojo/public/tools/bindings/generators/java_templates/struct_definition.tmpl View 1 2 3 4 5 6 7 8 11 1 chunk +32 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/mojom_java_generator.py View 1 2 3 4 5 6 11 6 chunks +67 lines, -21 lines 0 comments Download
M mojo/public/tools/bindings/mojom_bindings_generator.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M mojo/public/tools/bindings/pylib/mojom/generate/generator.py View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/pylib/mojom/generate/template_expander.py View 1 2 3 4 5 6 2 chunks +8 lines, -3 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
qsr
6 years, 6 months ago (2014-06-02 14:35:24 UTC) #1
rmcilroy
https://codereview.chromium.org/306893010/diff/10001/mojo/android/javatests/src/org/chromium/mojo/HandleMock.java File mojo/android/javatests/src/org/chromium/mojo/HandleMock.java (right): https://codereview.chromium.org/306893010/diff/10001/mojo/android/javatests/src/org/chromium/mojo/HandleMock.java#newcode39 mojo/android/javatests/src/org/chromium/mojo/HandleMock.java:39: return 0; return MojoResult.OK https://codereview.chromium.org/306893010/diff/10001/mojo/android/javatests/src/org/chromium/mojo/TestHelper.java File mojo/android/javatests/src/org/chromium/mojo/TestHelper.java (right): https://codereview.chromium.org/306893010/diff/10001/mojo/android/javatests/src/org/chromium/mojo/TestHelper.java#newcode14 ...
6 years, 6 months ago (2014-06-03 22:53:22 UTC) #2
qsr
https://chromiumcodereview.appspot.com/306893010/diff/10001/mojo/android/javatests/src/org/chromium/mojo/HandleMock.java File mojo/android/javatests/src/org/chromium/mojo/HandleMock.java (right): https://chromiumcodereview.appspot.com/306893010/diff/10001/mojo/android/javatests/src/org/chromium/mojo/HandleMock.java#newcode39 mojo/android/javatests/src/org/chromium/mojo/HandleMock.java:39: return 0; On 2014/06/03 22:53:22, rmcilroy wrote: > return ...
6 years, 6 months ago (2014-06-04 08:42:13 UTC) #3
rmcilroy
Thanks, this is looking a lot cleaner IMO. https://chromiumcodereview.appspot.com/306893010/diff/10001/mojo/android/javatests/src/org/chromium/mojo/TestHelper.java File mojo/android/javatests/src/org/chromium/mojo/TestHelper.java (right): https://chromiumcodereview.appspot.com/306893010/diff/10001/mojo/android/javatests/src/org/chromium/mojo/TestHelper.java#newcode20 mojo/android/javatests/src/org/chromium/mojo/TestHelper.java:20: public ...
6 years, 6 months ago (2014-06-05 11:01:16 UTC) #4
qsr
https://chromiumcodereview.appspot.com/306893010/diff/20001/mojo/not-to-commit/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/imported/Point.java File mojo/not-to-commit/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/imported/Point.java (right): https://chromiumcodereview.appspot.com/306893010/diff/20001/mojo/not-to-commit/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/imported/Point.java#newcode21 mojo/not-to-commit/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/imported/Point.java:21: } On 2014/06/05 11:01:17, rmcilroy wrote: > An extra ...
6 years, 6 months ago (2014-06-05 11:46:10 UTC) #5
qsr
https://chromiumcodereview.appspot.com/306893010/diff/20001/mojo/not-to-commit/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/imported/Point.java File mojo/not-to-commit/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/imported/Point.java (right): https://chromiumcodereview.appspot.com/306893010/diff/20001/mojo/not-to-commit/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/imported/Point.java#newcode21 mojo/not-to-commit/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/imported/Point.java:21: } On 2014/06/05 11:01:17, rmcilroy wrote: > An extra ...
6 years, 6 months ago (2014-06-05 11:46:11 UTC) #6
qsr
Gentle ping?
6 years, 6 months ago (2014-06-23 13:42:48 UTC) #7
rmcilroy
Apologies I forgot about this one. When the last response came in I was still ...
6 years, 6 months ago (2014-06-23 13:54:35 UTC) #8
qsr
Sorry. Missed the comment that were on the previous patch instead of the last one. ...
6 years, 6 months ago (2014-06-23 16:14:06 UTC) #9
rmcilroy
Nice, thanks. LGTM assuming you address the final comments. https://codereview.chromium.org/306893010/diff/10001/mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java File mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java (right): https://codereview.chromium.org/306893010/diff/10001/mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java#newcode243 mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java:243: ...
6 years, 6 months ago (2014-06-23 18:09:36 UTC) #10
viettrungluu
Rubberstamp-ish LGTM, with a small request for comments/docstrings. (I agree that factoring out the generator.py ...
6 years, 6 months ago (2014-06-23 23:19:54 UTC) #11
qsr
https://codereview.chromium.org/306893010/diff/120001/mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java File mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java (right): https://codereview.chromium.org/306893010/diff/120001/mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java#newcode175 mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java:175: public void testStructDefaultValue() throws NoSuchFieldException, SecurityException { On 2014/06/23 ...
6 years, 6 months ago (2014-06-24 13:23:59 UTC) #12
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 6 months ago (2014-06-24 13:24:03 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/306893010/140001
6 years, 6 months ago (2014-06-24 13:25:06 UTC) #14
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 6 months ago (2014-06-24 14:15:09 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/306893010/160001
6 years, 6 months ago (2014-06-24 14:15:43 UTC) #16
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 6 months ago (2014-06-24 15:27:57 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/306893010/180001
6 years, 6 months ago (2014-06-24 15:29:08 UTC) #18
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 6 months ago (2014-06-24 15:41:52 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/306893010/200001
6 years, 6 months ago (2014-06-24 15:42:08 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-24 18:03:23 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-24 18:19:52 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg/builds/199613)
6 years, 6 months ago (2014-06-24 18:19:53 UTC) #23
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 6 months ago (2014-06-25 08:01:25 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/306893010/220001
6 years, 6 months ago (2014-06-25 08:02:04 UTC) #25
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 6 months ago (2014-06-25 09:06:55 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/306893010/240001
6 years, 6 months ago (2014-06-25 09:08:13 UTC) #27
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 6 months ago (2014-06-25 09:54:31 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/306893010/260001
6 years, 6 months ago (2014-06-25 09:55:24 UTC) #29
qsr
Committed patchset #15 manually as r279677 (presubmit successful).
6 years, 6 months ago (2014-06-25 11:52:36 UTC) #30
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 6 months ago (2014-06-25 13:08:16 UTC) #31
qsr
The CQ bit was unchecked by qsr@chromium.org
6 years, 6 months ago (2014-06-25 13:08:24 UTC) #32
qsr
6 years, 6 months ago (2014-06-25 13:29:04 UTC) #33
Message was sent while issue was closed.
Committed patchset #16 manually as r279707 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698