Beispiel #1
0
        internal LVCefClient(LVCefControl lvCefControl)
        {
            Debug.WriteLine(DBGPREFIX + "Created");
            if (lvCefControl == null)
                throw new CefRuntimeException(DBGPREFIX + "Instance of a LVCefControl required to create an LVCefClient");
            _lvCefControl = lvCefControl;
            _messageRouter = new CefMessageRouterBrowserSide(new CefMessageRouterConfig());

            LifeSpanHandler = new LVCefLifeSpanHandler(_lvCefControl, _messageRouter);
            RequestHandler = new LVCefRequestHandler(_lvCefControl, _messageRouter);
            MessageRouterHandler = new LVCefMessageRouterHandler(_lvCefControl, _messageRouter);
            RegisterMessageRouter();
        }
 internal LVCefMessageRouterHandler(LVCefControl lvCefControl, CefMessageRouterBrowserSide messageRouter)
 {
     Debug.WriteLine(DBGPREFIX + "Created");
     _lvCefControl = lvCefControl;
     _messageRouter = messageRouter;
 }
Beispiel #3
0
 internal LVCefRequestHandler(LVCefControl lvCefControl, CefMessageRouterBrowserSide messageRouter)
 {
     Debug.WriteLine(DBGPREFIX + "Constructor");
     _lvCefControl = lvCefControl;
     _messageRouter = messageRouter;
 }