コード例 #1
0
        void lifeSpanHandler_OnAfterCreated(object sender, Chromium.Event.CfxOnAfterCreatedEventArgs e)
        {
            if (Browser != null)
            {
            }
            else
            {
                Browser = e.Browser;
                Browser.MainFrame.LoadUrl("about:version");
                //if (!string.IsNullOrEmpty(initialUrl))
                //{
                //    Browser.MainFrame.LoadUrl(initialUrl);
                //}

                OnBrowserCreated(e);
            }

            var br = e.Browser;

            // browser.MainFrame.LoadUrl("about:version");


            Invoke((MethodInvoker)(() =>
            {
                if (Focused)
                {
                    br.Host.SendFocusEvent(true);
                }
            }));
        }
コード例 #2
0
        void lifeSpanHandler_OnAfterCreated(object sender, Chromium.Event.CfxOnAfterCreatedEventArgs e)
        {
            browser = e.Browser;

            HTMLTextureNode.nodes[browser.Identifier] = this;

            Start();

            browser.Host.WasResized();

            invalidate = true;
        }