go-webview2
go-webview2 copied to clipboard
Add bindings and expose Navigation Starting and Navigation Completed
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.