internal protected virtual void OnBrowserAfterCreated(CefBrowser browser)
        {
            this.browser = browser;
            browserWindowHandle = browser.GetHost().GetWindowHandle();
            ResizeWindow(browserWindowHandle);

            if (BrowserCreated != null)
                BrowserCreated(this, EventArgs.Empty);

            if (browserUrl != null)
            {
                NavigateToUrl(browserUrl);
            }
        }
        // DoClose event
        public bool DoClose(CefBrowser browser)
        {
            Debug.Assert(browser != null);

            browser.GetHost().ParentWindowWillClose();

            Debug.Assert(Status == BrowserStatus.Created || Status == BrowserStatus.Closing);

            Status = BrowserStatus.Closing;

            return false;
        }
예제 #3
0
        internal void HandleAfterCreated( CefBrowser browser )
        {
            this.browser = browser;
            this.browserHost = browser.GetHost();

            var handler = Created;
            if( handler != null )
            {
                handler( this, EventArgs.Empty );
            }
        }