go-webview2 icon indicating copy to clipboard operation
go-webview2 copied to clipboard

Add bindings and expose Navigation Starting and Navigation Completed

Open nomis51 opened this issue 3 years ago • 0 comments

Add bindings for Navigation Starting and Navigation Completed which would also resolve the issue #50 .

TL;DR Changes :

  • Chromium
    • Add handler and args for Navigation Starting
    • Update args for Navigation Completed (was missing HTTP status code)
    • Add navigation starting callback on chromium and binds it
    • Handles Navigation Starting and Navigation Completed arguments to feed the callback
    • Handles PutCancel (to cancel the navigation)
  • webview
    • Expose Navigation Starting and Navigation Completed ready for listening
    • Forward resulting arguments to listeners
  • demo/main
    • Show the usage of Navigation Starting and Navigation Completed

I'm still new to Go and webview in general, so if I made mistakes or did something wrong, just let me know, I'll do my best to fix it.

nomis51 avatar Sep 15 '22 22:09 nomis51