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

Issue 9384011: Chrome on Android: adds jni_generator. (Closed)

Created:
8 years, 10 months ago by bulach
Modified:
8 years, 10 months ago
Reviewers:
Mark Mentovai, joth
CC:
chromium-reviews, brettw-cc_chromium.org, Peter Beverloo
Visibility:
Public.

Description

Chrome on Android: adds jni_generator. On Android, we use JNI to call into the system API. This patch adds the generator for the bindings and all its tests. We'll soon start adding the API wrappers themselves. BUG= TEST=base/android/jni_generator/jni_generator_tests.py Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=123374

Patch Set 1 : Patch #

Total comments: 23

Patch Set 2 : Joth's comments #

Total comments: 19

Patch Set 3 : Mark's comments #

Patch Set 4 : Reflow comments. #

Total comments: 2

Patch Set 5 : Wraps python and .h output at 80cols. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3072 lines, -0 lines) Patch
A base/android/jni_generator/SampleForTests.java View 1 2 3 1 chunk +150 lines, -0 lines 0 comments Download
A base/android/jni_generator/golden_sample_for_tests_jni.h View 1 2 3 4 1 chunk +297 lines, -0 lines 0 comments Download
A base/android/jni_generator/jni_generator.gyp View 1 2 1 chunk +67 lines, -0 lines 0 comments Download
A base/android/jni_generator/jni_generator.py View 1 2 3 4 1 chunk +972 lines, -0 lines 0 comments Download
A base/android/jni_generator/jni_generator_tests.py View 1 2 3 4 1 chunk +1527 lines, -0 lines 0 comments Download
A base/android/jni_generator/sample_for_tests.cc View 1 2 1 chunk +56 lines, -0 lines 0 comments Download
M base/base.gyp View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
bulach
Hi Mark, This is the patch for the jni generator. I also "upstreamed" the docs ...
8 years, 10 months ago (2012-02-13 23:58:29 UTC) #1
joth
I didn't read any python in detail this time. http://codereview.chromium.org/9384011/diff/4001/base/android/jni_generator/SampleForTests.java File base/android/jni_generator/SampleForTests.java (right): http://codereview.chromium.org/9384011/diff/4001/base/android/jni_generator/SampleForTests.java#newcode1 base/android/jni_generator/SampleForTests.java:1: ...
8 years, 10 months ago (2012-02-14 00:46:49 UTC) #2
bulach
thanks joth! all comments addressed, except the scoped jclass that I'll do separately.. https://chromiumcodereview.appspot.com/9384011/diff/4001/base/android/jni_generator/SampleForTests.java File ...
8 years, 10 months ago (2012-02-14 02:12:31 UTC) #3
Mark Mentovai
http://codereview.chromium.org/9384011/diff/11001/base/android/jni_generator/SampleForTests.java File base/android/jni_generator/SampleForTests.java (right): http://codereview.chromium.org/9384011/diff/11001/base/android/jni_generator/SampleForTests.java#newcode142 base/android/jni_generator/SampleForTests.java:142: private native double nativeMethodOtherP0(int nativeCPPClass /* cpp_namespace::CPPClass */); Long ...
8 years, 10 months ago (2012-02-14 20:00:38 UTC) #4
bulach
thanks mark! all comments addressed, another look please? http://codereview.chromium.org/9384011/diff/11001/base/android/jni_generator/SampleForTests.java File base/android/jni_generator/SampleForTests.java (right): http://codereview.chromium.org/9384011/diff/11001/base/android/jni_generator/SampleForTests.java#newcode142 base/android/jni_generator/SampleForTests.java:142: private ...
8 years, 10 months ago (2012-02-14 23:18:11 UTC) #5
Mark Mentovai
http://codereview.chromium.org/9384011/diff/11001/base/android/jni_generator/SampleForTests.java File base/android/jni_generator/SampleForTests.java (right): http://codereview.chromium.org/9384011/diff/11001/base/android/jni_generator/SampleForTests.java#newcode142 base/android/jni_generator/SampleForTests.java:142: private native double nativeMethodOtherP0(int nativeCPPClass /* cpp_namespace::CPPClass */); bulach ...
8 years, 10 months ago (2012-02-15 19:32:36 UTC) #6
bulach
http://codereview.chromium.org/9384011/diff/11001/base/android/jni_generator/SampleForTests.java File base/android/jni_generator/SampleForTests.java (right): http://codereview.chromium.org/9384011/diff/11001/base/android/jni_generator/SampleForTests.java#newcode142 base/android/jni_generator/SampleForTests.java:142: private native double nativeMethodOtherP0(int nativeCPPClass /* cpp_namespace::CPPClass */); On ...
8 years, 10 months ago (2012-02-15 21:45:36 UTC) #7
Mark Mentovai
If the file’s going to be 100, then use 100 consistently, don’t wrap at a ...
8 years, 10 months ago (2012-02-15 21:47:05 UTC) #8
bulach
On 2012/02/15 21:47:05, Mark Mentovai wrote: > If the file’s going to be 100, then ...
8 years, 10 months ago (2012-02-15 22:03:37 UTC) #9
bulach
On 2012/02/15 22:03:37, bulach wrote: > On 2012/02/15 21:47:05, Mark Mentovai wrote: > > If ...
8 years, 10 months ago (2012-02-15 22:22:33 UTC) #10
Mark Mentovai
LGTM, then.
8 years, 10 months ago (2012-02-15 22:28:03 UTC) #11
bulach
On 2012/02/15 22:28:03, Mark Mentovai wrote: > LGTM, then. cool, thanks! I'll put through the ...
8 years, 10 months ago (2012-02-15 22:29:34 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/9384011/23001
8 years, 10 months ago (2012-02-16 00:19:25 UTC) #13
commit-bot: I haz the power
Presubmit check for 9384011-23001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 10 months ago (2012-02-16 00:19:30 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/9384011/23001
8 years, 10 months ago (2012-02-16 02:25:27 UTC) #15
commit-bot: I haz the power
Presubmit check for 9384011-23001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 10 months ago (2012-02-16 02:25:32 UTC) #16
joth
opps just noticed a couple other small things since I was last looking at this ...
8 years, 10 months ago (2012-02-16 18:32:23 UTC) #17
bulach
thanks joth! I'm still struggling with the CQ, maruel pointed me to the files and ...
8 years, 10 months ago (2012-02-16 18:37:26 UTC) #18
joth
On 16 February 2012 10:37, <bulach@chromium.org> wrote: > thanks joth! I'm still struggling with the ...
8 years, 10 months ago (2012-02-16 18:46:06 UTC) #19
bulach
landed the presubmit check: http://codereview.chromium.org/9417023 I'll put this on the CQ again..
8 years, 10 months ago (2012-02-22 01:20:55 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/9384011/23001
8 years, 10 months ago (2012-02-22 01:21:10 UTC) #21
commit-bot: I haz the power
Presubmit check for 9384011-23001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 10 months ago (2012-02-22 01:21:15 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/9384011/23001
8 years, 10 months ago (2012-02-22 17:28:07 UTC) #23
commit-bot: I haz the power
Presubmit check for 9384011-23001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 10 months ago (2012-02-22 17:28:12 UTC) #24
bulach
hi mark, quick question: I fixed the presubmit check to allow java files to have ...
8 years, 10 months ago (2012-02-22 17:43:26 UTC) #25
Peter Beverloo
The commit bot is complaining about golden_sample_for_tests_jni.h this time, not the Java file. Peter
8 years, 10 months ago (2012-02-22 17:45:01 UTC) #26
Peter Beverloo
On 2012/02/22 17:45:01, Peter Beverloo wrote: > The commit bot is complaining about golden_sample_for_tests_jni.h this ...
8 years, 10 months ago (2012-02-22 17:47:23 UTC) #27
joth
[as discussed on IM] Either way I propose bypassing the presubmit for this CL, to ...
8 years, 10 months ago (2012-02-22 18:03:46 UTC) #28
bulach
the presubmit would also complain on the python itself, and the test... :( let me ...
8 years, 10 months ago (2012-02-22 18:43:35 UTC) #29
bulach
phew! :) it seems that the presubmit tests are now green.. there are no functional ...
8 years, 10 months ago (2012-02-22 21:36:21 UTC) #30
Mark Mentovai
LGTM
8 years, 10 months ago (2012-02-22 21:39:50 UTC) #31
bulach
thanks Mark! try jobs failures seem unrelated.. hitting the CQ once again.
8 years, 10 months ago (2012-02-22 23:19:48 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/9384011/31003
8 years, 10 months ago (2012-02-22 23:20:04 UTC) #33
commit-bot: I haz the power
Try job failure for 9384011-31003 (retry) (retry) (retry) on win_rel for step "ui_tests". It's a ...
8 years, 10 months ago (2012-02-23 05:45:08 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/9384011/31003
8 years, 10 months ago (2012-02-23 16:23:08 UTC) #35
commit-bot: I haz the power
Try job failure for 9384011-31003 (retry) on win_rel for steps "unit_tests, browser_tests, ui_tests". It's a ...
8 years, 10 months ago (2012-02-23 21:25:50 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/9384011/31003
8 years, 10 months ago (2012-02-23 21:32:07 UTC) #37
commit-bot: I haz the power
8 years, 10 months ago (2012-02-24 00:09:40 UTC) #38
Change committed as 123374

Powered by Google App Engine
This is Rietveld 408576698