Files
cefsharp/CefSharp.Core/Internals/JavascriptCallbackFactory.h
T
Alex Maitland b5a83f526e Enhancement - Pluggable Javascript Naming (#3141)
* Core - Move NameConverter to IJavascriptObjectRepository

- Move NameConverter property from BindingOptions to IJavascriptObjectRepository
- Remove BindingOptions.CamelCaseJavascriptNames

**Breaking Change**

Follow up to https://github.com/cefsharp/CefSharp/commit/898ca38e7a7261b3a42c33b2abf5eac6c022ddde

* Core - Javascript Binding Pluggable Naming Improvements

- Added some basic unit tests (more required)
- DefaultBinder now accepts a IJavascriptNameConverter passed into the constructor
  to allow for conversion of names

* Core - Replace WeakReference with WeakReference<T>
2020-07-27 20:13:16 +10:00

27 lines
775 B
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
namespace CefSharp
{
namespace Internals
{
private ref class JavascriptCallbackFactory : public IJavascriptCallbackFactory
{
private:
PendingTaskRepository<JavascriptResponse^>^ _pendingTasks;
public:
JavascriptCallbackFactory(PendingTaskRepository<JavascriptResponse^>^ pendingTasks)
:_pendingTasks(pendingTasks)
{
}
property WeakReference<IBrowserAdapter^>^ BrowserAdapter;
virtual IJavascriptCallback^ Create(JavascriptCallback^ callback);
};
}
}