added a flag indicating if the root object has already been bound

This commit is contained in:
illfang
2015-10-28 20:32:12 +09:00
committed by amaitland
parent cc6eaa65d6
commit d797a43fa6
2 changed files with 19 additions and 0 deletions
@@ -27,6 +27,7 @@ namespace CefSharp
initonly List<JavascriptObjectWrapper^>^ _wrappedObjects;
initonly List<JavascriptAsyncObjectWrapper^>^ _wrappedAsyncObjects;
initonly Dictionary<int64, JavascriptAsyncMethodCallback^>^ _methodCallbacks;
bool _isBound;
int64 _lastCallback;
IBrowserProcess^ _browserProcess;
// The entire set of possible JavaScript functions to
@@ -41,6 +42,11 @@ namespace CefSharp
CefSharp::Internals::JavascriptCallbackRegistry^ get();
}
property bool IsBound
{
bool get();
}
public:
JavascriptRootObjectWrapper(int browserId, IBrowserProcess^ browserProcess)
{
@@ -49,6 +55,7 @@ namespace CefSharp
_wrappedAsyncObjects = gcnew List<JavascriptAsyncObjectWrapper^>();
_callbackRegistry = gcnew JavascriptCallbackRegistry(browserId);
_methodCallbacks = gcnew Dictionary<int64, JavascriptAsyncMethodCallback^>();
_isBound = false;
}
~JavascriptRootObjectWrapper()