⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 webkitwebview.cpp

📁 linux下开源浏览器WebKit的源码,市面上的很多商用浏览器都是移植自WebKit
💻 CPP
📖 第 1 页 / 共 5 页
字号:
     * @web_view: the object on which the signal is emitted     * @frame: the #WebKitWebFrame that required the navigation     * @request: a #WebKitNetworkRequest     * @navigation_action: a #WebKitWebNavigation     * @policy_decision: a #WebKitWebPolicyDecision     * @return: TRUE if the signal will be handled, FALSE to have the     *          default behavior apply     *     * Emitted when @frame requests a navigation to another page.     * If this signal is not handled, the default behavior is to allow the     * navigation.     *     * Since: 1.0.3     */    webkit_web_view_signals[NAVIGATION_POLICY_DECISION_REQUESTED] = g_signal_new("navigation-policy-decision-requested",            G_TYPE_FROM_CLASS(webViewClass),            (GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),            0,            g_signal_accumulator_true_handled,            NULL,            webkit_marshal_BOOLEAN__OBJECT_OBJECT_OBJECT_OBJECT,            G_TYPE_BOOLEAN, 4,            WEBKIT_TYPE_WEB_FRAME,            WEBKIT_TYPE_NETWORK_REQUEST,            WEBKIT_TYPE_WEB_NAVIGATION_ACTION,            WEBKIT_TYPE_WEB_POLICY_DECISION);    /**     * WebKitWebView::mime-type-policy-decision-requested:     * @web_view: the object on which the signal is emitted     * @frame: the #WebKitWebFrame that required the policy decision     * @request: a WebKitNetworkRequest     * @mimetype: the MIME type attempted to load     * @policy_decision: a #WebKitWebPolicyDecision     * @return: TRUE if the signal will be handled, FALSE to have the     *          default behavior apply     *     * Decide whether or not to display the given MIME type.  If this     * signal is not handled, the default behavior is to show the     * content of the requested URI if WebKit can show this MIME     * type; if WebKit is not able to show the MIME type nothing     * happens.     *     * Since: 1.0.3     */    webkit_web_view_signals[MIME_TYPE_POLICY_DECISION_REQUESTED] = g_signal_new("mime-type-policy-decision-requested",            G_TYPE_FROM_CLASS(webViewClass),            (GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),            0,            g_signal_accumulator_true_handled,            NULL,            webkit_marshal_BOOLEAN__OBJECT_OBJECT_STRING_OBJECT,            G_TYPE_BOOLEAN, 4,            WEBKIT_TYPE_WEB_FRAME,            WEBKIT_TYPE_NETWORK_REQUEST,            G_TYPE_STRING,            WEBKIT_TYPE_WEB_POLICY_DECISION);    /**     * WebKitWebView::window-object-cleared:     * @web_view: the object on which the signal is emitted     * @frame: the #WebKitWebFrame to which @window_object belongs     * @context: the #JSGlobalContextRef holding the global object and other     * execution state; equivalent to the return value of     * webkit_web_frame_get_global_context(@frame)     *     * @window_object: the #JSObjectRef representing the frame's JavaScript     * window object     *     * Emitted when the JavaScript window object in a #WebKitWebFrame has been     * cleared in preparation for a new load. This is the preferred place to     * set custom properties on the window object using the JavaScriptCore API.     */    webkit_web_view_signals[WINDOW_OBJECT_CLEARED] = g_signal_new("window-object-cleared",            G_TYPE_FROM_CLASS(webViewClass),            (GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),            G_STRUCT_OFFSET (WebKitWebViewClass, window_object_cleared),            NULL,            NULL,            webkit_marshal_VOID__OBJECT_POINTER_POINTER,            G_TYPE_NONE, 3,            WEBKIT_TYPE_WEB_FRAME,            G_TYPE_POINTER,            G_TYPE_POINTER);    /**     * WebKitWebView::download-requested:     * @web_view: the object on which the signal is emitted     * @download: the message text     * @return: TRUE if the download was handled.     *     * A new Download is being requested. By default, if the signal is     * not handled, the download is cancelled.     *     * Since: 1.1.2     */    webkit_web_view_signals[DOWNLOAD_REQUESTED] = g_signal_new("download-requested",            G_TYPE_FROM_CLASS(webViewClass),            (GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),            0,            g_signal_accumulator_true_handled,            NULL,            webkit_marshal_BOOLEAN__OBJECT,            G_TYPE_BOOLEAN, 1,            G_TYPE_OBJECT);    /**     * WebKitWebView::load-started:     * @web_view: the object on which the signal is emitted     * @frame: the frame going to do the load     *     * When a #WebKitWebFrame begins to load this signal is emitted.     */    webkit_web_view_signals[LOAD_STARTED] = g_signal_new("load-started",            G_TYPE_FROM_CLASS(webViewClass),            (GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),            0,            NULL,            NULL,            g_cclosure_marshal_VOID__OBJECT,            G_TYPE_NONE, 1,            WEBKIT_TYPE_WEB_FRAME);    /**     * WebKitWebView::load-committed:     * @web_view: the object on which the signal is emitted     * @frame: the main frame that received the first data     *     * When a #WebKitWebFrame loaded the first data this signal is emitted.     */    webkit_web_view_signals[LOAD_COMMITTED] = g_signal_new("load-committed",            G_TYPE_FROM_CLASS(webViewClass),            (GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),            0,            NULL,            NULL,            g_cclosure_marshal_VOID__OBJECT,            G_TYPE_NONE, 1,            WEBKIT_TYPE_WEB_FRAME);    /**     * WebKitWebView::load-progress-changed:     * @web_view: the #WebKitWebView     * @progress: the global progress     */    webkit_web_view_signals[LOAD_PROGRESS_CHANGED] = g_signal_new("load-progress-changed",            G_TYPE_FROM_CLASS(webViewClass),            (GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),            0,            NULL,            NULL,            g_cclosure_marshal_VOID__INT,            G_TYPE_NONE, 1,            G_TYPE_INT);    webkit_web_view_signals[LOAD_FINISHED] = g_signal_new("load-finished",            G_TYPE_FROM_CLASS(webViewClass),            (GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),            0,            NULL,            NULL,            g_cclosure_marshal_VOID__OBJECT,            G_TYPE_NONE, 1,            WEBKIT_TYPE_WEB_FRAME);    /**     * WebKitWebView::title-changed:     * @web_view: the object on which the signal is emitted     * @frame: the main frame     * @title: the new title     *     * When a #WebKitWebFrame changes the document title this signal is emitted.     */    webkit_web_view_signals[TITLE_CHANGED] = g_signal_new("title-changed",            G_TYPE_FROM_CLASS(webViewClass),            (GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),            0,            NULL,            NULL,            webkit_marshal_VOID__OBJECT_STRING,            G_TYPE_NONE, 2,            WEBKIT_TYPE_WEB_FRAME,            G_TYPE_STRING);    /**     * WebKitWebView::hovering-over-link:     * @web_view: the object on which the signal is emitted     * @title: the link's title     * @uri: the URI the link points to     *     * When the cursor is over a link, this signal is emitted.     */    webkit_web_view_signals[HOVERING_OVER_LINK] = g_signal_new("hovering-over-link",            G_TYPE_FROM_CLASS(webViewClass),            (GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),            0,            NULL,            NULL,            webkit_marshal_VOID__STRING_STRING,            G_TYPE_NONE, 2,            G_TYPE_STRING,            G_TYPE_STRING);    /**     * WebKitWebView::populate-popup:     * @web_view: the object on which the signal is emitted     * @menu: the context menu     *     * When a context menu is about to be displayed this signal is emitted.     *     * Add menu items to #menu to extend the context menu.     */    webkit_web_view_signals[POPULATE_POPUP] = g_signal_new("populate-popup",            G_TYPE_FROM_CLASS(webViewClass),            (GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),            0,            NULL,            NULL,            g_cclosure_marshal_VOID__OBJECT,            G_TYPE_NONE, 1,            GTK_TYPE_MENU);    webkit_web_view_signals[STATUS_BAR_TEXT_CHANGED] = g_signal_new("status-bar-text-changed",            G_TYPE_FROM_CLASS(webViewClass),            (GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),            0,            NULL,            NULL,            g_cclosure_marshal_VOID__STRING,            G_TYPE_NONE, 1,            G_TYPE_STRING);    webkit_web_view_signals[ICOND_LOADED] = g_signal_new("icon-loaded",            G_TYPE_FROM_CLASS(webViewClass),            (GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),            0,            NULL,            NULL,            g_cclosure_marshal_VOID__VOID,            G_TYPE_NONE, 0);    webkit_web_view_signals[SELECTION_CHANGED] = g_signal_new("selection-changed",            G_TYPE_FROM_CLASS(webViewClass),            (GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),            0,            NULL,            NULL,            g_cclosure_marshal_VOID__VOID,            G_TYPE_NONE, 0);    /**     * WebKitWebView::console-message:     * @web_view: the object on which the signal is emitted     * @message: the message text     * @line: the line where the error occured     * @source_id: the source id     * @return: TRUE to stop other handlers from being invoked for the event. FALSE to propagate the event further.     *     * A JavaScript console message was created.     */    webkit_web_view_signals[CONSOLE_MESSAGE] = g_signal_new("console-message",            G_TYPE_FROM_CLASS(webViewClass),            (GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),            G_STRUCT_OFFSET(WebKitWebViewClass, console_message),            g_signal_accumulator_true_handled,            NULL,            webkit_marshal_BOOLEAN__STRING_INT_STRING,            G_TYPE_BOOLEAN, 3,            G_TYPE_STRING, G_TYPE_INT, G_TYPE_STRING);    /**     * WebKitWebView::script-alert:     * @web_view: the object on which the signal is emitted     * @frame: the relevant frame     * @message: the message text     * @return: TRUE to stop other handlers from being invoked for the event. FALSE to propagate the event further.     *     * A JavaScript alert dialog was created.     */    webkit_web_view_signals[SCRIPT_ALERT] = g_signal_new("script-alert",            G_TYPE_FROM_CLASS(webViewClass),            (GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),            G_STRUCT_OFFSET(WebKitWebViewClass, script_alert),            g_signal_accumulator_true_handled,            NULL,            webkit_marshal_BOOLEAN__OBJECT_STRING,            G_TYPE_BOOLEAN, 2,            WEBKIT_TYPE_WEB_FRAME, G_TYPE_STRING);    /**     * WebKitWebView::script-confirm:     * @web_view: the object on which the signal is emitted     * @frame: the relevant frame     * @message: the message text     * @confirmed: whether the dialog has been confirmed     * @return: TRUE to stop other handlers from being invoked for the event. FALSE to propagate the event further.     *     * A JavaScript confirm dialog was created, providing Yes and No buttons.     */    webkit_web_view_signals[SCRIPT_CONFIRM] = g_signal_new("script-confirm",            G_TYPE_FROM_CLASS(webViewClass),            (GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),            G_STRUCT_OFFSET(WebKitWebViewClass, script_confirm),            g_signal_accumulator_true_handled,            NULL,            webkit_marshal_BOOLEAN__OBJECT_STRING_BOOLEAN,            G_TYPE_BOOLEAN, 3,            WEBKIT_TYPE_WEB_FRAME, G_TYPE_STRING, G_TYPE_BOOLEAN);    /**     * WebKitWebView::script-prompt:     * @web_view: the object on which the signal is emitted     * @frame: the relevant frame     * @message: the message text     * @default: the default value     * @text: To be filled with the return value or NULL if the dialog was cancelled.     * @return: TRUE to stop other handlers from being invoked for the event. FALSE to propagate the event further.     *     * A JavaScript prompt dialog was created, providing an entry to input text.     */    webkit_web_view_signals[SCRIPT_PROMPT] = g_signal_new("script-prompt",            G_TYPE_FROM_CLASS(webViewClass),            (GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),            G_STRUCT_OFFSET(WebKitWebViewClass, script_prompt),            g_signal_accumulator_true_handled,            NULL,            webkit_marshal_BOOLEAN__OBJECT_STRING_STRING_STRING,            G_TYPE_BOOLEAN, 4,            WEBKIT_TYPE_WEB_FRAME, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_POINTER);    /**     * WebKitWebView::select-all:     * @web_view: the object which received the signal     *     * The #WebKitWebView::select-all signal is a keybinding signal which gets emitted to     * select the complete contents of the text view.     *     * The default bindings for this signal is Ctrl-a.     */    webkit_web_view_signals[SELECT_ALL] = g_signal_new("select-all",            G_TYPE_FROM_CLASS(webViewClass),            (GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),            G_STRUCT_OFFSET(WebKitWebViewClass, select_all),            NULL, NULL,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -