Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WebView #232

Open
niutech opened this issue Feb 2, 2021 · 2 comments
Open

Add WebView #232

niutech opened this issue Feb 2, 2021 · 2 comments

Comments

@niutech
Copy link

niutech commented Feb 2, 2021

Please add a lightweight WebView widget to embed an arbitrary web page in a sandbox, possibly using a native browser engine with webview, Ultralight or Servo. Thanks!

@lc-soft
Copy link
Owner

lc-soft commented Feb 5, 2021

Before adding WebView widget, we need to solve the following problems:

  1. How to compile browser engine easily and quickly?
    The browser engine may have many dependent libraries, and the compilation methods of these libraries are various.
    We should provide a few simple command lines to make it easier for users to compile it.
  2. How to adapt browser engine?
    We need to transfer UI events to WebView and present the rendering results of WebView output to the screen. Does WebView provide relevant API support?

If you have used these browser engines, studied its source code, and can provide solutions to these problems, it will be very helpful for the development of WebView widget.

@niutech
Copy link
Author

niutech commented Feb 5, 2021

I have used Ultralight (free for non-commercial use and companies with <$100k revenue) and it's very simple to integrate, have a look at the quick start tutorial.

Another option is to use the native platform web engine, see the webview sample - you just have to #include "webview.h" and provide the native window handle in webview_create(int debug, void *window).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants