Exemplo n.º 1
0
        public WebViewGlue(IChromiumWebViewPrivate view)
        {
            this.WebView      = view;
            this.Client       = new CefClientGlue(this);
            this.LifeSpanGlue = new CefLifeSpanHandlerGlue(this);
            this.RenderGlue   = new CefRenderHandlerGlue(this);
            this.DisplayGlue  = new CefDisplayHandlerGlue(this);
            this.RequestGlue  = new CefRequestHandlerGlue(this);
            this.DialogGlue   = new CefDialogHandlerGlue(this);
            this.DownloadGlue = new CefDownloadHandlerGlue(this);
            this.FindGlue     = new CefFindHandlerGlue(this);

            this.ContextMenuGlue = new CefContextMenuHandlerGlue(this);
            this.LoadGlue        = new CefLoadHandlerGlue(this);

            _partialAvoidResourceRequestGlue = AvoidOverloadOnBeforeResourceLoad() && AvoidGetResourceHandler() &&
                                               AvoidOnResourceRedirect() && AvoidOnResourceResponse() && AvoidGetResourceResponseFilter() &&
                                               AvoidOnResourceLoadComplete() && AvoidOnProtocolExecution();

            _avoidJsDialogGlue = AvoidOnJSDialog() && AvoidOnBeforeUnloadDialog() && AvoidOnResetDialogState() &&
                                 AvoidOnDialogClosed();

            _avoidAudioGlue = AvoidGetAudioParameters() && AvoidOnAudioStreamStarted() && AvoidOnAudioStreamPacket() &&
                              AvoidOnAudioStreamStopped() && AvoidOnAudioStreamError();
        }
Exemplo n.º 2
0
        public WebViewGlue(IChromiumWebViewPrivate view)
        {
            this.Events          = new EventHandlerList();
            this.WebView         = view;
            this.Client          = new CefClientGlue(this);
            this.LifeSpanGlue    = new CefLifeSpanHandlerGlue(this);
            this.RenderGlue      = new CefRenderHandlerGlue(this);
            this.DisplayGlue     = new CefDisplayHandlerGlue(this);
            this.RequestGlue     = new CefRequestHandlerGlue(this);
            this.DownloadGlue    = new CefDownloadHandlerGlue(this);
            this.FindGlue        = new CefFindHandlerGlue(this);
            this.FrameGlue       = new CefFrameHandlerGlue(this);
            this.ContextMenuGlue = new CefContextMenuHandlerGlue(this);
            this.LoadGlue        = new CefLoadHandlerGlue(this);
            this.PrintGlue       = new CefPrintHandlerGlue(this);

            this.CookieAccessFilterGlue = new CefCookieAccessFilterGlue(this);
            this.ResourceRequestGlue    = new CefResourceRequestHandlerGlue(this);

            CreateOrDestroyAudioGlue();
            CreateOrDestroyJSDialogGlue();
            CreateOrDestroyKeyboardGlue();
            CreateOrDestroyDragGlue();
            CreateOrDestroyFocusGlue();
            CreateOrDestroyDownloadGlue();
            CreateOrDestroyDialogGlue();
        }
Exemplo n.º 3
0
 public WindowlessWebViewGlue(IChromiumWebViewPrivate view)
     : base(view)
 {
 }
Exemplo n.º 4
0
 public DevToolsProtocolClient(IChromiumWebViewPrivate webview)
 {
     _webview      = webview;
     _registration = ((IChromiumWebView)webview).BrowserObject.Host.AddDevToolsMessageObserver(this);
 }