Comments (4)
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.
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.
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.
@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)
- 结束程序时,报后台报系统异常。 HOT 2
- Failed to build on windows HOT 3
- javacef.dll crashes over webstart HOT 6
- Build error on both win32/64 platforms HOT 1
- remote debugging in embed mode.. HOT 1
- Chrome version mismatch HOT 5
- How long will the downloadable release builds for win be available? HOT 1
- webgl crashes/undefined behavior on close HOT 2
- Mac - Command - copy/paste/select - NOT Working - text input elements HOT 3
- Chromium window inside jframe HOT 2
- Certificate problem.. HOT 4
- Unstable on mac64 HOT 2
- Will also continue to update the CEF? HOT 1
- switching to latest cef_runtime HOT 3
- Error while building on Arch Linux 64 HOT 11
- Example application HOT 1
- Crashing when embedding in Eclipse - Application HOT 7
- Can we send JAVACEF_PATH value as system property ? HOT 2
- javacef win64 - ERROR:child_process_launcher.cc(332)] Failed to launch child proces HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javacef.