It is currently Tue Dec 01, 2020 10:14 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Webview2 control - Chromium browser for Purebasic (Windo
PostPosted: Mon Sep 14, 2020 10:25 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jan 08, 2017 10:27 pm
Posts: 171
Location: France
You rock Justin and Ohm version 0.1 is superb Image

Fred wrote:
Finally a new native solution is coming ! Thanks for the wrapper, we will look into it once it gets live.

Image Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Webview2 control - Chromium browser for Purebasic (Windo
PostPosted: Tue Sep 15, 2020 11:04 am 
Offline
Enthusiast
Enthusiast

Joined: Sat Apr 26, 2003 2:49 pm
Posts: 696
Hi ChrisR, thanks i want to keep improving it.

Fred wrote:
Finally a new native solution is coming ! Thanks for the wrapper, we will look into it once it gets live.


That's great, will be chromium in the three platforms? or webkit in linux /mac?

One thing i found problematic is that ExecuteScript() is asynchronous, in c# you can use async/await but in PB i had to spawn a message loop to make a synchronous version. I hope you found a better solution, don't known if implementing async / await is possible in PB.


Top
 Profile  
Reply with quote  
 Post subject: Re: Webview2 control - Chromium browser for Purebasic (Windo
PostPosted: Mon Sep 28, 2020 8:29 am 
Offline
Enthusiast
Enthusiast

Joined: Fri Feb 19, 2010 3:42 am
Posts: 544
Hello Justin: great!great!great!

Even ctrl-shift-i does open development tools!

(Any idea how to bind an external chrome developer via remote debugging? chrome://inspect)


Your implementation is a game changer!

Again: great!
Thanks a lot!!!


Top
 Profile  
Reply with quote  
 Post subject: Re: Webview2 control - Chromium browser for Purebasic (Windo
PostPosted: Mon Sep 28, 2020 4:36 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Apr 26, 2003 2:49 pm
Posts: 696
Hi HanPBF,
i don't have experience with remote debugging, but it is expained here:
https://docs.microsoft.com/en-us/microsoft-edge/devtools-guide-chromium/remote-debugging/

I tried the Android device debugging and it worked as expected, it did not recognize my android phone at first, i had to follow the steps here: (The Update 24 February 2016 part)
https://stackoverflow.com/questions/21925992/chrome-devtools-devices-does-not-detect-device-when-plugged-in

Basically i installed the Windows USB driver, the ADB package, and issued 'adb devices' from cmd as explained in the page and it worked.

Is that what you were looking for?


Top
 Profile  
Reply with quote  
 Post subject: Re: Webview2 control - Chromium browser for Purebasic (Windo
PostPosted: Mon Sep 28, 2020 5:24 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri Feb 19, 2010 3:42 am
Posts: 544
Yes, normally a page shown with a specific port should be enough to remote debug.

But, internal debugger (ctrl-shift-i) should always work.

Thanks!


Top
 Profile  
Reply with quote  
 Post subject: Re: Webview2 control - Chromium browser for Purebasic (Windo
PostPosted: Sun Oct 04, 2020 4:21 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Apr 26, 2003 2:49 pm
Posts: 696
Small update 4 October 2020, see first post.


Top
 Profile  
Reply with quote  
 Post subject: Re: Webview2 control - Chromium browser for Purebasic (Windo
PostPosted: Thu Oct 22, 2020 6:48 pm 
Offline
Addict
Addict

Joined: Wed Feb 28, 2007 9:13 am
Posts: 1076
Location: London
Thanks for this, Justin. Excellent work.

_________________
JACK WEBB: "Coding in C is like sculpting a statue using only sandpaper. You can do it, but the result wouldn't be any better. So why bother? Just use the right tools and get the job done."


Top
 Profile  
Reply with quote  
 Post subject: Re: Webview2 control - Chromium browser for Purebasic (Windo
PostPosted: Sat Oct 24, 2020 1:18 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Apr 26, 2003 2:49 pm
Posts: 696
Updated to 1.0.622.22 SDK, see first post.


Top
 Profile  
Reply with quote  
 Post subject: Re: Webview2 control - Chromium browser for Purebasic (Windo
PostPosted: Sun Nov 01, 2020 11:44 am 
Offline
Enthusiast
Enthusiast

Joined: Sat Apr 26, 2003 2:49 pm
Posts: 696
Updated to 1.0.674-prerelease SDK, see first post.

The prerelease has introduced static linking of the WebView2Loader.dll, it does not work simply importing it in PB because you have to import all the dependencies.

If anyone wants to try, WebView2LoaderStatic.lib it's in the prerelease folder:

Try:
Code:
Import "WebView2LoaderStatic.lib"
   CreateCoreWebView2Environment(environment_created_handler.i)
   CreateCoreWebView2EnvironmentWithOptions(browserExecutableFolder.s, userDataFolder.s, environmentOptions.i, environment_created_handler.i)
   GetAvailableCoreWebView2BrowserVersionString(browserExecutableFolder.s, versionInfo.i)
   CompareBrowserVersions(version1.s, version2.s, result.i)
EndImport

CreateCoreWebView2Environment(0)


And it will show all the unresolved external symbols, maybe someone can fix it.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye