Add CefJSDialogHandler::OnDialogClosed callback (issue #943).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1263 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2013-05-31 13:45:21 +00:00
parent 3d16a39e9e
commit b3cd2ae6a8
6 changed files with 53 additions and 0 deletions

View File

@@ -108,6 +108,22 @@ void CefJSDialogHandlerCToCpp::OnResetDialogState(
CefBrowserCppToC::Wrap(browser));
}
void CefJSDialogHandlerCToCpp::OnDialogClosed(CefRefPtr<CefBrowser> browser) {
if (CEF_MEMBER_MISSING(struct_, on_dialog_closed))
return;
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Verify param: browser; type: refptr_diff
DCHECK(browser.get());
if (!browser.get())
return;
// Execute
struct_->on_dialog_closed(struct_,
CefBrowserCppToC::Wrap(browser));
}
#ifndef NDEBUG
template<> long CefCToCpp<CefJSDialogHandlerCToCpp, CefJSDialogHandler,