Are there any mechanism to bridge JavaScript with C++ like GinJavaBridgeFoo?

59 views
Skip to first unread message

Tao Liu

unread,
Dec 15, 2015, 11:57:47 PM12/15/15
to Chromium-dev
Hi, 
    I found some class GinJavaBridgeFoo to bridge JavaScript with Java, but I can't find any mechanism to bridge JavaScript with C++, except using V8(Gin) to add object and function to JavaScript. Why no GinCppBridgeFoo? I think it's easier than GinJavaBridgeFoo, becasue it no need JNI. Or Chromium already has some mechanism to bridge C++ and JS? 

Jochen Eisinger

unread,
Dec 16, 2015, 2:13:03 AM12/16/15
to liuta...@gmail.com, Chromium-dev

You can use gin directly to bind C++ objects to JavaScript, see the examples in //src/gin/wrappable_unittest.cc


On Wed, Dec 16, 2015, 5:58 AM Tao Liu <liuta...@gmail.com> wrote:
Hi, 
    I found some class GinJavaBridgeFoo to bridge JavaScript with Java, but I can't find any mechanism to bridge JavaScript with C++, except using V8(Gin) to add object and function to JavaScript. Why no GinCppBridgeFoo? I think it's easier than GinJavaBridgeFoo, becasue it no need JNI. Or Chromium already has some mechanism to bridge C++ and JS? 

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
Reply all
Reply to author
Forward
0 new messages