@girs/sdk-gnome-49 5.2.0 → 5.4.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.
- package/javascriptcore-4.1/javascriptcore-4.1.d.ts +44 -44
- package/javascriptcore-6.0/javascriptcore-6.0.d.ts +44 -44
- package/package.json +7 -7
- package/webkit-6.0/webkit-6.0.d.ts +827 -369
- package/webkit2-4.1/webkit2-4.1.d.ts +473 -415
- package/webkit2webextension-4.1/webkit2webextension-4.1.d.ts +64 -61
- package/webkitwebprocessextension-6.0/webkitwebprocessextension-6.0.d.ts +41 -40
|
@@ -108,7 +108,7 @@ export namespace WebKit2WebExtension {
|
|
|
108
108
|
|
|
109
109
|
/**
|
|
110
110
|
* Enum values used to denote the stock actions for
|
|
111
|
-
* {@link WebKit2WebExtension.ContextMenuItem}
|
|
111
|
+
* {@link WebKit2WebExtension.ContextMenuItem} objects
|
|
112
112
|
* @gir-type Enum
|
|
113
113
|
*/
|
|
114
114
|
enum ContextMenuAction {
|
|
@@ -169,7 +169,7 @@ export namespace WebKit2WebExtension {
|
|
|
169
169
|
*/
|
|
170
170
|
RELOAD = 13,
|
|
171
171
|
/**
|
|
172
|
-
* Copy current selection the clipboard.
|
|
172
|
+
* Copy current selection to the clipboard.
|
|
173
173
|
*/
|
|
174
174
|
COPY = 14,
|
|
175
175
|
/**
|
|
@@ -249,11 +249,11 @@ export namespace WebKit2WebExtension {
|
|
|
249
249
|
*/
|
|
250
250
|
OPEN_AUDIO_IN_NEW_WINDOW = 33,
|
|
251
251
|
/**
|
|
252
|
-
* Copy video link location
|
|
252
|
+
* Copy video link location to the clipboard.
|
|
253
253
|
*/
|
|
254
254
|
COPY_VIDEO_LINK_TO_CLIPBOARD = 34,
|
|
255
255
|
/**
|
|
256
|
-
* Copy audio link location
|
|
256
|
+
* Copy audio link location to the clipboard.
|
|
257
257
|
*/
|
|
258
258
|
COPY_AUDIO_LINK_TO_CLIPBOARD = 35,
|
|
259
259
|
/**
|
|
@@ -651,7 +651,7 @@ export namespace WebKit2WebExtension {
|
|
|
651
651
|
const DOM_NODE_ENTITY_REFERENCE_NODE: number;
|
|
652
652
|
|
|
653
653
|
/**
|
|
654
|
-
* Accept the node. Use this macro as return value of `webkit_dom_node_filter_accept_node()`
|
|
654
|
+
* Accept the node. Use this macro as the return value of a `webkit_dom_node_filter_accept_node()`
|
|
655
655
|
* implementation to accept the given {@link WebKit2WebExtension.DOMNode}
|
|
656
656
|
* @since 2.6
|
|
657
657
|
* @deprecated since 2.22: Use JavaScriptCore API instead
|
|
@@ -660,7 +660,7 @@ export namespace WebKit2WebExtension {
|
|
|
660
660
|
const DOM_NODE_FILTER_ACCEPT: number;
|
|
661
661
|
|
|
662
662
|
/**
|
|
663
|
-
* Reject the node. Use this macro as return value of `webkit_dom_node_filter_accept_node()`
|
|
663
|
+
* Reject the node. Use this macro as the return value of a `webkit_dom_node_filter_accept_node()`
|
|
664
664
|
* implementation to reject the given {@link WebKit2WebExtension.DOMNode}. The children of the given node will
|
|
665
665
|
* be rejected too.
|
|
666
666
|
* @since 2.6
|
|
@@ -774,7 +774,7 @@ export namespace WebKit2WebExtension {
|
|
|
774
774
|
const DOM_NODE_FILTER_SHOW_TEXT: number;
|
|
775
775
|
|
|
776
776
|
/**
|
|
777
|
-
* Skip the node. Use this macro as return value of `webkit_dom_node_filter_accept_node()`
|
|
777
|
+
* Skip the node. Use this macro as the return value of a `webkit_dom_node_filter_accept_node()`
|
|
778
778
|
* implementation to skip the given {@link WebKit2WebExtension.DOMNode}. The children of the given node will
|
|
779
779
|
* not be skipped.
|
|
780
780
|
* @since 2.6
|
|
@@ -1439,7 +1439,7 @@ export namespace WebKit2WebExtension {
|
|
|
1439
1439
|
|
|
1440
1440
|
/**
|
|
1441
1441
|
* Version of `webkit_dom_event_target_add_event_listener()` using a closure
|
|
1442
|
-
* instead of
|
|
1442
|
+
* instead of callbacks for easier binding in other languages.
|
|
1443
1443
|
* @param event_name A `gchar`
|
|
1444
1444
|
* @param handler A {@link GObject.Closure}
|
|
1445
1445
|
* @param use_capture A `gboolean`
|
|
@@ -1458,7 +1458,7 @@ export namespace WebKit2WebExtension {
|
|
|
1458
1458
|
|
|
1459
1459
|
/**
|
|
1460
1460
|
* Version of `webkit_dom_event_target_remove_event_listener()` using a closure
|
|
1461
|
-
* instead of
|
|
1461
|
+
* instead of callbacks for easier binding in other languages.
|
|
1462
1462
|
* @param event_name A `gchar`
|
|
1463
1463
|
* @param handler A {@link GObject.Closure}
|
|
1464
1464
|
* @param use_capture A `gboolean`
|
|
@@ -2349,7 +2349,7 @@ export namespace WebKit2WebExtension {
|
|
|
2349
2349
|
|
|
2350
2350
|
/**
|
|
2351
2351
|
* Version of `webkit_dom_event_target_add_event_listener()` using a closure
|
|
2352
|
-
* instead of
|
|
2352
|
+
* instead of callbacks for easier binding in other languages.
|
|
2353
2353
|
* @param event_name A `gchar`
|
|
2354
2354
|
* @param handler A {@link GObject.Closure}
|
|
2355
2355
|
* @param use_capture A `gboolean`
|
|
@@ -2368,7 +2368,7 @@ export namespace WebKit2WebExtension {
|
|
|
2368
2368
|
|
|
2369
2369
|
/**
|
|
2370
2370
|
* Version of `webkit_dom_event_target_remove_event_listener()` using a closure
|
|
2371
|
-
* instead of
|
|
2371
|
+
* instead of callbacks for easier binding in other languages.
|
|
2372
2372
|
* @param event_name A `gchar`
|
|
2373
2373
|
* @param handler A {@link GObject.Closure}
|
|
2374
2374
|
* @param use_capture A `gboolean`
|
|
@@ -4008,14 +4008,17 @@ export namespace WebKit2WebExtension {
|
|
|
4008
4008
|
stop(): void;
|
|
4009
4009
|
|
|
4010
4010
|
/**
|
|
4011
|
-
* @param handler
|
|
4012
|
-
* @param message
|
|
4011
|
+
* @param handler Name of the user message handler.
|
|
4012
|
+
* @param message JavaScript value to be sent.
|
|
4013
|
+
* @returns Whether the message was successfully sent.
|
|
4014
|
+
* @since 2.8
|
|
4015
|
+
* @deprecated since 2.22: Use JavaScriptCore API instead
|
|
4013
4016
|
*/
|
|
4014
4017
|
webkit_message_handlers_post_message(handler: string, message: string): boolean;
|
|
4015
4018
|
|
|
4016
4019
|
/**
|
|
4017
4020
|
* Version of `webkit_dom_event_target_add_event_listener()` using a closure
|
|
4018
|
-
* instead of
|
|
4021
|
+
* instead of callbacks for easier binding in other languages.
|
|
4019
4022
|
* @param event_name A `gchar`
|
|
4020
4023
|
* @param handler A {@link GObject.Closure}
|
|
4021
4024
|
* @param use_capture A `gboolean`
|
|
@@ -4034,7 +4037,7 @@ export namespace WebKit2WebExtension {
|
|
|
4034
4037
|
|
|
4035
4038
|
/**
|
|
4036
4039
|
* Version of `webkit_dom_event_target_remove_event_listener()` using a closure
|
|
4037
|
-
* instead of
|
|
4040
|
+
* instead of callbacks for easier binding in other languages.
|
|
4038
4041
|
* @param event_name A `gchar`
|
|
4039
4042
|
* @param handler A {@link GObject.Closure}
|
|
4040
4043
|
* @param use_capture A `gboolean`
|
|
@@ -5386,7 +5389,7 @@ export namespace WebKit2WebExtension {
|
|
|
5386
5389
|
|
|
5387
5390
|
/**
|
|
5388
5391
|
* Version of `webkit_dom_event_target_add_event_listener()` using a closure
|
|
5389
|
-
* instead of
|
|
5392
|
+
* instead of callbacks for easier binding in other languages.
|
|
5390
5393
|
* @param event_name A `gchar`
|
|
5391
5394
|
* @param handler A {@link GObject.Closure}
|
|
5392
5395
|
* @param use_capture A `gboolean`
|
|
@@ -5405,7 +5408,7 @@ export namespace WebKit2WebExtension {
|
|
|
5405
5408
|
|
|
5406
5409
|
/**
|
|
5407
5410
|
* Version of `webkit_dom_event_target_remove_event_listener()` using a closure
|
|
5408
|
-
* instead of
|
|
5411
|
+
* instead of callbacks for easier binding in other languages.
|
|
5409
5412
|
* @param event_name A `gchar`
|
|
5410
5413
|
* @param handler A {@link GObject.Closure}
|
|
5411
5414
|
* @param use_capture A `gboolean`
|
|
@@ -5600,7 +5603,7 @@ export namespace WebKit2WebExtension {
|
|
|
5600
5603
|
|
|
5601
5604
|
/**
|
|
5602
5605
|
* Version of `webkit_dom_event_target_add_event_listener()` using a closure
|
|
5603
|
-
* instead of
|
|
5606
|
+
* instead of callbacks for easier binding in other languages.
|
|
5604
5607
|
* @param event_name A `gchar`
|
|
5605
5608
|
* @param handler A {@link GObject.Closure}
|
|
5606
5609
|
* @param use_capture A `gboolean`
|
|
@@ -5619,7 +5622,7 @@ export namespace WebKit2WebExtension {
|
|
|
5619
5622
|
|
|
5620
5623
|
/**
|
|
5621
5624
|
* Version of `webkit_dom_event_target_remove_event_listener()` using a closure
|
|
5622
|
-
* instead of
|
|
5625
|
+
* instead of callbacks for easier binding in other languages.
|
|
5623
5626
|
* @param event_name A `gchar`
|
|
5624
5627
|
* @param handler A {@link GObject.Closure}
|
|
5625
5628
|
* @param use_capture A `gboolean`
|
|
@@ -5808,7 +5811,7 @@ export namespace WebKit2WebExtension {
|
|
|
5808
5811
|
|
|
5809
5812
|
/**
|
|
5810
5813
|
* Version of `webkit_dom_event_target_add_event_listener()` using a closure
|
|
5811
|
-
* instead of
|
|
5814
|
+
* instead of callbacks for easier binding in other languages.
|
|
5812
5815
|
* @param event_name A `gchar`
|
|
5813
5816
|
* @param handler A {@link GObject.Closure}
|
|
5814
5817
|
* @param use_capture A `gboolean`
|
|
@@ -5827,7 +5830,7 @@ export namespace WebKit2WebExtension {
|
|
|
5827
5830
|
|
|
5828
5831
|
/**
|
|
5829
5832
|
* Version of `webkit_dom_event_target_remove_event_listener()` using a closure
|
|
5830
|
-
* instead of
|
|
5833
|
+
* instead of callbacks for easier binding in other languages.
|
|
5831
5834
|
* @param event_name A `gchar`
|
|
5832
5835
|
* @param handler A {@link GObject.Closure}
|
|
5833
5836
|
* @param use_capture A `gboolean`
|
|
@@ -6406,7 +6409,7 @@ export namespace WebKit2WebExtension {
|
|
|
6406
6409
|
get_client_left(): number;
|
|
6407
6410
|
|
|
6408
6411
|
/**
|
|
6409
|
-
* Returns a collection of {@link WebKit2WebExtension.DOMClientRect} objects, each of which
|
|
6412
|
+
* Returns a collection of {@link WebKit2WebExtension.DOMClientRect} objects, each of which describes
|
|
6410
6413
|
* the size and position of a CSS border box relative to the viewport.
|
|
6411
6414
|
* @returns A {@link WebKit2WebExtension.DOMClientRectList}
|
|
6412
6415
|
* @since 2.18
|
|
@@ -6868,7 +6871,7 @@ export namespace WebKit2WebExtension {
|
|
|
6868
6871
|
|
|
6869
6872
|
/**
|
|
6870
6873
|
* Version of `webkit_dom_event_target_add_event_listener()` using a closure
|
|
6871
|
-
* instead of
|
|
6874
|
+
* instead of callbacks for easier binding in other languages.
|
|
6872
6875
|
* @param event_name A `gchar`
|
|
6873
6876
|
* @param handler A {@link GObject.Closure}
|
|
6874
6877
|
* @param use_capture A `gboolean`
|
|
@@ -6887,7 +6890,7 @@ export namespace WebKit2WebExtension {
|
|
|
6887
6890
|
|
|
6888
6891
|
/**
|
|
6889
6892
|
* Version of `webkit_dom_event_target_remove_event_listener()` using a closure
|
|
6890
|
-
* instead of
|
|
6893
|
+
* instead of callbacks for easier binding in other languages.
|
|
6891
6894
|
* @param event_name A `gchar`
|
|
6892
6895
|
* @param handler A {@link GObject.Closure}
|
|
6893
6896
|
* @param use_capture A `gboolean`
|
|
@@ -6977,7 +6980,7 @@ export namespace WebKit2WebExtension {
|
|
|
6977
6980
|
|
|
6978
6981
|
/**
|
|
6979
6982
|
* Version of `webkit_dom_event_target_add_event_listener()` using a closure
|
|
6980
|
-
* instead of
|
|
6983
|
+
* instead of callbacks for easier binding in other languages.
|
|
6981
6984
|
* @param event_name A `gchar`
|
|
6982
6985
|
* @param handler A {@link GObject.Closure}
|
|
6983
6986
|
* @param use_capture A `gboolean`
|
|
@@ -6996,7 +6999,7 @@ export namespace WebKit2WebExtension {
|
|
|
6996
6999
|
|
|
6997
7000
|
/**
|
|
6998
7001
|
* Version of `webkit_dom_event_target_remove_event_listener()` using a closure
|
|
6999
|
-
* instead of
|
|
7002
|
+
* instead of callbacks for easier binding in other languages.
|
|
7000
7003
|
* @param event_name A `gchar`
|
|
7001
7004
|
* @param handler A {@link GObject.Closure}
|
|
7002
7005
|
* @param use_capture A `gboolean`
|
|
@@ -21083,7 +21086,7 @@ export namespace WebKit2WebExtension {
|
|
|
21083
21086
|
|
|
21084
21087
|
/**
|
|
21085
21088
|
* Version of `webkit_dom_event_target_add_event_listener()` using a closure
|
|
21086
|
-
* instead of
|
|
21089
|
+
* instead of callbacks for easier binding in other languages.
|
|
21087
21090
|
* @param event_name A `gchar`
|
|
21088
21091
|
* @param handler A {@link GObject.Closure}
|
|
21089
21092
|
* @param use_capture A `gboolean`
|
|
@@ -21102,7 +21105,7 @@ export namespace WebKit2WebExtension {
|
|
|
21102
21105
|
|
|
21103
21106
|
/**
|
|
21104
21107
|
* Version of `webkit_dom_event_target_remove_event_listener()` using a closure
|
|
21105
|
-
* instead of
|
|
21108
|
+
* instead of callbacks for easier binding in other languages.
|
|
21106
21109
|
* @param event_name A `gchar`
|
|
21107
21110
|
* @param handler A {@link GObject.Closure}
|
|
21108
21111
|
* @param use_capture A `gboolean`
|
|
@@ -21244,7 +21247,7 @@ export namespace WebKit2WebExtension {
|
|
|
21244
21247
|
|
|
21245
21248
|
/**
|
|
21246
21249
|
* This function has been removed from the DOM spec and it just returns `false`.
|
|
21247
|
-
* @returns A `gboolean`
|
|
21250
|
+
* @returns A `gboolean`
|
|
21248
21251
|
* @deprecated since 2.12
|
|
21249
21252
|
*/
|
|
21250
21253
|
get_expand_entity_references(): boolean;
|
|
@@ -23149,7 +23152,7 @@ export namespace WebKit2WebExtension {
|
|
|
23149
23152
|
get_uri(): string;
|
|
23150
23153
|
|
|
23151
23154
|
/**
|
|
23152
|
-
* Gets whether `frame` is the main frame of a {@link WebKit2WebExtension.WebPage}
|
|
23155
|
+
* Gets whether `frame` is the main frame of a {@link WebKit2WebExtension.WebPage}.
|
|
23153
23156
|
* @returns `true` if `frame` is a main frame or `false` otherwise
|
|
23154
23157
|
* @since 2.2
|
|
23155
23158
|
*/
|
|
@@ -23464,7 +23467,7 @@ export namespace WebKit2WebExtension {
|
|
|
23464
23467
|
* Get the default {@link WebKit2WebExtension.ScriptWorld}. This is the normal script world
|
|
23465
23468
|
* where all scripts are executed by default.
|
|
23466
23469
|
* You can get the JavaScript execution context of a {@link WebKit2WebExtension.ScriptWorld}
|
|
23467
|
-
* for a given {@link WebKit2WebExtension.Frame} with `
|
|
23470
|
+
* for a given {@link WebKit2WebExtension.Frame} with `webkit_frame_get_js_context_for_script_world()`.
|
|
23468
23471
|
* @since 2.2
|
|
23469
23472
|
*/
|
|
23470
23473
|
static get_default(): ScriptWorld;
|
|
@@ -23910,7 +23913,7 @@ export namespace WebKit2WebExtension {
|
|
|
23910
23913
|
* Access to editing capabilities of a {@link WebKit2WebExtension.WebPage}.
|
|
23911
23914
|
*
|
|
23912
23915
|
* The WebKitWebEditor provides access to various editing capabilities of
|
|
23913
|
-
* a {@link WebKit2WebExtension.WebPage} such as
|
|
23916
|
+
* a {@link WebKit2WebExtension.WebPage} such as the possibility to react to the current selection in
|
|
23914
23917
|
* {@link WebKit2WebExtension.WebPage}.
|
|
23915
23918
|
* @gir-type Class
|
|
23916
23919
|
* @since 2.10
|
|
@@ -23965,7 +23968,7 @@ export namespace WebKit2WebExtension {
|
|
|
23965
23968
|
/**
|
|
23966
23969
|
* This signal is emitted when a {@link WebKit2WebExtension.UserMessage} is received from the
|
|
23967
23970
|
* `WebKitWebContext` corresponding to `extension`. Messages sent by `WebKitWebContext`
|
|
23968
|
-
* are always
|
|
23971
|
+
* are always broadcast to all web extensions and they can't be
|
|
23969
23972
|
* replied to. Calling `webkit_user_message_send_reply()` will do nothing.
|
|
23970
23973
|
* @signal
|
|
23971
23974
|
* @since 2.28
|
|
@@ -23982,7 +23985,7 @@ export namespace WebKit2WebExtension {
|
|
|
23982
23985
|
* Represents an extension of the WebProcess.
|
|
23983
23986
|
*
|
|
23984
23987
|
* WebKitWebExtension is a loadable module for the WebProcess. It allows you to execute code in the
|
|
23985
|
-
* WebProcess and
|
|
23988
|
+
* WebProcess and to use the DOM API, to change any request or to inject custom
|
|
23986
23989
|
* JavaScript code, for example.
|
|
23987
23990
|
*
|
|
23988
23991
|
* To create a WebKitWebExtension you should write a module with an initialization function that could
|
|
@@ -24090,7 +24093,7 @@ export namespace WebKit2WebExtension {
|
|
|
24090
24093
|
/**
|
|
24091
24094
|
* Send `message` to the `WebKitWebContext` corresponding to `extension`. If `message` is floating, it's consumed.
|
|
24092
24095
|
*
|
|
24093
|
-
* If you don't expect any reply, or you simply want to ignore it, you can pass `null` as `
|
|
24096
|
+
* If you don't expect any reply, or you simply want to ignore it, you can pass `null` as `callback`.
|
|
24094
24097
|
* When the operation is finished, `callback` will be called. You can then call
|
|
24095
24098
|
* `webkit_web_extension_send_message_to_context_finish()` to get the message reply.
|
|
24096
24099
|
* @param message a {@link WebKit2WebExtension.UserMessage}
|
|
@@ -24102,7 +24105,7 @@ export namespace WebKit2WebExtension {
|
|
|
24102
24105
|
/**
|
|
24103
24106
|
* Send `message` to the `WebKitWebContext` corresponding to `extension`. If `message` is floating, it's consumed.
|
|
24104
24107
|
*
|
|
24105
|
-
* If you don't expect any reply, or you simply want to ignore it, you can pass `null` as `
|
|
24108
|
+
* If you don't expect any reply, or you simply want to ignore it, you can pass `null` as `callback`.
|
|
24106
24109
|
* When the operation is finished, `callback` will be called. You can then call
|
|
24107
24110
|
* `webkit_web_extension_send_message_to_context_finish()` to get the message reply.
|
|
24108
24111
|
* @param message a {@link WebKit2WebExtension.UserMessage}
|
|
@@ -24115,7 +24118,7 @@ export namespace WebKit2WebExtension {
|
|
|
24115
24118
|
/**
|
|
24116
24119
|
* Send `message` to the `WebKitWebContext` corresponding to `extension`. If `message` is floating, it's consumed.
|
|
24117
24120
|
*
|
|
24118
|
-
* If you don't expect any reply, or you simply want to ignore it, you can pass `null` as `
|
|
24121
|
+
* If you don't expect any reply, or you simply want to ignore it, you can pass `null` as `callback`.
|
|
24119
24122
|
* When the operation is finished, `callback` will be called. You can then call
|
|
24120
24123
|
* `webkit_web_extension_send_message_to_context_finish()` to get the message reply.
|
|
24121
24124
|
* @param message a {@link WebKit2WebExtension.UserMessage}
|
|
@@ -24140,7 +24143,7 @@ export namespace WebKit2WebExtension {
|
|
|
24140
24143
|
// Signal signatures
|
|
24141
24144
|
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
24142
24145
|
/**
|
|
24143
|
-
* Emitted after form elements (or form associated elements) are associated
|
|
24146
|
+
* Emitted after form elements (or form associated elements) are associated with `frame`.
|
|
24144
24147
|
* This is useful to implement form auto filling for web pages where form fields are added
|
|
24145
24148
|
* dynamically. This signal might be emitted multiple times for the same frame.
|
|
24146
24149
|
*
|
|
@@ -24190,7 +24193,7 @@ export namespace WebKit2WebExtension {
|
|
|
24190
24193
|
}
|
|
24191
24194
|
|
|
24192
24195
|
/**
|
|
24193
|
-
* Form manager of a {@link WebKit2WebExtension.WebPage} in a {@link WebKit2WebExtension.ScriptWorld}
|
|
24196
|
+
* Form manager of a {@link WebKit2WebExtension.WebPage} in a {@link WebKit2WebExtension.ScriptWorld}.
|
|
24194
24197
|
* @gir-type Class
|
|
24195
24198
|
* @since 2.40
|
|
24196
24199
|
*/
|
|
@@ -24279,7 +24282,7 @@ export namespace WebKit2WebExtension {
|
|
|
24279
24282
|
|
|
24280
24283
|
// Properties
|
|
24281
24284
|
/**
|
|
24282
|
-
* The {@link WebKit2WebExtension.DOMNode}
|
|
24285
|
+
* The {@link WebKit2WebExtension.DOMNode}.
|
|
24283
24286
|
* @deprecated since 2.40
|
|
24284
24287
|
* @construct-only
|
|
24285
24288
|
*/
|
|
@@ -24335,7 +24338,7 @@ export namespace WebKit2WebExtension {
|
|
|
24335
24338
|
* Emitted when a message is sent to the console. This can be a message
|
|
24336
24339
|
* produced by the use of JavaScript console API, a JavaScript exception,
|
|
24337
24340
|
* a security error or other errors, warnings, debug or log messages.
|
|
24338
|
-
* The `console_message` contains information
|
|
24341
|
+
* The `console_message` contains information about the message.
|
|
24339
24342
|
* @signal
|
|
24340
24343
|
* @since 2.12
|
|
24341
24344
|
* @run-last
|
|
@@ -24359,13 +24362,13 @@ export namespace WebKit2WebExtension {
|
|
|
24359
24362
|
* This signal is emitted when the DOM document of a {@link WebKit2WebExtension.WebPage} has been
|
|
24360
24363
|
* loaded.
|
|
24361
24364
|
*
|
|
24362
|
-
* You can wait for this signal to get the DOM document
|
|
24365
|
+
* You can wait for this signal to get the DOM document.
|
|
24363
24366
|
* @signal
|
|
24364
24367
|
* @run-last
|
|
24365
24368
|
*/
|
|
24366
24369
|
"document-loaded": () => void;
|
|
24367
24370
|
/**
|
|
24368
|
-
* Emitted after form elements (or form associated elements) are associated
|
|
24371
|
+
* Emitted after form elements (or form associated elements) are associated with a particular web
|
|
24369
24372
|
* page. This is useful to implement form auto filling for web pages where form fields are added
|
|
24370
24373
|
* dynamically. This signal might be emitted multiple times for the same web page.
|
|
24371
24374
|
*
|
|
@@ -24376,12 +24379,12 @@ export namespace WebKit2WebExtension {
|
|
|
24376
24379
|
* keep them alive after the signal handler returns.
|
|
24377
24380
|
* @signal
|
|
24378
24381
|
* @since 2.16
|
|
24379
|
-
* @deprecated since 2.26:
|
|
24382
|
+
* @deprecated since 2.26: Use {@link WebKit2WebExtension.WebPage.SignalSignatures.form_controls_associated_for_frame | WebKit2WebExtension.WebPage::form-controls-associated-for-frame} instead.
|
|
24380
24383
|
* @run-last
|
|
24381
24384
|
*/
|
|
24382
24385
|
"form-controls-associated": (elements: DOMElement[]) => void;
|
|
24383
24386
|
/**
|
|
24384
|
-
* Emitted after form elements (or form associated elements) are associated
|
|
24387
|
+
* Emitted after form elements (or form associated elements) are associated with a particular web
|
|
24385
24388
|
* page. This is useful to implement form auto filling for web pages where form fields are added
|
|
24386
24389
|
* dynamically. This signal might be emitted multiple times for the same web page.
|
|
24387
24390
|
*
|
|
@@ -24406,7 +24409,7 @@ export namespace WebKit2WebExtension {
|
|
|
24406
24409
|
* emitted again with the `request` argument containing the new
|
|
24407
24410
|
* request to be sent to the server due to the redirection and the
|
|
24408
24411
|
* `redirected_response` parameter containing the response
|
|
24409
|
-
* received
|
|
24412
|
+
* received from the server for the initial request.
|
|
24410
24413
|
*
|
|
24411
24414
|
* Modifications to the {@link WebKit2WebExtension.URIRequest} and its associated
|
|
24412
24415
|
* {@link Soup.MessageHeaders} will be taken into account when the request
|
|
@@ -24422,7 +24425,7 @@ export namespace WebKit2WebExtension {
|
|
|
24422
24425
|
*
|
|
24423
24426
|
* You can handle the user message asynchronously by calling `g_object_ref()` on
|
|
24424
24427
|
* `message` and returning `true`. If the last reference of `message` is removed
|
|
24425
|
-
* and the message has been replied, the operation in the `WebKitWebView` will
|
|
24428
|
+
* and the message has not been replied to, the operation in the `WebKitWebView` will
|
|
24426
24429
|
* finish with error {@link WebKit2WebExtension.UserMessageError.USER_MESSAGE_UNHANDLED_MESSAGE}.
|
|
24427
24430
|
* @signal
|
|
24428
24431
|
* @since 2.28
|
|
@@ -24513,9 +24516,9 @@ export namespace WebKit2WebExtension {
|
|
|
24513
24516
|
|
|
24514
24517
|
// Methods
|
|
24515
24518
|
/**
|
|
24516
|
-
* Get the {@link WebKit2WebExtension.DOMDocument} currently loaded in `web_page
|
|
24519
|
+
* Get the {@link WebKit2WebExtension.DOMDocument} currently loaded in `web_page`.
|
|
24517
24520
|
* @returns the {@link WebKit2WebExtension.DOMDocument} currently loaded, or `null` if no document is currently loaded.
|
|
24518
|
-
* @deprecated since 2.40
|
|
24521
|
+
* @deprecated since 2.40: Use JavaScriptCore API instead.
|
|
24519
24522
|
*/
|
|
24520
24523
|
get_dom_document(): DOMDocument;
|
|
24521
24524
|
|
|
@@ -24535,7 +24538,7 @@ export namespace WebKit2WebExtension {
|
|
|
24535
24538
|
get_form_manager(world: ScriptWorld | null): WebFormManager;
|
|
24536
24539
|
|
|
24537
24540
|
/**
|
|
24538
|
-
* Get the identifier of the {@link WebKit2WebExtension.WebPage}
|
|
24541
|
+
* Get the identifier of the {@link WebKit2WebExtension.WebPage}.
|
|
24539
24542
|
* @returns the identifier of `web_page`
|
|
24540
24543
|
*/
|
|
24541
24544
|
get_id(): number;
|
|
@@ -24553,7 +24556,7 @@ export namespace WebKit2WebExtension {
|
|
|
24553
24556
|
*
|
|
24554
24557
|
* You can monitor the active URI by connecting to the notify::uri
|
|
24555
24558
|
* signal of `web_page`.
|
|
24556
|
-
* @returns the current active URI of `
|
|
24559
|
+
* @returns the current active URI of `web_page` or `null` if nothing has been loaded yet.
|
|
24557
24560
|
*/
|
|
24558
24561
|
get_uri(): string;
|
|
24559
24562
|
|
|
@@ -24621,41 +24624,41 @@ export namespace WebKit2WebExtension {
|
|
|
24621
24624
|
copy(): ConsoleMessage;
|
|
24622
24625
|
|
|
24623
24626
|
/**
|
|
24624
|
-
* Free the {@link WebKit2WebExtension.ConsoleMessage}
|
|
24627
|
+
* Free the {@link WebKit2WebExtension.ConsoleMessage}.
|
|
24625
24628
|
* @since 2.12
|
|
24626
24629
|
*/
|
|
24627
24630
|
free(): void;
|
|
24628
24631
|
|
|
24629
24632
|
/**
|
|
24630
|
-
* Gets the log level of a {@link WebKit2WebExtension.ConsoleMessage}
|
|
24633
|
+
* Gets the log level of a {@link WebKit2WebExtension.ConsoleMessage}.
|
|
24631
24634
|
* @returns a {@link WebKit2WebExtension.ConsoleMessageLevel} indicating the log level of `console_message`
|
|
24632
24635
|
* @since 2.12
|
|
24633
24636
|
*/
|
|
24634
24637
|
get_level(): ConsoleMessageLevel;
|
|
24635
24638
|
|
|
24636
24639
|
/**
|
|
24637
|
-
* Gets the line number of a {@link WebKit2WebExtension.ConsoleMessage}
|
|
24640
|
+
* Gets the line number of a {@link WebKit2WebExtension.ConsoleMessage}.
|
|
24638
24641
|
* @returns the line number of `console_message`
|
|
24639
24642
|
* @since 2.12
|
|
24640
24643
|
*/
|
|
24641
24644
|
get_line(): number;
|
|
24642
24645
|
|
|
24643
24646
|
/**
|
|
24644
|
-
* Gets the source of a {@link WebKit2WebExtension.ConsoleMessage}
|
|
24647
|
+
* Gets the source of a {@link WebKit2WebExtension.ConsoleMessage}.
|
|
24645
24648
|
* @returns a {@link WebKit2WebExtension.ConsoleMessageSource} indicating the source of `console_message`
|
|
24646
24649
|
* @since 2.12
|
|
24647
24650
|
*/
|
|
24648
24651
|
get_source(): ConsoleMessageSource;
|
|
24649
24652
|
|
|
24650
24653
|
/**
|
|
24651
|
-
* Gets the source identifier of a {@link WebKit2WebExtension.ConsoleMessage}
|
|
24654
|
+
* Gets the source identifier of a {@link WebKit2WebExtension.ConsoleMessage}.
|
|
24652
24655
|
* @returns the source identifier of `console_message`
|
|
24653
24656
|
* @since 2.12
|
|
24654
24657
|
*/
|
|
24655
24658
|
get_source_id(): string;
|
|
24656
24659
|
|
|
24657
24660
|
/**
|
|
24658
|
-
* Gets the text message of a {@link WebKit2WebExtension.ConsoleMessage}
|
|
24661
|
+
* Gets the text message of a {@link WebKit2WebExtension.ConsoleMessage}.
|
|
24659
24662
|
* @returns the text message of `console_message`
|
|
24660
24663
|
* @since 2.12
|
|
24661
24664
|
*/
|
|
@@ -25389,7 +25392,7 @@ export namespace WebKit2WebExtension {
|
|
|
25389
25392
|
// Methods
|
|
25390
25393
|
/**
|
|
25391
25394
|
* Version of `webkit_dom_event_target_add_event_listener()` using a closure
|
|
25392
|
-
* instead of
|
|
25395
|
+
* instead of callbacks for easier binding in other languages.
|
|
25393
25396
|
* @param event_name A `gchar`
|
|
25394
25397
|
* @param handler A {@link GObject.Closure}
|
|
25395
25398
|
* @param use_capture A `gboolean`
|
|
@@ -25408,7 +25411,7 @@ export namespace WebKit2WebExtension {
|
|
|
25408
25411
|
|
|
25409
25412
|
/**
|
|
25410
25413
|
* Version of `webkit_dom_event_target_remove_event_listener()` using a closure
|
|
25411
|
-
* instead of
|
|
25414
|
+
* instead of callbacks for easier binding in other languages.
|
|
25412
25415
|
* @param event_name A `gchar`
|
|
25413
25416
|
* @param handler A {@link GObject.Closure}
|
|
25414
25417
|
* @param use_capture A `gboolean`
|
|
@@ -25476,7 +25479,7 @@ export namespace WebKit2WebExtension {
|
|
|
25476
25479
|
|
|
25477
25480
|
// Virtual methods
|
|
25478
25481
|
/**
|
|
25479
|
-
* @param prefix The prefix to
|
|
25482
|
+
* @param prefix The prefix to look up
|
|
25480
25483
|
* @deprecated since 2.22: Use JavaScriptCore API instead
|
|
25481
25484
|
* @virtual
|
|
25482
25485
|
*/
|
|
@@ -25499,7 +25502,7 @@ export namespace WebKit2WebExtension {
|
|
|
25499
25502
|
|
|
25500
25503
|
// Methods
|
|
25501
25504
|
/**
|
|
25502
|
-
* @param prefix The prefix to
|
|
25505
|
+
* @param prefix The prefix to look up
|
|
25503
25506
|
* @returns a `gchar`
|
|
25504
25507
|
* @deprecated since 2.22: Use JavaScriptCore API instead
|
|
25505
25508
|
*/
|