Remove Geolocation API and Upgrade version numbers to 65

This commit is contained in:
amaitland
2018-03-17 21:31:25 +10:00
parent 8eb9860cac
commit c37dbcd06a
29 changed files with 22 additions and 465 deletions
-28
View File
@@ -18,7 +18,6 @@
#include "CefSharpBrowserWrapper.h"
#include "CefDownloadItemCallbackWrapper.h"
#include "CefBeforeDownloadCallbackWrapper.h"
#include "CefGeolocationCallbackWrapper.h"
#include "CefFileDialogCallbackWrapper.h"
#include "CefAuthCallbackWrapper.h"
#include "CefJSDialogCallbackWrapper.h"
@@ -1050,33 +1049,6 @@ namespace CefSharp
}
}
bool ClientAdapter::OnRequestGeolocationPermission(CefRefPtr<CefBrowser> browser, const CefString& requesting_url, int request_id, CefRefPtr<CefGeolocationCallback> callback)
{
auto handler = _browserControl->GeolocationHandler;
if (handler == nullptr)
{
// Default deny, as CEF does.
return false;
}
auto browserWrapper = GetBrowserWrapper(browser->GetIdentifier(), browser->IsPopup());
auto callbackWrapper = gcnew CefGeolocationCallbackWrapper(callback);
return handler->OnRequestGeolocationPermission(_browserControl, browserWrapper, StringUtils::ToClr(requesting_url), request_id, callbackWrapper);
}
void ClientAdapter::OnCancelGeolocationPermission(CefRefPtr<CefBrowser> browser, int request_id)
{
auto handler = _browserControl->GeolocationHandler;
if (handler != nullptr)
{
auto browserWrapper = GetBrowserWrapper(browser->GetIdentifier(), browser->IsPopup());
handler->OnCancelGeolocationPermission(_browserControl, browserWrapper, request_id);
}
}
void ClientAdapter::OnBeforeDownload(CefRefPtr<CefBrowser> browser, CefRefPtr<CefDownloadItem> download_item,
const CefString& suggested_name, CefRefPtr<CefBeforeDownloadCallback> callback)
{