Giter VIP home page Giter VIP logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
Currently javacef doesn't support this. The way to do this is different in 
newer version of cef. I'll have time to port the latest cef this weekend, and 
the method is in Issue 3.

For the latest runtime,
https://code.google.com/p/chromiumembedded/source/browse/trunk/cef3/tests/cefcli
ent/binding_test.h
https://code.google.com/p/chromiumembedded/source/browse/trunk/cef3/tests/cefcli
ent/binding_test.cpp
https://code.google.com/p/chromiumembedded/source/browse/trunk/cef3/tests/cefcli
ent/client_handler.cpp    (line 649)
https://code.google.com/p/javachromiumembedded/source/browse/trunk/src/native/me
ssage_router_handler.cpp

For the current (old) runtime:
https://code.google.com/p/chromiumembedded/source/browse/branches/1547/cef3/test
s/cefclient/binding_test.h
https://code.google.com/p/chromiumembedded/source/browse/branches/1547/cef3/test
s/cefclient/binding_test.cpp
https://code.google.com/p/chromiumembedded/source/browse/branches/1547/cef3/test
s/cefclient/res/binding.html

I think you can implement a similar one as binding_test, register it, send the 
string to Java, return a true/false in the Java method and call the success or 
failure method in c++. 

Original comment by [email protected] on 10 Jun 2014 at 1:29

from javacef.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
Hi,
I am eagerly waiting about porting cef to the latest.
If you don't mind, can you give me approx dates by when this can be completed. 
I will plan my work accordingly.

Thank you.

Original comment by [email protected] on 17 Jun 2014 at 4:55

from javacef.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
Is there a any plan to support java to js / js to java communication ? I'm 
looking for something similar to org.eclipse.swt.browser.Browser.execute() and 
org.eclipse.swt.browser.BrowserFunction

Original comment by [email protected] on 26 Jan 2015 at 5:43

from javacef.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
@guillez, I don't have time to work on this now, so you may need to check the 
links of the latest runtime in comment #1 for js to java. You can add a native 
method to pass the string from java to c++ and call 
g_handler_local->GetBrowser()->GetMainFrame()->ExecuteJavaScript("js", 
frame->GetURL(), 0);

Original comment by [email protected] on 4 Feb 2015 at 3:04

from javacef.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.