Ejemplo n.º 1
0
 /// <summary>
 /// Called on the browser process UI thread immediately after the request
 /// context has been initialized.
 /// </summary>
 protected internal unsafe virtual void OnRequestContextInitialized(CefRequestContext requestContext)
 {
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Returns true (1) if this object is pointing to the same context as |that|
 /// object.
 /// </summary>
 public unsafe virtual bool IsSame(CefRequestContext other)
 {
     return(SafeCall(NativeInstance->IsSame((other != null) ? other.GetNativeInstance() : null) != 0));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Returns the global context object.
 /// </summary>
 public static CefRequestContext GetGlobalContext()
 {
     return(CefRequestContext.Wrap(CefRequestContext.Create, CefNativeApi.cef_request_context_get_global_context()));
 }
Ejemplo n.º 4
0
        public WindowlessWebView(string url, CefBrowserSettings settings, CefDictionaryValue extraInfo, CefRequestContext requestContext)
        {
            CefWindowInfo windowInfo = null;

            try
            {
                windowInfo = new CefWindowInfo();
                InitializeInternal(windowInfo);
                if (!CefApi.CreateBrowser(windowInfo, ViewGlue.Client, url ?? "about:blank", settings ?? DefaultBrowserSettings, extraInfo, requestContext))
                {
                    throw new InvalidOperationException();
                }
            }
            finally
            {
                windowInfo?.Dispose();
            }
        }
Ejemplo n.º 5
0
 /// <summary>
 /// Called on the browser process UI thread immediately after the request
 /// context has been initialized.
 /// </summary>
 public unsafe virtual void OnRequestContextInitialized(CefRequestContext requestContext)
 {
 }