Description[Android] Java Bridge with Gin: implement Java bound object
This patch adds implementation for GinJavaBoundObject class, which
is responsible for interacting with injected Java objects, and a helper
trivial class GinJavaBoundObjectDelegate which is used with GinJavaMethodInvocationHelper
Java interaction code is mostly taken from the existing implementation.
The main difference that the new implementation has, is that the relationship
between Java objects and JavaScript interface objects is now managed
by us, not by NPAPI.
This patch also contains the following fixes to the existing code
discovered after re-running tests:
-- ART doesn't like when static Java methods are invoked using JNI calls
for instance methods, so switched to use the right JNI calls;
-- accessing 'window' object when adding JavaScript interface objects
may cause DidClearWindowObject to be called, so guard against double
entrance.
BUG=355644
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278214
Patch Set 1 #Patch Set 2 : Rebased #Messages
Total messages: 8 (0 generated)
|