diff --git a/example/browser-tiny/resources/golang.jpeg b/example/browser-tiny/resources/golang.jpeg new file mode 100644 index 0000000000000000000000000000000000000000..2fa0443637df30a56ace2f9672fdee9f07349324 Binary files /dev/null and b/example/browser-tiny/resources/golang.jpeg differ diff --git a/example/browser-tiny/resources/icon.ico b/example/browser-tiny/resources/icon.ico deleted file mode 100644 index 15488cda83df2add53a05fbd651249c8deb3ab29..0000000000000000000000000000000000000000 Binary files a/example/browser-tiny/resources/icon.ico and /dev/null differ diff --git a/example/browser-tiny/tiny.go b/example/browser-tiny/tiny.go index 3423934ff6e44fc53a73e2e602bc8352c4f3f17d..cc256b78a989932b3bacb1b9b4241227fbc459f9 100644 --- a/example/browser-tiny/tiny.go +++ b/example/browser-tiny/tiny.go @@ -41,7 +41,7 @@ func main() { windowComponent.SetTitle(title) }) chromium.SetOnBeforePopup(func(sender lcl.IObject, browser *cef.ICefBrowser, frame *cef.ICefFrame, beforePopupInfo *cef.BeforePopupInfo, client *cef.ICefClient, noJavascriptAccess *bool) bool { - fmt.Println("OnBeforePopup") + fmt.Println("OnBeforePopup TargetUrl:", beforePopupInfo.TargetUrl) return false }) @@ -55,10 +55,8 @@ func main() { fmt.Println("\t", display.Bounds(), display.WorkArea()) windowComponent.CenterWindow(cef.NewCefSize(1024, 768)) browserViewComponent.RequestFocus() + windowComponent.SetWindowAppIcon(1, "resources/golang.jpeg") windowComponent.Show() - windowComponent.SetWindowAppIcon(1, "resources/gitcode.png") - appIcon := windowComponent.WindowAppIcon() - fmt.Println("WindowIcon", appIcon.GetHeight()) }) windowComponent.SetOnCanClose(func(sender lcl.IObject, window *cef.ICefWindow, aResult *bool) { fmt.Println("OnCanClose")