AutomationSession.connectCreateWebView
gulong connectCreateWebView(T)(string detail = null, T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T : webkit.web_view.WebView)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : webkit.automation_session.AutomationSession)))
&& Parameters!T.length < 2)Connect to CreateWebView signal.
This signal is emitted when the automation client requests a new browsing context to interact with it. The callback handler should return a #WebKitWebView created with #WebKitWebView:is-controlled-by-automation construct property enabled and #WebKitWebView:automation-presentation-type construct property set if needed.
If the signal is emitted with "tab" detail, the returned #WebKitWebView should be a new web view added to a new tab of the current browsing context window. If the signal is emitted with "window" detail, the returned #WebKitWebView should be a new web view added to a new window. When creating a new web view and there's an active browsing context, the new window or tab shouldn't be focused.
Parameters
detail | Signal detail or null (default) |
callback | signal callback delegate or function to connect webkit.web_view.WebView callback(webkit.automation_session.AutomationSession automationSession) automationSession the instance the signal is connected to (optional) Returns a #WebKitWebView widget. |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID