Example #1
0
func (reqH *myRequestHandler) OnBeforeBrowse(browser cef2go.CefBrowserT, frame cef2go.CefFrameT, request cef2go.CefRequestT, isRedirect int) int {
	defer browser.Release()
	defer frame.Release()
	defer request.Release()
	log.Println("Before browse: ", request.GetUrl())
	return 0
}
Example #2
0
func (d *myDisplayHandler) OnConsoleMessage(browser cef2go.CefBrowserT, message, source string, line int) bool {
	defer browser.Release()
	log.Println("[Console] ", message)
	return true
}
Example #3
0
func (d *myDisplayHandler) OnStatusMessage(browser cef2go.CefBrowserT, value string) {
	defer browser.Release()
}
Example #4
0
func (d *myDisplayHandler) OnToolTip(browser cef2go.CefBrowserT, text string) bool {
	defer browser.Release()
	return false
}
Example #5
0
func (d *myDisplayHandler) OnTitleChange(browser cef2go.CefBrowserT, title string) {
	defer browser.Release()
	log.Println("OnTitleChange" + title)
}
Example #6
0
func (d *myDisplayHandler) OnAddressChange(browser cef2go.CefBrowserT, frame cef2go.CefFrameT, url string) {
	defer browser.Release()
	defer frame.Release()
	log.Println("OnAddressChange" + url)
}
Example #7
0
func (reqH *myRequestHandler) OnBeforeResourceLoad(browser cef2go.CefBrowserT, frame cef2go.CefFrameT, request cef2go.CefRequestT) int {
	defer browser.Release()
	defer frame.Release()
	defer request.Release()
	return 0
}
Example #8
0
func (l *myLifeSpanHandler) BeforeClose(browser cef2go.CefBrowserT) {
	defer browser.Release()
	log.Println("lifespan::BeforeClose")
	cef2go.QuitMessageLoop()
}
Example #9
0
func (l *myLifeSpanHandler) DoClose(browser cef2go.CefBrowserT) int {
	defer browser.Release()
	log.Println("lifespan::DoClose")
	return 0
}
Example #10
0
func (l *myLifeSpanHandler) RunModal(browser cef2go.CefBrowserT) int {
	defer browser.Release()
	log.Println("lifespan::RunModal")
	return 0
}
Example #11
0
func (l *myLifeSpanHandler) OnAfterCreated(browser cef2go.CefBrowserT) {
	defer browser.Release()
	log.Println("lifespan::OnAfterCreated")
}