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 }
func (d *myDisplayHandler) OnConsoleMessage(browser cef2go.CefBrowserT, message, source string, line int) bool { defer browser.Release() log.Println("[Console] ", message) return true }
func (d *myDisplayHandler) OnStatusMessage(browser cef2go.CefBrowserT, value string) { defer browser.Release() }
func (d *myDisplayHandler) OnToolTip(browser cef2go.CefBrowserT, text string) bool { defer browser.Release() return false }
func (d *myDisplayHandler) OnTitleChange(browser cef2go.CefBrowserT, title string) { defer browser.Release() log.Println("OnTitleChange" + title) }
func (d *myDisplayHandler) OnAddressChange(browser cef2go.CefBrowserT, frame cef2go.CefFrameT, url string) { defer browser.Release() defer frame.Release() log.Println("OnAddressChange" + url) }
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 }
func (l *myLifeSpanHandler) BeforeClose(browser cef2go.CefBrowserT) { defer browser.Release() log.Println("lifespan::BeforeClose") cef2go.QuitMessageLoop() }
func (l *myLifeSpanHandler) DoClose(browser cef2go.CefBrowserT) int { defer browser.Release() log.Println("lifespan::DoClose") return 0 }
func (l *myLifeSpanHandler) RunModal(browser cef2go.CefBrowserT) int { defer browser.Release() log.Println("lifespan::RunModal") return 0 }
func (l *myLifeSpanHandler) OnAfterCreated(browser cef2go.CefBrowserT) { defer browser.Release() log.Println("lifespan::OnAfterCreated") }