@girs/sdk-gnome-49 5.2.0 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -109,7 +109,7 @@ export namespace WebKitWebProcessExtension {
109
109
 
110
110
  /**
111
111
  * Enum values used to denote the stock actions for
112
- * {@link WebKitWebProcessExtension.ContextMenuItem}<!-- -->s
112
+ * {@link WebKitWebProcessExtension.ContextMenuItem} objects
113
113
  * @gir-type Enum
114
114
  */
115
115
  enum ContextMenuAction {
@@ -170,7 +170,7 @@ export namespace WebKitWebProcessExtension {
170
170
  */
171
171
  RELOAD = 13,
172
172
  /**
173
- * Copy current selection the clipboard.
173
+ * Copy current selection to the clipboard.
174
174
  */
175
175
  COPY = 14,
176
176
  /**
@@ -250,11 +250,11 @@ export namespace WebKitWebProcessExtension {
250
250
  */
251
251
  OPEN_AUDIO_IN_NEW_WINDOW = 33,
252
252
  /**
253
- * Copy video link location in to the clipboard.
253
+ * Copy video link location to the clipboard.
254
254
  */
255
255
  COPY_VIDEO_LINK_TO_CLIPBOARD = 34,
256
256
  /**
257
- * Copy audio link location in to the clipboard.
257
+ * Copy audio link location to the clipboard.
258
258
  */
259
259
  COPY_AUDIO_LINK_TO_CLIPBOARD = 35,
260
260
  /**
@@ -745,7 +745,7 @@ export namespace WebKitWebProcessExtension {
745
745
  get_uri(): string;
746
746
 
747
747
  /**
748
- * Gets whether `frame` is the main frame of a {@link WebKitWebProcessExtension.WebPage}
748
+ * Gets whether `frame` is the main frame of a {@link WebKitWebProcessExtension.WebPage}.
749
749
  * @returns `true` if `frame` is a main frame or `false` otherwise
750
750
  * @since 2.2
751
751
  */
@@ -1060,7 +1060,7 @@ export namespace WebKitWebProcessExtension {
1060
1060
  * Get the default {@link WebKitWebProcessExtension.ScriptWorld}. This is the normal script world
1061
1061
  * where all scripts are executed by default.
1062
1062
  * You can get the JavaScript execution context of a {@link WebKitWebProcessExtension.ScriptWorld}
1063
- * for a given {@link WebKitWebProcessExtension.Frame} with `webkit_frame_get_javascript_context_for_script_world()`.
1063
+ * for a given {@link WebKitWebProcessExtension.Frame} with `webkit_frame_get_js_context_for_script_world()`.
1064
1064
  * @since 2.2
1065
1065
  */
1066
1066
  static get_default(): ScriptWorld;
@@ -1506,7 +1506,7 @@ export namespace WebKitWebProcessExtension {
1506
1506
  * Access to editing capabilities of a {@link WebKitWebProcessExtension.WebPage}.
1507
1507
  *
1508
1508
  * The WebKitWebEditor provides access to various editing capabilities of
1509
- * a {@link WebKitWebProcessExtension.WebPage} such as a possibility to react to the current selection in
1509
+ * a {@link WebKitWebProcessExtension.WebPage} such as the possibility to react to the current selection in
1510
1510
  * {@link WebKitWebProcessExtension.WebPage}.
1511
1511
  * @gir-type Class
1512
1512
  * @since 2.10
@@ -1552,7 +1552,7 @@ export namespace WebKitWebProcessExtension {
1552
1552
  // Signal signatures
1553
1553
  interface SignalSignatures extends GObject.Object.SignalSignatures {
1554
1554
  /**
1555
- * Emitted after form elements (or form associated elements) are associated to `frame`.
1555
+ * Emitted after form elements (or form associated elements) are associated with `frame`.
1556
1556
  * This is useful to implement form auto filling for web pages where form fields are added
1557
1557
  * dynamically. This signal might be emitted multiple times for the same frame.
1558
1558
  *
@@ -1602,7 +1602,7 @@ export namespace WebKitWebProcessExtension {
1602
1602
  }
1603
1603
 
1604
1604
  /**
1605
- * Form manager of a {@link WebKitWebProcessExtension.WebPage} in a {@link WebKitWebProcessExtension.ScriptWorld}
1605
+ * Form manager of a {@link WebKitWebProcessExtension.WebPage} in a {@link WebKitWebProcessExtension.ScriptWorld}.
1606
1606
  * @gir-type Class
1607
1607
  * @since 2.40
1608
1608
  */
@@ -1759,7 +1759,7 @@ export namespace WebKitWebProcessExtension {
1759
1759
  context_is_selection(): boolean;
1760
1760
 
1761
1761
  /**
1762
- * Gets the the context flags for the hit test result.
1762
+ * Gets the context flags for the hit test result.
1763
1763
  * @returns a bitmask of {@link WebKitWebProcessExtension.HitTestResultContext} flags
1764
1764
  */
1765
1765
  get_context(): number;
@@ -1811,7 +1811,7 @@ export namespace WebKitWebProcessExtension {
1811
1811
  * Emitted when a message is sent to the console. This can be a message
1812
1812
  * produced by the use of JavaScript console API, a JavaScript exception,
1813
1813
  * a security error or other errors, warnings, debug or log messages.
1814
- * The `console_message` contains information of the message.
1814
+ * The `console_message` contains information about the message.
1815
1815
  * @signal
1816
1816
  * @since 2.12
1817
1817
  * @run-last
@@ -1835,7 +1835,7 @@ export namespace WebKitWebProcessExtension {
1835
1835
  * This signal is emitted when the DOM document of a {@link WebKitWebProcessExtension.WebPage} has been
1836
1836
  * loaded.
1837
1837
  *
1838
- * You can wait for this signal to get the DOM document
1838
+ * You can wait for this signal to get the DOM document.
1839
1839
  * @signal
1840
1840
  * @run-last
1841
1841
  */
@@ -1850,7 +1850,7 @@ export namespace WebKitWebProcessExtension {
1850
1850
  * emitted again with the `request` argument containing the new
1851
1851
  * request to be sent to the server due to the redirection and the
1852
1852
  * `redirected_response` parameter containing the response
1853
- * received by the server for the initial request.
1853
+ * received from the server for the initial request.
1854
1854
  *
1855
1855
  * Modifications to the {@link WebKitWebProcessExtension.URIRequest} and its associated
1856
1856
  * {@link Soup.MessageHeaders} will be taken into account when the request
@@ -1866,7 +1866,7 @@ export namespace WebKitWebProcessExtension {
1866
1866
  *
1867
1867
  * You can handle the user message asynchronously by calling `g_object_ref()` on
1868
1868
  * `message` and returning `true`. If the last reference of `message` is removed
1869
- * and the message has been replied, the operation in the `WebKitWebView` will
1869
+ * and the message has not been replied to, the operation in the `WebKitWebView` will
1870
1870
  * finish with error {@link WebKitWebProcessExtension.UserMessageError.USER_MESSAGE_UNHANDLED_MESSAGE}.
1871
1871
  * @signal
1872
1872
  * @since 2.28
@@ -1938,7 +1938,7 @@ export namespace WebKitWebProcessExtension {
1938
1938
  get_form_manager(world: ScriptWorld | null): WebFormManager;
1939
1939
 
1940
1940
  /**
1941
- * Get the identifier of the {@link WebKitWebProcessExtension.WebPage}
1941
+ * Get the identifier of the {@link WebKitWebProcessExtension.WebPage}.
1942
1942
  * @returns the identifier of `web_page`
1943
1943
  */
1944
1944
  get_id(): number;
@@ -1956,7 +1956,7 @@ export namespace WebKitWebProcessExtension {
1956
1956
  *
1957
1957
  * You can monitor the active URI by connecting to the notify::uri
1958
1958
  * signal of `web_page`.
1959
- * @returns the current active URI of `web_view` or `null` if nothing has been loaded yet.
1959
+ * @returns the current active URI of `web_page` or `null` if nothing has been loaded yet.
1960
1960
  */
1961
1961
  get_uri(): string;
1962
1962
 
@@ -2023,7 +2023,7 @@ export namespace WebKitWebProcessExtension {
2023
2023
  /**
2024
2024
  * This signal is emitted when a {@link WebKitWebProcessExtension.UserMessage} is received from the
2025
2025
  * `WebKitWebContext` corresponding to `extension`. Messages sent by `WebKitWebContext`
2026
- * are always broadcasted to all web extensions and they can't be
2026
+ * are always broadcast to all web extensions and they can't be
2027
2027
  * replied to. Calling `webkit_user_message_send_reply()` will do nothing.
2028
2028
  * @signal
2029
2029
  * @since 2.40
@@ -2040,7 +2040,7 @@ export namespace WebKitWebProcessExtension {
2040
2040
  * Represents an extension of the web process.
2041
2041
  *
2042
2042
  * WebKitWebProcessExtension is a loadable module for the web process. It allows you to execute code in the
2043
- * web process and being able to use the DOM API, to change any request or to inject custom
2043
+ * web process and to use the DOM API, to change any request or to inject custom
2044
2044
  * JavaScript code, for example.
2045
2045
  *
2046
2046
  * To create a WebKitWebProcessExtension you should write a module with an initialization function that could
@@ -2073,37 +2073,38 @@ export namespace WebKitWebProcessExtension {
2073
2073
  * a {@link WebKitWebProcessExtension.WebPage} is created.
2074
2074
  *
2075
2075
  * WebKit has to know where it can find the created WebKitWebProcessExtension. To do so you
2076
- * should use the `webkit_web_context_set_web_extensions_directory()` function. The signal
2077
- * `WebKitWebContext::initialize-web-extensions` is the recommended place to call it.
2076
+ * should use the `webkit_web_context_set_web_process_extensions_directory()` function. The signal
2077
+ * `WebKitWebContext::initialize-web-process-extensions` is the recommended place to call it.
2078
2078
  *
2079
2079
  * To provide the initialization data used by the `webkit_web_process_extension_initialize_with_user_data()`
2080
- * function, you have to call `webkit_web_context_set_web_extensions_initialization_user_data()` with
2080
+ * function, you have to call `webkit_web_context_set_web_process_extensions_initialization_user_data()` with
2081
2081
  * the desired data as parameter. You can see an example of this in the following piece of code:
2082
2082
  *
2083
2083
  * ```c
2084
- * #define WEB_EXTENSIONS_DIRECTORY // ...
2084
+ * #define WEB_PROCESS_EXTENSIONS_DIRECTORY // ...
2085
2085
  *
2086
2086
  * static void
2087
- * initialize_web_extensions (WebKitWebContext *context,
2088
- * gpointer user_data)
2087
+ * initialize_web_process_extensions (WebKitWebContext *context,
2088
+ * gpointer user_data)
2089
2089
  * {
2090
- * // Web Extensions get a different ID for each Web Process
2090
+ * // Web process extensions get a different ID for each web process
2091
2091
  * static guint32 unique_id = 0;
2092
2092
  *
2093
- * webkit_web_context_set_web_extensions_directory (
2094
- * context, WEB_EXTENSIONS_DIRECTORY);
2095
- * webkit_web_context_set_web_extensions_initialization_user_data (
2093
+ * webkit_web_context_set_web_process_extensions_directory (
2094
+ * context, WEB_PROCESS_EXTENSIONS_DIRECTORY);
2095
+ * webkit_web_context_set_web_process_extensions_initialization_user_data (
2096
2096
  * context, g_variant_new_uint32 (unique_id++));
2097
2097
  * }
2098
2098
  *
2099
2099
  * int main (int argc, char **argv)
2100
2100
  * {
2101
2101
  * g_signal_connect (webkit_web_context_get_default (),
2102
- * "initialize-web-extensions",
2103
- * G_CALLBACK (initialize_web_extensions),
2102
+ * "initialize-web-process-extensions",
2103
+ * G_CALLBACK (initialize_web_process_extensions),
2104
2104
  * NULL);
2105
2105
  *
2106
- * GtkWidget *view = webkit_web_view_new ();
2106
+ * // With the legacy libwpe backend, WPE also needs the "backend" property
2107
+ * WebKitWebView *view = g_object_new (WEBKIT_TYPE_WEB_VIEW, NULL);
2107
2108
  *
2108
2109
  * // ...
2109
2110
  * }
@@ -2150,7 +2151,7 @@ export namespace WebKitWebProcessExtension {
2150
2151
  /**
2151
2152
  * Send `message` to the `WebKitWebContext` corresponding to `extension`. If `message` is floating, it's consumed.
2152
2153
  *
2153
- * If you don't expect any reply, or you simply want to ignore it, you can pass `null` as `calback`.
2154
+ * If you don't expect any reply, or you simply want to ignore it, you can pass `null` as `callback`.
2154
2155
  * When the operation is finished, `callback` will be called. You can then call
2155
2156
  * `webkit_web_process_extension_send_message_to_context_finish()` to get the message reply.
2156
2157
  * @param message a {@link WebKitWebProcessExtension.UserMessage}
@@ -2162,7 +2163,7 @@ export namespace WebKitWebProcessExtension {
2162
2163
  /**
2163
2164
  * Send `message` to the `WebKitWebContext` corresponding to `extension`. If `message` is floating, it's consumed.
2164
2165
  *
2165
- * If you don't expect any reply, or you simply want to ignore it, you can pass `null` as `calback`.
2166
+ * If you don't expect any reply, or you simply want to ignore it, you can pass `null` as `callback`.
2166
2167
  * When the operation is finished, `callback` will be called. You can then call
2167
2168
  * `webkit_web_process_extension_send_message_to_context_finish()` to get the message reply.
2168
2169
  * @param message a {@link WebKitWebProcessExtension.UserMessage}
@@ -2175,7 +2176,7 @@ export namespace WebKitWebProcessExtension {
2175
2176
  /**
2176
2177
  * Send `message` to the `WebKitWebContext` corresponding to `extension`. If `message` is floating, it's consumed.
2177
2178
  *
2178
- * If you don't expect any reply, or you simply want to ignore it, you can pass `null` as `calback`.
2179
+ * If you don't expect any reply, or you simply want to ignore it, you can pass `null` as `callback`.
2179
2180
  * When the operation is finished, `callback` will be called. You can then call
2180
2181
  * `webkit_web_process_extension_send_message_to_context_finish()` to get the message reply.
2181
2182
  * @param message a {@link WebKitWebProcessExtension.UserMessage}
@@ -2211,41 +2212,41 @@ export namespace WebKitWebProcessExtension {
2211
2212
  copy(): ConsoleMessage;
2212
2213
 
2213
2214
  /**
2214
- * Free the {@link WebKitWebProcessExtension.ConsoleMessage}
2215
+ * Free the {@link WebKitWebProcessExtension.ConsoleMessage}.
2215
2216
  * @since 2.12
2216
2217
  */
2217
2218
  free(): void;
2218
2219
 
2219
2220
  /**
2220
- * Gets the log level of a {@link WebKitWebProcessExtension.ConsoleMessage}
2221
+ * Gets the log level of a {@link WebKitWebProcessExtension.ConsoleMessage}.
2221
2222
  * @returns a {@link WebKitWebProcessExtension.ConsoleMessageLevel} indicating the log level of `console_message`
2222
2223
  * @since 2.12
2223
2224
  */
2224
2225
  get_level(): ConsoleMessageLevel;
2225
2226
 
2226
2227
  /**
2227
- * Gets the line number of a {@link WebKitWebProcessExtension.ConsoleMessage}
2228
+ * Gets the line number of a {@link WebKitWebProcessExtension.ConsoleMessage}.
2228
2229
  * @returns the line number of `console_message`
2229
2230
  * @since 2.12
2230
2231
  */
2231
2232
  get_line(): number;
2232
2233
 
2233
2234
  /**
2234
- * Gets the source of a {@link WebKitWebProcessExtension.ConsoleMessage}
2235
+ * Gets the source of a {@link WebKitWebProcessExtension.ConsoleMessage}.
2235
2236
  * @returns a {@link WebKitWebProcessExtension.ConsoleMessageSource} indicating the source of `console_message`
2236
2237
  * @since 2.12
2237
2238
  */
2238
2239
  get_source(): ConsoleMessageSource;
2239
2240
 
2240
2241
  /**
2241
- * Gets the source identifier of a {@link WebKitWebProcessExtension.ConsoleMessage}
2242
+ * Gets the source identifier of a {@link WebKitWebProcessExtension.ConsoleMessage}.
2242
2243
  * @returns the source identifier of `console_message`
2243
2244
  * @since 2.12
2244
2245
  */
2245
2246
  get_source_id(): string;
2246
2247
 
2247
2248
  /**
2248
- * Gets the text message of a {@link WebKitWebProcessExtension.ConsoleMessage}
2249
+ * Gets the text message of a {@link WebKitWebProcessExtension.ConsoleMessage}.
2249
2250
  * @returns the text message of `console_message`
2250
2251
  * @since 2.12
2251
2252
  */