627 * WebKitWebView::mime-type-policy-decision-requested:
628 * @web_view: the object on which the signal is emitted
629 * @web_frame: the frame on which the action
630 * @mimetype: the MIME type attempted to load
631 * @return: WEBKIT_POLICY_RESPONSE_ACCEPT to allow WebKit to display this MIME type,
632 WEBKIT_POLICY_RESPONSE_IGNORE to make WebKit ignore this resource,
633 WEBKIT_POLICY_RESPONSE_DOWNLOAD to make WebKit download this resource.
634 *
635 * Decide wether to display of not the given MIME type.
636 * If this signal is not handled, the default behavior is as follows. If WebKit can
637 * show this MIME type, the WEBKIT_POLICY_RESPONSE_ACCEPT will be used, else
638 * WEBKIT_POLICY_RESPONSE_IGNORE will be used.
639 */
640 webkit_web_view_signals[MIME_TYPE_POLICY_DECISION_REQUESTED] = g_signal_new("mime-type-policy-decision-requested",
641 G_TYPE_FROM_CLASS(webViewClass),
642 (GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),
643 0,
644 NULL,
645 NULL,
646 webkit_marshal_INT__OBJECT_OBJECT_STRING,
647 G_TYPE_INT, 3,
648 G_TYPE_OBJECT,
649 G_TYPE_OBJECT,
650 G_TYPE_STRING);
651
652 /**
653 * WebKitWebView::new-window-requested:
654 * @web_view: the object on which the signal is emitted
655 * @web_frame: the frame on which the action
656 * @return: WEBKIT_POLICY_RESPONSE_ACCEPT to allow WebKit to display a new window,
657 WEBKIT_POLICY_RESPONSE_IGNORE not to display a new window
658 *
659 * Decides whether to allow a targeted navigation event, such as opening a link in a new window.
660 * The default behavior is to accept.
661 */
662 webkit_web_view_signals[NEW_WINDOW_REQUESTED] = g_signal_new("new-window-requested",
663 G_TYPE_FROM_CLASS(webViewClass),
664 (GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),
665 G_STRUCT_OFFSET(WebKitWebViewClass, new_window_requested),
666 NULL,
667 NULL,
668 webkit_marshal_INT__OBJECT_OBJECT,
669 G_TYPE_INT, 2,
670 G_TYPE_OBJECT,
671 G_TYPE_OBJECT);
672
673 /**