|
导航:[首页]->[cpp]->[Libcef 基本对象]
##CefApp Libcef需要一个CefApp实例,通常为了监听某些事件,还需要继承其他的一些process Handler
在CefApp中,声明了一些获取对象的接口。他们都返回空。这里需要注意,继承的那些Handler的消息,是以来于CefApp中获取特殊对象的接口实现,而不是简单地返回一个NULL ##CefClient 创建浏览器对象时需传入一个CefClient,通常需要继承一些其他对象来监听消息 ###更新标题栏 通常都实现了改函数,因为桌面系统的任务栏文字和标题栏的文字是一致的(通常使用cef时都不会保留标题栏)
##CefBrowser && CefFrame 通常我们在CefLifeSpanHandler的OnAfterCreated和OnBeforeClose消息中保留CefBrowser的指针。 每个浏览器都有一个CefFrame对象,以及若干子Frame The CefBrowser and CefFrame objects are used for sending commands to the browser and for retrieving state information in callback methods. Each CefBrowser object will have a single main CefFrame object representing the top-level frame and zero or more CefFrame objects representing sub-frames. For example, a browser that loads two iframes will have three CefFrame objects (the top-level frame and the two iframes). ####操作浏览器行为 ####获得窗口原生句柄 CefBrowserHost::GetWindowHandle ##参考
|