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

Issue 291903003: Generate java bindings for constants. (Closed)

Created:
6 years, 7 months ago by qsr
Modified:
6 years, 6 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, mlamouri (slow - plz ping)
Visibility:
Public.

Description

Generate java bindings for constants. This CL is the first CL introducing java bindings. It only generates constants. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273307

Patch Set 1 #

Total comments: 15

Patch Set 2 : Follow review #

Patch Set 3 : Regenerate file #

Patch Set 4 : Add private constructor to constants class. #

Total comments: 42

Patch Set 5 : Follow review #

Total comments: 14

Patch Set 6 : Follow review #

Patch Set 7 : Fix component cutting. #

Patch Set 8 : Fix RE #

Total comments: 2

Patch Set 9 : Follow review #

Patch Set 10 : Fix dir creation? #

Messages

Total messages: 51 (0 generated)
qsr
I cut the generation CL in part. This part only generate top level constants. I ...
6 years, 7 months ago (2014-05-19 15:20:19 UTC) #1
rmcilroy
+ Tommy for question in SampleServiceConstants.java:11 Thanks for splitting this up Benjamin. I've got a ...
6 years, 7 months ago (2014-05-20 12:43:29 UTC) #2
qsr
https://chromiumcodereview.appspot.com/291903003/diff/1/mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java File mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java (right): https://chromiumcodereview.appspot.com/291903003/diff/1/mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java#newcode23 mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java:23: assertEquals(3, SampleServiceConstants.THREE); On 2014/05/20 12:43:29, rmcilroy wrote: > Test ...
6 years, 7 months ago (2014-05-20 13:12:45 UTC) #3
qsr
Any chance we can find a way to advance on this?
6 years, 7 months ago (2014-05-22 07:48:16 UTC) #4
rmcilroy
https://chromiumcodereview.appspot.com/291903003/diff/1/mojo/not-to-commit/java_mojo/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/sample/SampleServiceConstants.java File mojo/not-to-commit/java_mojo/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/sample/SampleServiceConstants.java (right): https://chromiumcodereview.appspot.com/291903003/diff/1/mojo/not-to-commit/java_mojo/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/sample/SampleServiceConstants.java#newcode11 mojo/not-to-commit/java_mojo/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/sample/SampleServiceConstants.java:11: package org.chromium.mojo.bindings.test.sample; On 2014/05/20 13:12:45, qsr wrote: > Well, ...
6 years, 7 months ago (2014-05-22 15:52:07 UTC) #5
qsr
> Still seems to be a static block in the latest patch set. Forgot to ...
6 years, 7 months ago (2014-05-22 16:11:59 UTC) #6
qsr
On 2014/05/22 15:52:07, rmcilroy wrote: > https://chromiumcodereview.appspot.com/291903003/diff/1/mojo/not-to-commit/java_mojo/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/sample/SampleServiceConstants.java > File > mojo/not-to-commit/java_mojo/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/sample/SampleServiceConstants.java > (right): > > ...
6 years, 7 months ago (2014-05-23 07:38:05 UTC) #7
rmcilroy
https://codereview.chromium.org/291903003/diff/60001/mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl File mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl (right): https://codereview.chromium.org/291903003/diff/60001/mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl#newcode4 mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl:4: public static final {{constant.kind|java_type}} {{constant|constant_name}} = {{build_default(module, constant.kind, constant.value)|indent(4)}}; ...
6 years, 7 months ago (2014-05-25 22:55:10 UTC) #8
qsr
https://chromiumcodereview.appspot.com/291903003/diff/60001/mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl File mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl (right): https://chromiumcodereview.appspot.com/291903003/diff/60001/mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl#newcode4 mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl:4: public static final {{constant.kind|java_type}} {{constant|constant_name}} = {{build_default(module, constant.kind, constant.value)|indent(4)}}; ...
6 years, 7 months ago (2014-05-26 08:41:19 UTC) #9
rmcilroy
Looks much cleaner, thanks. A couple of last suggestions. https://chromiumcodereview.appspot.com/291903003/diff/60001/mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl File mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl (right): https://chromiumcodereview.appspot.com/291903003/diff/60001/mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl#newcode4 mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl:4: ...
6 years, 7 months ago (2014-05-26 11:13:48 UTC) #10
qsr
https://chromiumcodereview.appspot.com/291903003/diff/80001/mojo/public/tools/bindings/generators/mojom_java_generator.py File mojo/public/tools/bindings/generators/mojom_java_generator.py (right): https://chromiumcodereview.appspot.com/291903003/diff/80001/mojo/public/tools/bindings/generators/mojom_java_generator.py#newcode47 mojo/public/tools/bindings/generators/mojom_java_generator.py:47: return True On 2014/05/26 11:13:48, rmcilroy wrote: > How ...
6 years, 7 months ago (2014-05-26 12:05:41 UTC) #11
qsr
https://chromiumcodereview.appspot.com/291903003/diff/60001/mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl File mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl (right): https://chromiumcodereview.appspot.com/291903003/diff/60001/mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl#newcode4 mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl:4: public static final {{constant.kind|java_type}} {{constant|constant_name}} = {{build_default(module, constant.kind, constant.value)|indent(4)}}; ...
6 years, 7 months ago (2014-05-26 12:33:43 UTC) #12
rmcilroy
Sorry for the delay, yesterday was a holiday in the UK. lgtm with comments, thanks. ...
6 years, 7 months ago (2014-05-27 09:44:34 UTC) #13
qsr
On 2014/05/27 09:44:34, rmcilroy wrote: > Sorry for the delay, yesterday was a holiday in ...
6 years, 7 months ago (2014-05-27 09:57:55 UTC) #14
qsr
https://chromiumcodereview.appspot.com/291903003/diff/130001/mojo/public/tools/bindings/generators/mojom_java_generator.py File mojo/public/tools/bindings/generators/mojom_java_generator.py (right): https://chromiumcodereview.appspot.com/291903003/diff/130001/mojo/public/tools/bindings/generators/mojom_java_generator.py#newcode137 mojo/public/tools/bindings/generators/mojom_java_generator.py:137: def GetConstantsMainEntityFullyQualifiedName(module): On 2014/05/27 09:44:35, rmcilroy wrote: > Remove ...
6 years, 7 months ago (2014-05-27 10:01:50 UTC) #15
qsr
viettrungluu@ -> Could you take a look for OWNERS. Thanks.
6 years, 7 months ago (2014-05-27 10:02:23 UTC) #16
rmcilroy
> > I was presuming you were going to update the build_default macro in a ...
6 years, 7 months ago (2014-05-27 10:17:34 UTC) #17
rmcilroy
> > I was presuming you were going to update the build_default macro in a ...
6 years, 7 months ago (2014-05-27 10:17:38 UTC) #18
rmcilroy
> > I was presuming you were going to update the build_default macro in a ...
6 years, 7 months ago (2014-05-27 10:17:39 UTC) #19
viettrungluu
lgtm
6 years, 7 months ago (2014-05-27 16:29:21 UTC) #20
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 6 months ago (2014-05-28 07:44:28 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/291903003/150001
6 years, 6 months ago (2014-05-28 07:44:39 UTC) #22
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-05-28 08:51:17 UTC) #23
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 6 months ago (2014-05-28 09:03:10 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/291903003/170001
6 years, 6 months ago (2014-05-28 09:03:28 UTC) #25
qsr
The CQ bit was unchecked by qsr@chromium.org
6 years, 6 months ago (2014-05-28 09:28:11 UTC) #26
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 6 months ago (2014-05-28 09:32:40 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/291903003/150001
6 years, 6 months ago (2014-05-28 09:33:26 UTC) #28
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-05-28 09:56:03 UTC) #29
qsr
The CQ bit was unchecked by qsr@chromium.org
6 years, 6 months ago (2014-05-28 10:00:03 UTC) #30
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 6 months ago (2014-05-28 10:00:05 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/291903003/150001
6 years, 6 months ago (2014-05-28 10:00:16 UTC) #32
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-05-28 11:13:51 UTC) #33
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-28 11:20:32 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/157522)
6 years, 6 months ago (2014-05-28 11:20:33 UTC) #35
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 6 months ago (2014-05-28 11:39:27 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/291903003/150001
6 years, 6 months ago (2014-05-28 11:40:44 UTC) #37
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-05-28 12:23:04 UTC) #38
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 6 months ago (2014-05-28 13:21:36 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/291903003/150002
6 years, 6 months ago (2014-05-28 13:22:40 UTC) #40
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium ...
6 years, 6 months ago (2014-05-28 15:19:03 UTC) #41
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-28 15:26:19 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_chromium_gn_compile_rel/builds/8093)
6 years, 6 months ago (2014-05-28 15:26:19 UTC) #43
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 6 months ago (2014-05-28 15:30:15 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/291903003/150002
6 years, 6 months ago (2014-05-28 15:31:21 UTC) #45
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium ...
6 years, 6 months ago (2014-05-28 16:39:28 UTC) #46
qsr
The CQ bit was unchecked by qsr@chromium.org
6 years, 6 months ago (2014-05-28 16:40:53 UTC) #47
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 6 months ago (2014-05-28 16:40:53 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/291903003/150002
6 years, 6 months ago (2014-05-28 16:41:35 UTC) #49
commit-bot: I haz the power
Change committed as 273307
6 years, 6 months ago (2014-05-28 18:57:28 UTC) #50
Mathieu
6 years, 6 months ago (2014-05-28 19:35:54 UTC) #51
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/302923002/ by mathp@chromium.org.

The reason for reverting is: Breaking a bot (Linux Builder (dbg)(32)).

Powered by Google App Engine
This is Rietveld 408576698