组件事件接口 IChromiumEvent

定义 接口类型
继承 lcl.IObject

接口-事件函数

创建浏览器之前

SetOnBeforeBrowser(fn ChromiumEventOnBeforeBrowser)

创建浏览器之后

SetOnAfterCreated(fn ChromiumEventOnAfterCreated)

浏览器关闭之前

SetOnBeforeClose(fn ChromiumEventOnBeforeClose)

浏览器关闭

SetOnClose(fn ChromiumEventOnClose)

地址改变

SetOnAddressChange(fn ChromiumEventOnAddressChange)

打印保存PDF完成

SetOnPdfPrintFinished(fn ChromiumEventOnResult)

由触发函数

PrintToPDF

缩放与重置缩放触发

SetOnZoomPctAvailable(fn ChromiumEventOnResultFloat)

由触发函数

BrowserZoom
ResetZoomLevel

页面开始加载

SetOnLoadStart(fn ChromiumEventOnLoadStart)

页面加载状态

SetOnLoadingStateChange(fn ChromiumEventOnLoadingStateChange)

页面加载进度

SetOnLoadingProgressChange(fn ChromiumEventOnLoadingProgressChange)

页面加载错误

SetOnLoadError(fn ChromiumEventOnLoadError)

页面加载结束

SetOnLoadEnd(fn ChromiumEventOnLoadEnd)

下载之前

SetOnBeforeDownload(fn ChromiumEventOnBeforeDownload)

由函数触发

StartDownload

下载进度更新

SetOnDownloadUpdated(fn ChromiumEventOnDownloadUpdated)

由函数触发

StartDownload

全屏模式改变

SetOnFullScreenModeChange(fn ChromiumEventOnFullScreenModeChange)

键盘事件

SetOnKeyEvent(fn ChromiumEventOnKeyEvent)

页面标题改变

SetOnTitleChange(fn ChromiumEventOnTitleChange)

渲染进程消息接收

SetOnRenderCompMsg(fn ChromiumEventOnRenderCompMsg)

只适用Windows

渲染进程准备显示

SetOnRenderViewReady(fn ChromiumEventOnCefBrowser)

只适用Windows

渲染进程终止

SetOnRenderProcessTerminated(fn ChromiumEventOnRenderProcessTerminated)

滚动条滚动

SetOnScrollOffsetChanged(fn ChromiumEventOnScrollOffsetChanged)

进程消息接收

SetOnProcessMessageReceived(fn BrowseProcessMessageReceived)

由函数触发

SendProcessMessage