Using Gecko XPCOM vs WebKit

I need to embed a web browser in a C ++ application. In addition, I need to find my javascript methods from Delphi components.

I know that for FF there is a Gecko with XPCOM. Is there something similar for WebKit?

+3
source share
2 answers

First WebKit: a project called Chromium embedded (Chromium is basically a WebKit rendering engine and Javascript V8 engine), which also supports Delphi . After a quick look at the headers, I did not find a way to access the JS methods, but it allows you to execute javascript fragments in this frame:

// Execute a string of JavaScript code in this frame. The |script_url|
// parameter is the URL where the script in question can be found, if any. The
// renderer may request this URL to show the developer the source of the
// error.  The |start_line| parameter is the base line number to use for error
// reporting.
execute_java_script: procedure(self: PCefFrame; const jsCode, scriptUrl: PWideChar; startLine: Integer); stdcall;

So there are parts, you just need to figure out how to copy them.

Gecko Delphi, d-gecko. , , , , Javascript.

+7

, Chrome Delphi.

+2

Source: https://habr.com/ru/post/1760962/


All Articles