mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-03 23:12:42 +00:00
0e242a8706
Remove CefBrowserSettings.universal_access_from_file_urls and CefBrowserSettings.file_access_from_file_urls. https://bitbucket.org/chromiumembedded/cef/commits/ff33d7f72144 Remove CefBrowserSettings.application_cache https://bitbucket.org/chromiumembedded/cef/commits/370a7749e950ef6784c29a666d07a0b67148dd5f Remove ignore_certificate_errors setting https://bitbucket.org/chromiumembedded/cef/commits/aabe4ce466766f8bd9907e7fa30546a3afada214 RequestContextSettings.IgnoreCertificateErrors was removed, the CefSettings.IgnoreCertificateErrors property now set the command line arg Use CefRect for CefWindowInfo bounds https://bitbucket.org/chromiumembedded/cef/commits/8587cc4e4bbc187aa989152e521318818b3f41d3 Additional overload has been added to pass in a Rect directly to SetAsChild Rename SendFocusEvent to SetFocus https://bitbucket.org/chromiumembedded/cef/commits/49a4611e28d7bbc221cff816d7c4a96c55ba2721 SendFocusEvent will now call SetFocus internally, the project internally has been updated to use SetFocus for WPF Replace CefRequestCallback with CefCallback https://bitbucket.org/chromiumembedded/cef/commits/3e7f1bb529442a6c7674262d9219df57964e9524 No changes to the API for this, I've kept the same interface and just mapped internally Resolves #3857, #3667, #3668
79 lines
1.9 KiB
C++
79 lines
1.9 KiB
C++
// Copyright © 2015 The CefSharp Authors. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
#pragma once
|
|
|
|
#include "Stdafx.h"
|
|
#include "CefWrapper.h"
|
|
|
|
namespace CefSharp
|
|
{
|
|
namespace Internals
|
|
{
|
|
private ref class CefRequestCallbackWrapper : public IRequestCallback, public CefWrapper
|
|
{
|
|
private:
|
|
MCefRefPtr<CefCallback> _callback;
|
|
IFrame^ _frame;
|
|
IRequest^ _request;
|
|
|
|
internal:
|
|
CefRequestCallbackWrapper(CefRefPtr<CefCallback> &callback)
|
|
: _callback(callback), _frame(nullptr), _request(nullptr)
|
|
{
|
|
}
|
|
|
|
CefRequestCallbackWrapper(
|
|
CefRefPtr<CefCallback> &callback,
|
|
IFrame^ frame,
|
|
IRequest^ request)
|
|
: _callback(callback), _frame(frame), _request(request)
|
|
{
|
|
}
|
|
|
|
!CefRequestCallbackWrapper()
|
|
{
|
|
_callback = nullptr;
|
|
}
|
|
|
|
~CefRequestCallbackWrapper()
|
|
{
|
|
this->!CefRequestCallbackWrapper();
|
|
delete _request;
|
|
_request = nullptr;
|
|
delete _frame;
|
|
_frame = nullptr;
|
|
|
|
_disposed = true;
|
|
}
|
|
|
|
public:
|
|
virtual void Continue(bool allow)
|
|
{
|
|
ThrowIfDisposed();
|
|
|
|
if (allow)
|
|
{
|
|
_callback->Continue();
|
|
}
|
|
else
|
|
{
|
|
_callback->Cancel();
|
|
}
|
|
|
|
delete this;
|
|
}
|
|
|
|
virtual void Cancel()
|
|
{
|
|
ThrowIfDisposed();
|
|
|
|
_callback->Cancel();
|
|
|
|
delete this;
|
|
}
|
|
};
|
|
}
|
|
}
|