mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Issue #307:
- Add a CefBrowser::HasDocument() method that tests if a document has been loaded in the browser window. - Modify ClientHandler::GetDownloadHandler() to demonstrate how to close a download popup window. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@282 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -144,6 +144,14 @@ bool CefBrowserCToCpp::IsPopup()
|
||||
return struct_->is_popup(struct_)?true:false;
|
||||
}
|
||||
|
||||
bool CefBrowserCToCpp::HasDocument()
|
||||
{
|
||||
if(CEF_MEMBER_MISSING(struct_, has_document))
|
||||
return false;
|
||||
|
||||
return struct_->has_document(struct_)?true:false;
|
||||
}
|
||||
|
||||
CefRefPtr<CefClient> CefBrowserCToCpp::GetClient()
|
||||
{
|
||||
if (CEF_MEMBER_MISSING(struct_, get_client))
|
||||
|
Reference in New Issue
Block a user