Exemplo n.º 1
0
        public void CreateBrowser(CefWindowInfo windowInfo)
        {
            if (BrowserClient == null)
            {
                BrowserClient = new BrowserClient(Owner);
            }

            CefBrowserHost.CreateBrowser(windowInfo, BrowserClient, _settings, _startUrl);
        }
Exemplo n.º 2
0
        public BrowserCore(Control owner, string startUrl = null, CfxBrowserSettings browserSettings = null)
        {
            Owner       = owner;
            OwnerHandle = owner.Handle;

            this.startUrl = startUrl;

            if (browserSettings == null)
            {
                browserSettings = new CfxBrowserSettings();
            }

            this.browserSettings = browserSettings;

            Client = new BrowserClient(this);


            GlobalObject = new JSObject();
            GlobalObject.SetBrowser(null, this);
        }