diff --git a/CefSharp.Core/Internals/CefWebPluginInfoWrapper.cpp b/CefSharp.Core/Internals/CefWebPluginInfoWrapper.cpp index ac4fbb168..d634a5765 100644 --- a/CefSharp.Core/Internals/CefWebPluginInfoWrapper.cpp +++ b/CefSharp.Core/Internals/CefWebPluginInfoWrapper.cpp @@ -9,7 +9,7 @@ namespace CefSharp { namespace Internals { - String^ CefWebPluginInfoWrapper::Description::get() + String^ CefWebPluginInfoWrapper::Description::get() { return StringUtils::ToClr(_wrappedInfo->GetDescription()); } @@ -28,5 +28,5 @@ namespace CefSharp { return StringUtils::ToClr(_wrappedInfo->GetVersion()); } -} + } } diff --git a/CefSharp.Core/Internals/CefWebPluginInfoWrapper.h b/CefSharp.Core/Internals/CefWebPluginInfoWrapper.h index 8d2f9ce73..6de3133ef 100644 --- a/CefSharp.Core/Internals/CefWebPluginInfoWrapper.h +++ b/CefSharp.Core/Internals/CefWebPluginInfoWrapper.h @@ -19,7 +19,7 @@ namespace CefSharp MCefRefPtr _wrappedInfo; internal: - CefWebPluginInfoWrapper(CefRefPtr cefInfo) : _wrappedInfo(cefInfo) {} + CefWebPluginInfoWrapper(CefRefPtr cefInfo) : _wrappedInfo(cefInfo) {} public: virtual property String^ Description { String^ get(); } diff --git a/CefSharp.Core/Internals/ClientAdapter.cpp b/CefSharp.Core/Internals/ClientAdapter.cpp index c1d0bb9f6..3c239c105 100644 --- a/CefSharp.Core/Internals/ClientAdapter.cpp +++ b/CefSharp.Core/Internals/ClientAdapter.cpp @@ -187,13 +187,13 @@ namespace CefSharp } */ - // CEF3 API: public virtual bool OnBeforePluginLoad( CefRefPtr< CefBrowser > browser, const CefString& url, const CefString& policy_url, CefRefPtr< CefWebPluginInfo > info ); - // --- - // return value: - // false: Load Plugin (do not block it) - // true: Ignore Plugin (Block it) - bool ClientAdapter::OnBeforePluginLoad( CefRefPtr< CefBrowser > browser, const CefString& url, const CefString& policy_url, CefRefPtr< CefWebPluginInfo > info ) - { + // CEF3 API: public virtual bool OnBeforePluginLoad( CefRefPtr< CefBrowser > browser, const CefString& url, const CefString& policy_url, CefRefPtr< CefWebPluginInfo > info ); + // --- + // return value: + // false: Load Plugin (do not block it) + // true: Ignore Plugin (Block it) + bool ClientAdapter::OnBeforePluginLoad( CefRefPtr< CefBrowser > browser, const CefString& url, const CefString& policy_url, CefRefPtr< CefWebPluginInfo > info ) + { IRequestHandler^ handler = _browserControl->RequestHandler; if (handler == nullptr) @@ -201,10 +201,10 @@ namespace CefSharp return false; } - CefWebPluginInfoWrapper^ wrapper = gcnew CefWebPluginInfoWrapper(info); + CefWebPluginInfoWrapper^ wrapper = gcnew CefWebPluginInfoWrapper(info); - return handler->OnBeforePluginLoad(_browserControl, StringUtils::ToClr(url), StringUtils::ToClr(policy_url), wrapper); - } + return handler->OnBeforePluginLoad(_browserControl, StringUtils::ToClr(url), StringUtils::ToClr(policy_url), wrapper); + } bool ClientAdapter::OnBeforeResourceLoad(CefRefPtr browser, CefRefPtr frame, CefRefPtr request) { diff --git a/CefSharp.Core/Internals/ClientAdapter.h b/CefSharp.Core/Internals/ClientAdapter.h index 394f3a990..86e86c896 100644 --- a/CefSharp.Core/Internals/ClientAdapter.h +++ b/CefSharp.Core/Internals/ClientAdapter.h @@ -71,7 +71,7 @@ namespace CefSharp virtual DECL bool OnBeforeResourceLoad(CefRefPtr browser, CefRefPtr frame, CefRefPtr request) OVERRIDE; virtual DECL bool GetAuthCredentials(CefRefPtr browser, CefRefPtr frame, bool isProxy, const CefString& host, int port, const CefString& realm, const CefString& scheme, CefRefPtr callback) OVERRIDE; - virtual bool OnBeforePluginLoad( CefRefPtr< CefBrowser > browser, const CefString& url, const CefString& policy_url, CefRefPtr< CefWebPluginInfo > info ); + virtual bool OnBeforePluginLoad( CefRefPtr< CefBrowser > browser, const CefString& url, const CefString& policy_url, CefRefPtr< CefWebPluginInfo > info ); // CefDisplayHandler virtual DECL void OnLoadingStateChange(CefRefPtr browser, bool isLoading, bool canGoBack, bool canGoForward) OVERRIDE;