ClientAdapter: handle OnBeforeClose()

This commit is contained in:
anthony taranto
2011-06-14 13:48:56 -07:00
parent 30b9891e7a
commit b7dcd374eb
2 changed files with 10 additions and 1 deletions
+8
View File
@@ -26,6 +26,14 @@ namespace CefSharp
}
}
void ClientAdapter::OnBeforeClose(CefRefPtr<CefBrowser> browser)
{
if (_browserHwnd == browser->GetWindowHandle())
{
_cefBrowser = nullptr;
}
}
void ClientAdapter::OnAddressChange(CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame> frame, const CefString& url)
{
if(frame->IsMain())