示例#1
0
文件: request.go 项目: regiontog/cef
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
}
示例#2
0
文件: display.go 项目: regiontog/cef
func (d *myDisplayHandler) OnConsoleMessage(browser cef2go.CefBrowserT, message, source string, line int) bool {
	defer browser.Release()
	log.Println("[Console] ", message)
	return true
}
示例#3
0
文件: display.go 项目: regiontog/cef
func (d *myDisplayHandler) OnStatusMessage(browser cef2go.CefBrowserT, value string) {
	defer browser.Release()
}
示例#4
0
文件: display.go 项目: regiontog/cef
func (d *myDisplayHandler) OnToolTip(browser cef2go.CefBrowserT, text string) bool {
	defer browser.Release()
	return false
}
示例#5
0
文件: display.go 项目: regiontog/cef
func (d *myDisplayHandler) OnTitleChange(browser cef2go.CefBrowserT, title string) {
	defer browser.Release()
	log.Println("OnTitleChange" + title)
}
示例#6
0
文件: display.go 项目: regiontog/cef
func (d *myDisplayHandler) OnAddressChange(browser cef2go.CefBrowserT, frame cef2go.CefFrameT, url string) {
	defer browser.Release()
	defer frame.Release()
	log.Println("OnAddressChange" + url)
}
示例#7
0
文件: request.go 项目: regiontog/cef
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
}
示例#8
0
文件: client.go 项目: regiontog/cef
func (l *myLifeSpanHandler) BeforeClose(browser cef2go.CefBrowserT) {
	defer browser.Release()
	log.Println("lifespan::BeforeClose")
	cef2go.QuitMessageLoop()
}
示例#9
0
文件: client.go 项目: regiontog/cef
func (l *myLifeSpanHandler) DoClose(browser cef2go.CefBrowserT) int {
	defer browser.Release()
	log.Println("lifespan::DoClose")
	return 0
}
示例#10
0
文件: client.go 项目: regiontog/cef
func (l *myLifeSpanHandler) RunModal(browser cef2go.CefBrowserT) int {
	defer browser.Release()
	log.Println("lifespan::RunModal")
	return 0
}
示例#11
0
文件: client.go 项目: regiontog/cef
func (l *myLifeSpanHandler) OnAfterCreated(browser cef2go.CefBrowserT) {
	defer browser.Release()
	log.Println("lifespan::OnAfterCreated")
}