public BrowserWrapper(string address = "", BrowserSettings browserSettings = null, RequestContext requestContext = null, bool automaticallyCreateBrowser = true, OverlayForm form = null) : base(address, browserSettings, requestContext, automaticallyCreateBrowser) { this.form = form; this.MenuHandler = new ContextMenuHandler(); }
public Renderer(string overlayVersion, string overlayName, OverlayForm form, object api) { this.overlayVersion = overlayVersion; this.overlayName = overlayName; this._form = form; this._api = api; InitBrowser(); }
public Renderer(string overlayVersion, string overlayName, OverlayForm form, object api) { this.overlayVersion = overlayVersion; this.overlayName = overlayName; this._browser = new BrowserWrapper("about:blank", automaticallyCreateBrowser: false, form: form); _browser.FrameLoadStart += Browser_FrameLoadStart; _browser.FrameLoadEnd += Browser_FrameLoadEnd; _browser.LoadError += Browser_LoadError; _browser.ConsoleMessage += Browser_ConsoleMessage; if (api != null) { _browser.JavascriptObjectRepository.Register("OverlayPluginApi", api, isAsync: true); _browser.JavascriptObjectRepository.ObjectBoundInJavascript += JavascriptObjectRepository_ObjectBoundInJavascript; } }
public DragHandler(OverlayForm form) { this.form = form; }