internal protected virtual void OnBrowserAfterCreated(CefBrowser browser) { m_browser = browser; m_browserWindowHandle = m_browser.GetHost().GetWindowHandle(); BrowserCreated?.Invoke(this, EventArgs.Empty); }
internal void HandleAfterCreated(CefBrowser browser) { this.browser = browser; this.browserHost = browser.GetHost(); needInvalidate = true; browserHost.SetZoomLevel(Zoom); BrowserCreated?.Invoke(this); if (string.IsNullOrEmpty(StartURL) && string.IsNullOrEmpty(StartFile) && !string.IsNullOrEmpty(StartString)) { LoadString(StartString); } }
internal void OnBrowserCreated(CfxBrowser browser) { Browser = browser; BrowserHost = browser.Host; BrowserWindowHandle = browser.Host.WindowHandle; AddBrowserCore(this); ResizeBrowserWindow(); BrowserCreated?.Invoke(this, new BrowserCreatedEventArgs(browser)); ThreadPool.QueueUserWorkItem(AfterSetBrowserTasks); IsBrowserCreated = true; }