|
[Android] Java Bridge with Gin: implement Java methods invocation
This patch adds GinJavaMethodInvocationHelper class which serves
for coercion of arguments and return values of Java methods to / from
base::Value and GinJavaBridgeValue.
The coercion code is taken from the existing implementation
(JavaBoundObject) with required conversions to use base::Value and
GinJavaBridgeValue instead of NPVARIANT and friends.
There are extensive Java tests for coercion, so here we only add some
unit tests for edge cases.
This patch also adds a trivial EventLog class for writing into Android
Event Log from C++ code.
BUG= 355644
R=bulach@chromium.org, torne@chromium.org
TBR=brettw@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276586
Total comments: 22
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1529 lines, -4 lines) |
Patch |
 |
M |
base/BUILD.gn
|
View
|
1
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/android/base_jni_registrar.cc
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
base/android/event_log.h
|
View
|
1
|
1 chunk |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
A |
base/android/event_log.cc
|
View
|
1
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
A |
base/android/java/src/org/chromium/base/EventLog.java
|
View
|
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/android/jni_weak_ref.h
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/base.gyp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
base/base.gypi
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/browser/renderer_host/java/gin_java_bound_object.h
|
View
|
|
1 chunk |
+27 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/browser/renderer_host/java/gin_java_method_invocation_helper.h
|
View
|
1
2
3
|
1 chunk |
+113 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/browser/renderer_host/java/gin_java_method_invocation_helper.cc
|
View
|
1
|
1 chunk |
+310 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/browser/renderer_host/java/gin_java_method_invocation_helper_unittest.cc
|
View
|
|
1 chunk |
+280 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/browser/renderer_host/java/gin_java_script_to_java_types_coercion.h
|
View
|
1
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/browser/renderer_host/java/gin_java_script_to_java_types_coercion.cc
|
View
|
1
2
|
1 chunk |
+705 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/content_browser.gypi
|
View
|
1
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/content_tests.gypi
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 20 (0 generated)
|