public LifeSpanHandler(CreatePopupChromiumHostControl chromiumHostControlCreatedDelegate) { this.chromiumHostControlCreatedDelegate = chromiumHostControlCreatedDelegate; }
public LifeSpanHandlerBuilder(CreatePopupChromiumHostControl chromiumHostControlCreatedDelegate) { handler = new LifeSpanHandler(chromiumHostControlCreatedDelegate); }
/// <summary> /// Create a new instance of the <see cref="LifeSpanHandlerBuilder"/> /// which can be used to create a WinForms specific <see cref="ILifeSpanHandler"/> /// implementation that simplifies the process of hosting a Popup as a Control/Tab. /// In scnarios where you also need to implement <see cref="ILoadHandler"/> then instead /// of implementing directly you will need to inherit from <see cref="CefSharp.WinForms.Handler.LoadHandler"/>. /// As it provides base functionality required to make <see cref="ChromiumHostControl"/> events work correctly. /// </summary> /// <returns> /// A <see cref="LifeSpanHandlerBuilder"/> which can be used to fluently create an <see cref="ILifeSpanHandler"/>. /// Call <see cref="LifeSpanHandlerBuilder.Build"/> to create the actual instance after you have call /// <see cref="LifeSpanHandlerBuilder.OnPopupCreated(OnPopupCreatedDelegate)"/> etc. /// </returns> public static LifeSpanHandlerBuilder Create(CreatePopupChromiumHostControl chromiumHostControlCreatedDelegate = null) { return(new LifeSpanHandlerBuilder(chromiumHostControlCreatedDelegate)); }