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

Issue 411913002: mojo: generate Proxies and Stubs for java bindings. (Closed)

Created:
6 years, 5 months ago by qsr
Modified:
6 years, 3 months ago
Reviewers:
rmcilroy, ppi
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
Project:
chromium
Visibility:
Public.

Description

mojo: generate Proxies and Stubs for java bindings. This CL allows to generate Stub and Proxy of mojo service in java. This allows to call interfaces method through message pipes. Committed: https://chromium.googlesource.com/chromium/src/+/b2ef91ee4abe584e712db7a51d47a1b6d9a96e57 Committed: https://crrev.com/063e1e3acae7473399f5064c66296de55b0ac04b Cr-Commit-Position: refs/heads/master@{#292154}

Patch Set 1 #

Total comments: 5

Patch Set 2 : y #

Patch Set 3 : Fix unsafe cast. #

Patch Set 4 : #

Patch Set 5 : Do not generate code for empty accept methods. #

Total comments: 33

Patch Set 6 : Follow first pass review. #

Total comments: 47

Patch Set 7 : Follow review #

Patch Set 8 : Rename binder to manager #

Patch Set 9 : Fix naming. #

Total comments: 26

Patch Set 10 : Follow review #

Total comments: 2

Patch Set 11 : Follow review. #

Total comments: 6

Patch Set 12 : Follow review and add Closeable to Interface. #

Total comments: 6

Patch Set 13 : Follow review #

Patch Set 14 : Rename {{Interface}}Internal to {{Interface}}_Internal #

Patch Set 15 : Update gn build #

Patch Set 16 : Fix java6 issues #

Patch Set 17 : Fix false positive checklicense #

Patch Set 18 : Update landmines #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1236 lines, -89 lines) Patch
M build/get_landmines.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTestUtils.java View 1 2 chunks +12 lines, -3 lines 0 comments Download
M mojo/android/javatests/src/org/chromium/mojo/bindings/ConnectorTest.java View 4 chunks +6 lines, -5 lines 0 comments Download
A mojo/android/javatests/src/org/chromium/mojo/bindings/InterfacesTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +336 lines, -0 lines 0 comments Download
M mojo/public/java/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +16 lines, -14 lines 0 comments Download
M mojo/public/java/bindings/src/org/chromium/mojo/bindings/Connector.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -1 line 0 comments Download
M mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 7 chunks +68 lines, -18 lines 0 comments Download
A mojo/public/java/bindings/src/org/chromium/mojo/bindings/DelegatingConnectionErrorHandler.java View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +49 lines, -0 lines 0 comments Download
M mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +31 lines, -11 lines 0 comments Download
M mojo/public/java/bindings/src/org/chromium/mojo/bindings/HandleOwner.java View 1 chunk +7 lines, -0 lines 0 comments Download
M mojo/public/java/bindings/src/org/chromium/mojo/bindings/Interface.java View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +240 lines, -1 line 0 comments Download
M mojo/public/java/bindings/src/org/chromium/mojo/bindings/InterfaceRequest.java View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +39 lines, -4 lines 0 comments Download
M mojo/public/java/bindings/src/org/chromium/mojo/bindings/InterfaceWithClient.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +86 lines, -4 lines 0 comments Download
M mojo/public/java/bindings/src/org/chromium/mojo/bindings/MessageHeader.java View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M mojo/public/java/bindings/src/org/chromium/mojo/bindings/MessageReceiver.java View 1 chunk +9 lines, -1 line 0 comments Download
M mojo/public/java/bindings/src/org/chromium/mojo/bindings/Router.java View 1 chunk +0 lines, -6 lines 0 comments Download
M mojo/public/java/bindings/src/org/chromium/mojo/bindings/RouterImpl.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +14 lines, -0 lines 0 comments Download
A mojo/public/java/bindings/src/org/chromium/mojo/bindings/SideEffectFreeCloseable.java View 1 chunk +21 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +233 lines, -7 lines 0 comments Download
A mojo/public/tools/bindings/generators/java_templates/interface_internal.java.tmpl View 1 chunk +4 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/mojom_java_generator.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 8 chunks +48 lines, -11 lines 0 comments Download
M mojo/public/tools/bindings/mojom_bindings_generator.gypi View 1 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 44 (0 generated)
qsr
This is not ready to land, but given that this is very big, and that ...
6 years, 5 months ago (2014-07-23 14:56:53 UTC) #1
qsr
https://chromiumcodereview.appspot.com/411913002/diff/1/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java File mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java (right): https://chromiumcodereview.appspot.com/411913002/diff/1/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java#newcode360 mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java:360: S service = (S) builder.connect(handle); Found a way to ...
6 years, 4 months ago (2014-08-19 14:31:53 UTC) #2
qsr
Ordinal now use a constant.
6 years, 4 months ago (2014-08-20 09:43:37 UTC) #3
ppi
Please find some remarks from the first pass (I haven't look at *.tmpl yet) below. ...
6 years, 4 months ago (2014-08-20 16:32:51 UTC) #4
qsr
https://chromiumcodereview.appspot.com/411913002/diff/80001/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java File mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java (right): https://chromiumcodereview.appspot.com/411913002/diff/80001/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java#newcode44 mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java:44: * The number of handle in the message. On ...
6 years, 4 months ago (2014-08-21 08:49:35 UTC) #5
rmcilroy
First pass, I've also not looked at the tmpl file yet. https://codereview.chromium.org/411913002/diff/100001/mojo/android/javatests/src/org/chromium/mojo/bindings/InterfacesTest.java File mojo/android/javatests/src/org/chromium/mojo/bindings/InterfacesTest.java (right): ...
6 years, 4 months ago (2014-08-21 14:43:53 UTC) #6
ppi
Thanks! Please find the second set of remarks below. I have one high-level concern related ...
6 years, 4 months ago (2014-08-21 14:47:14 UTC) #7
qsr
https://chromiumcodereview.appspot.com/411913002/diff/100001/mojo/android/javatests/src/org/chromium/mojo/bindings/InterfacesTest.java File mojo/android/javatests/src/org/chromium/mojo/bindings/InterfacesTest.java (right): https://chromiumcodereview.appspot.com/411913002/diff/100001/mojo/android/javatests/src/org/chromium/mojo/bindings/InterfacesTest.java#newcode28 mojo/android/javatests/src/org/chromium/mojo/bindings/InterfacesTest.java:28: * Testing interfaces generation. On 2014/08/21 14:47:13, ppi wrote: ...
6 years, 4 months ago (2014-08-22 08:11:19 UTC) #8
ppi
Thanks! Please find one more pass below. https://codereview.chromium.org/411913002/diff/160001/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java File mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java (right): https://codereview.chromium.org/411913002/diff/160001/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java#newcode262 mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java:262: } What ...
6 years, 4 months ago (2014-08-25 13:19:09 UTC) #9
qsr
https://codereview.chromium.org/411913002/diff/160001/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java File mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java (right): https://codereview.chromium.org/411913002/diff/160001/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java#newcode262 mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java:262: } On 2014/08/25 13:19:09, ppi wrote: > What happens ...
6 years, 4 months ago (2014-08-25 14:15:52 UTC) #10
ppi
This lgtm, thanks! Two follow-up comments on comments below. https://codereview.chromium.org/411913002/diff/160001/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java File mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java (right): https://codereview.chromium.org/411913002/diff/160001/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java#newcode262 mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java:262: ...
6 years, 4 months ago (2014-08-25 14:32:02 UTC) #11
qsr
https://codereview.chromium.org/411913002/diff/160001/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java File mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java (right): https://codereview.chromium.org/411913002/diff/160001/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java#newcode262 mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java:262: } On 2014/08/25 14:32:02, ppi wrote: > On 2014/08/25 ...
6 years, 4 months ago (2014-08-25 14:58:58 UTC) #12
qsr
Ross, do you want to do another pass?
6 years, 4 months ago (2014-08-25 14:59:15 UTC) #13
rmcilroy
On 2014/08/25 14:59:15, qsr wrote: > Ross, do you want to do another pass? Yes ...
6 years, 3 months ago (2014-08-26 09:42:06 UTC) #14
rmcilroy
lgtm with a couple of last suggestions. Thanks. https://codereview.chromium.org/411913002/diff/100001/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java File mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java (right): https://codereview.chromium.org/411913002/diff/100001/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java#newcode257 mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java:257: if ...
6 years, 3 months ago (2014-08-26 10:18:23 UTC) #15
qsr
https://codereview.chromium.org/411913002/diff/100001/mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl File mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl (right): https://codereview.chromium.org/411913002/diff/100001/mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl#newcode149 mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl:149: class {{interface|name}}Internal { On 2014/08/26 10:18:23, rmcilroy wrote: > ...
6 years, 3 months ago (2014-08-26 12:43:56 UTC) #16
qsr
https://codereview.chromium.org/411913002/diff/200001/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java File mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java (right): https://codereview.chromium.org/411913002/diff/200001/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java#newcode369 mojo/public/java/bindings/src/org/chromium/mojo/bindings/Encoder.java:369: * Encodes an array of doubles On 2014/08/26 10:18:23, ...
6 years, 3 months ago (2014-08-26 12:53:35 UTC) #17
ppi
https://codereview.chromium.org/411913002/diff/220001/mojo/android/javatests/src/org/chromium/mojo/bindings/InterfacesTest.java File mojo/android/javatests/src/org/chromium/mojo/bindings/InterfacesTest.java (right): https://codereview.chromium.org/411913002/diff/220001/mojo/android/javatests/src/org/chromium/mojo/bindings/InterfacesTest.java#newcode106 mojo/android/javatests/src/org/chromium/mojo/bindings/InterfacesTest.java:106: public MockFactoryImpl() { nit: initialize mClosed inline and skip ...
6 years, 3 months ago (2014-08-26 13:54:40 UTC) #18
qsr
https://codereview.chromium.org/411913002/diff/220001/mojo/android/javatests/src/org/chromium/mojo/bindings/InterfacesTest.java File mojo/android/javatests/src/org/chromium/mojo/bindings/InterfacesTest.java (right): https://codereview.chromium.org/411913002/diff/220001/mojo/android/javatests/src/org/chromium/mojo/bindings/InterfacesTest.java#newcode106 mojo/android/javatests/src/org/chromium/mojo/bindings/InterfacesTest.java:106: public MockFactoryImpl() { On 2014/08/26 13:54:40, ppi wrote: > ...
6 years, 3 months ago (2014-08-26 14:57:09 UTC) #19
rmcilroy
https://codereview.chromium.org/411913002/diff/100001/mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl File mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl (right): https://codereview.chromium.org/411913002/diff/100001/mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl#newcode149 mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl:149: class {{interface|name}}Internal { On 2014/08/26 12:43:56, qsr wrote: > ...
6 years, 3 months ago (2014-08-26 17:04:03 UTC) #20
qsr
https://codereview.chromium.org/411913002/diff/100001/mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl File mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl (right): https://codereview.chromium.org/411913002/diff/100001/mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl#newcode149 mojo/public/tools/bindings/generators/java_templates/interface_definition.tmpl:149: class {{interface|name}}Internal { On 2014/08/26 17:04:03, rmcilroy wrote: > ...
6 years, 3 months ago (2014-08-27 07:32:26 UTC) #21
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 3 months ago (2014-08-27 07:32:35 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/411913002/260001
6 years, 3 months ago (2014-08-27 07:33:45 UTC) #23
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.linux ...
6 years, 3 months ago (2014-08-27 08:57:31 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-27 09:02:45 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/9896)
6 years, 3 months ago (2014-08-27 09:02:47 UTC) #26
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 3 months ago (2014-08-27 09:18:26 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/411913002/280001
6 years, 3 months ago (2014-08-27 09:18:53 UTC) #28
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.linux ...
6 years, 3 months ago (2014-08-27 10:45:06 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-27 10:50:11 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg/builds/10090)
6 years, 3 months ago (2014-08-27 10:50:12 UTC) #31
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 3 months ago (2014-08-27 11:03:38 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/411913002/300001
6 years, 3 months ago (2014-08-27 11:04:07 UTC) #33
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel_swarming on tryserver.chromium.mac ...
6 years, 3 months ago (2014-08-27 11:59:42 UTC) #34
commit-bot: I haz the power
Committed patchset #16 (300001) as b2ef91ee4abe584e712db7a51d47a1b6d9a96e57
6 years, 3 months ago (2014-08-27 12:22:56 UTC) #35
Thiemo Nagel
A revert of this CL (patchset #16) has been created in https://codereview.chromium.org/511543005/ by tnagel@chromium.org. The ...
6 years, 3 months ago (2014-08-27 12:35:16 UTC) #36
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 3 months ago (2014-08-27 13:09:55 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/411913002/320001
6 years, 3 months ago (2014-08-27 13:10:50 UTC) #38
qsr
The CQ bit was unchecked by qsr@chromium.org
6 years, 3 months ago (2014-08-27 13:51:48 UTC) #39
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 3 months ago (2014-08-27 14:10:27 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/411913002/340001
6 years, 3 months ago (2014-08-27 14:11:14 UTC) #41
commit-bot: I haz the power
Committed patchset #18 (340001) as 11d4e3e519ce08c43ee9398332c38d1e9de888e5
6 years, 3 months ago (2014-08-27 15:18:59 UTC) #42
commit-bot: I haz the power
Patchset 18 (id:??) landed as https://crrev.com/6be1a71252ffb3988b84314262c73351c4d298cb Cr-Commit-Position: refs/heads/master@{#292136}
6 years, 3 months ago (2014-09-10 02:51:10 UTC) #43
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:51:46 UTC) #44
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/063e1e3acae7473399f5064c66296de55b0ac04b
Cr-Commit-Position: refs/heads/master@{#292154}

Powered by Google App Engine
This is Rietveld 408576698