public void CreateBrowser(CefWindowInfo windowInfo) { if (BrowserClient == null) { BrowserClient = new BrowserClient(Owner); } CefBrowserHost.CreateBrowser(windowInfo, BrowserClient, _settings, _startUrl); }
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); }