- 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:
Marshall Greenblatt
2011-08-30 16:20:27 +00:00
parent 16e468bb8c
commit f636510101
9 changed files with 56 additions and 4 deletions

View File

@@ -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))