internal void Associate(CefBrowser browser, CefFrame frame, CefV8Context context)
 {
     var webView = new CefV8_WebView(context,context.GetTaskRunner());
     var taskCompletionSource =  _TaskCompletionSources.GetOrDefault(frame.Identifier);  
     if (taskCompletionSource!=null)
     {
         _TaskCompletionSources.Remove(frame.Identifier);
         taskCompletionSource.TrySetResult(webView);
     }
     _Associated.Add(frame.Identifier, webView);  
 }
示例#2
0
 internal void Associate(CefBrowser browser, CefFrame frame, CefV8Context context)
 {
     _Associated.Add(frame.Identifier, new CefV8_WebView(context, context.GetTaskRunner()));
 }