@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.
- 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
|
@@ -186,7 +186,7 @@ export namespace WebKit {
|
|
|
186
186
|
|
|
187
187
|
/**
|
|
188
188
|
* Enum values used to denote the stock actions for
|
|
189
|
-
* {@link WebKit.ContextMenuItem}
|
|
189
|
+
* {@link WebKit.ContextMenuItem} objects
|
|
190
190
|
* @gir-type Enum
|
|
191
191
|
*/
|
|
192
192
|
enum ContextMenuAction {
|
|
@@ -247,7 +247,7 @@ export namespace WebKit {
|
|
|
247
247
|
*/
|
|
248
248
|
RELOAD = 13,
|
|
249
249
|
/**
|
|
250
|
-
* Copy current selection the clipboard.
|
|
250
|
+
* Copy current selection to the clipboard.
|
|
251
251
|
*/
|
|
252
252
|
COPY = 14,
|
|
253
253
|
/**
|
|
@@ -327,11 +327,11 @@ export namespace WebKit {
|
|
|
327
327
|
*/
|
|
328
328
|
OPEN_AUDIO_IN_NEW_WINDOW = 33,
|
|
329
329
|
/**
|
|
330
|
-
* Copy video link location
|
|
330
|
+
* Copy video link location to the clipboard.
|
|
331
331
|
*/
|
|
332
332
|
COPY_VIDEO_LINK_TO_CLIPBOARD = 34,
|
|
333
333
|
/**
|
|
334
|
-
* Copy audio link location
|
|
334
|
+
* Copy audio link location to the clipboard.
|
|
335
335
|
*/
|
|
336
336
|
COPY_AUDIO_LINK_TO_CLIPBOARD = 35,
|
|
337
337
|
/**
|
|
@@ -537,7 +537,7 @@ export namespace WebKit {
|
|
|
537
537
|
}
|
|
538
538
|
|
|
539
539
|
/**
|
|
540
|
-
* Describes the status of a {@link
|
|
540
|
+
* Describes the status of a {@link Feature}.
|
|
541
541
|
*
|
|
542
542
|
* The status for a given feature can be obtained with
|
|
543
543
|
* `webkit_feature_get_status`.
|
|
@@ -546,9 +546,9 @@ export namespace WebKit {
|
|
|
546
546
|
*/
|
|
547
547
|
enum FeatureStatus {
|
|
548
548
|
/**
|
|
549
|
-
* Feature that
|
|
549
|
+
* Feature that adjusts behavior for
|
|
550
550
|
* specific application needs. The feature is not part of a Web platform
|
|
551
|
-
* feature,
|
|
551
|
+
* feature, nor a mature feature intended to be always on.
|
|
552
552
|
*/
|
|
553
553
|
EMBEDDER = 0,
|
|
554
554
|
/**
|
|
@@ -559,7 +559,7 @@ export namespace WebKit {
|
|
|
559
559
|
UNSTABLE = 1,
|
|
560
560
|
/**
|
|
561
561
|
* Feature for debugging the WebKit engine.
|
|
562
|
-
* The feature is not generally useful for
|
|
562
|
+
* The feature is not generally useful for users or web developers, and
|
|
563
563
|
* always disabled by default.
|
|
564
564
|
*/
|
|
565
565
|
INTERNAL = 2,
|
|
@@ -660,6 +660,11 @@ export namespace WebKit {
|
|
|
660
660
|
* Editable element expects a password
|
|
661
661
|
*/
|
|
662
662
|
PASSWORD = 6,
|
|
663
|
+
/**
|
|
664
|
+
* Edited field contents will be used for searching data.
|
|
665
|
+
* @since 2.54
|
|
666
|
+
*/
|
|
667
|
+
SEARCH = 7,
|
|
663
668
|
}
|
|
664
669
|
|
|
665
670
|
|
|
@@ -707,7 +712,7 @@ export namespace WebKit {
|
|
|
707
712
|
static SCRIPT_FAILED: number;
|
|
708
713
|
|
|
709
714
|
/**
|
|
710
|
-
* An unsupported parameter has been used to call
|
|
715
|
+
* An unsupported parameter has been used to call an async function from API. Since 2.40
|
|
711
716
|
*/
|
|
712
717
|
static INVALID_PARAMETER: number;
|
|
713
718
|
|
|
@@ -1275,7 +1280,7 @@ export namespace WebKit {
|
|
|
1275
1280
|
}
|
|
1276
1281
|
|
|
1277
1282
|
/**
|
|
1278
|
-
* Specifies in which frames user style sheets are to be inserted
|
|
1283
|
+
* Specifies in which frames user style sheets are to be inserted.
|
|
1279
1284
|
* @gir-type Enum
|
|
1280
1285
|
* @since 2.6
|
|
1281
1286
|
*/
|
|
@@ -1327,7 +1332,7 @@ export namespace WebKit {
|
|
|
1327
1332
|
}
|
|
1328
1333
|
|
|
1329
1334
|
/**
|
|
1330
|
-
* Specifies at which place of documents
|
|
1335
|
+
* Specifies at which place of documents a user script will be inserted.
|
|
1331
1336
|
* @gir-type Enum
|
|
1332
1337
|
* @since 2.6
|
|
1333
1338
|
*/
|
|
@@ -1353,13 +1358,13 @@ export namespace WebKit {
|
|
|
1353
1358
|
}
|
|
1354
1359
|
|
|
1355
1360
|
/**
|
|
1356
|
-
* Specifies how to treat
|
|
1361
|
+
* Specifies how to treat a user style sheet.
|
|
1357
1362
|
* @gir-type Enum
|
|
1358
1363
|
* @since 2.6
|
|
1359
1364
|
*/
|
|
1360
1365
|
enum UserStyleLevel {
|
|
1361
1366
|
/**
|
|
1362
|
-
* The style sheet is
|
|
1367
|
+
* The style sheet is a user style sheet,
|
|
1363
1368
|
* its contents always override other style sheets. This is the default.
|
|
1364
1369
|
*/
|
|
1365
1370
|
USER = 0,
|
|
@@ -1381,7 +1386,7 @@ export namespace WebKit {
|
|
|
1381
1386
|
|
|
1382
1387
|
// Static fields
|
|
1383
1388
|
/**
|
|
1384
|
-
* An unknown error
|
|
1389
|
+
* An unknown error occurred.
|
|
1385
1390
|
*/
|
|
1386
1391
|
static UNKNOWN: number;
|
|
1387
1392
|
|
|
@@ -1446,7 +1451,7 @@ export namespace WebKit {
|
|
|
1446
1451
|
|
|
1447
1452
|
// Static fields
|
|
1448
1453
|
/**
|
|
1449
|
-
* An unknown error
|
|
1454
|
+
* An unknown error occurred.
|
|
1450
1455
|
*/
|
|
1451
1456
|
static UNKNOWN: number;
|
|
1452
1457
|
|
|
@@ -1580,7 +1585,7 @@ export namespace WebKit {
|
|
|
1580
1585
|
* the current cursor position. If there's a selection, the selected text
|
|
1581
1586
|
* will be used as the link text, otherwise the URL itself will be used.
|
|
1582
1587
|
* It receives the link URL as argument. This command should be executed
|
|
1583
|
-
* with `webkit_web_view_execute_editing_command_with_argument()
|
|
1588
|
+
* with `webkit_web_view_execute_editing_command_with_argument()`.
|
|
1584
1589
|
* @since 2.10
|
|
1585
1590
|
* @default CreateLink
|
|
1586
1591
|
*/
|
|
@@ -1599,7 +1604,7 @@ export namespace WebKit {
|
|
|
1599
1604
|
|
|
1600
1605
|
/**
|
|
1601
1606
|
* The insert image command. Creates an image element that is inserted at
|
|
1602
|
-
* the current cursor position. It receives
|
|
1607
|
+
* the current cursor position. It receives a URI as argument,
|
|
1603
1608
|
* that is used as the image source. This command should be executed with
|
|
1604
1609
|
* `webkit_web_view_execute_editing_command_with_argument()`.
|
|
1605
1610
|
* @since 2.10
|
|
@@ -1671,7 +1676,7 @@ export namespace WebKit {
|
|
|
1671
1676
|
* Like `webkit_get_micro_version()`, but from the headers used at
|
|
1672
1677
|
* application compile time, rather than from the library linked
|
|
1673
1678
|
* against at application run time.
|
|
1674
|
-
* @default
|
|
1679
|
+
* @default 0
|
|
1675
1680
|
*/
|
|
1676
1681
|
const MICRO_VERSION: number;
|
|
1677
1682
|
|
|
@@ -1679,7 +1684,7 @@ export namespace WebKit {
|
|
|
1679
1684
|
* Like `webkit_get_minor_version()`, but from the headers used at
|
|
1680
1685
|
* application compile time, rather than from the library linked
|
|
1681
1686
|
* against at application run time.
|
|
1682
|
-
* @default
|
|
1687
|
+
* @default 54
|
|
1683
1688
|
*/
|
|
1684
1689
|
const MINOR_VERSION: number;
|
|
1685
1690
|
|
|
@@ -1742,7 +1747,7 @@ export namespace WebKit {
|
|
|
1742
1747
|
|
|
1743
1748
|
/**
|
|
1744
1749
|
* Gets the quark for the domain of media errors.
|
|
1745
|
-
* @returns media error
|
|
1750
|
+
* @returns media error domain.
|
|
1746
1751
|
* @since 2.40
|
|
1747
1752
|
*/
|
|
1748
1753
|
function media_error_quark(): GLib.Quark;
|
|
@@ -1930,7 +1935,7 @@ export namespace WebKit {
|
|
|
1930
1935
|
CASE_INSENSITIVE = 1,
|
|
1931
1936
|
/**
|
|
1932
1937
|
* search text only at the
|
|
1933
|
-
*
|
|
1938
|
+
* beginning of the words.
|
|
1934
1939
|
*/
|
|
1935
1940
|
AT_WORD_STARTS = 2,
|
|
1936
1941
|
/**
|
|
@@ -2015,7 +2020,7 @@ export namespace WebKit {
|
|
|
2015
2020
|
*/
|
|
2016
2021
|
SPELLCHECK = 1,
|
|
2017
2022
|
/**
|
|
2018
|
-
* Suggest to not
|
|
2023
|
+
* Suggest to not autocapitalize
|
|
2019
2024
|
*/
|
|
2020
2025
|
LOWERCASE = 2,
|
|
2021
2026
|
/**
|
|
@@ -2089,7 +2094,7 @@ export namespace WebKit {
|
|
|
2089
2094
|
*/
|
|
2090
2095
|
IGNORE_SCHEMES = 2,
|
|
2091
2096
|
/**
|
|
2092
|
-
* The
|
|
2097
|
+
* The path components should be ignored while matching.
|
|
2093
2098
|
*/
|
|
2094
2099
|
IGNORE_PATHS = 4,
|
|
2095
2100
|
/**
|
|
@@ -2386,7 +2391,7 @@ export namespace WebKit {
|
|
|
2386
2391
|
is_for_proxy(): boolean;
|
|
2387
2392
|
|
|
2388
2393
|
/**
|
|
2389
|
-
* Determine whether this
|
|
2394
|
+
* Determine whether this is a first attempt or a retry for this authentication challenge.
|
|
2390
2395
|
* @returns `true` if authentication attempt is a retry or `false` otherwise.
|
|
2391
2396
|
* @since 2.2
|
|
2392
2397
|
*/
|
|
@@ -2533,10 +2538,10 @@ export namespace WebKit {
|
|
|
2533
2538
|
|
|
2534
2539
|
// Methods
|
|
2535
2540
|
/**
|
|
2536
|
-
* Get the
|
|
2541
|
+
* Get the previously set {@link WebKit.ApplicationInfo}.
|
|
2537
2542
|
*
|
|
2538
|
-
* Get the {@link WebKit.
|
|
2539
|
-
* @returns the {@link WebKit.
|
|
2543
|
+
* Get the {@link WebKit.ApplicationInfo} previously set with `webkit_automation_session_set_application_info()`.
|
|
2544
|
+
* @returns the {@link WebKit.ApplicationInfo} of `session`, or `null` if no one has been set.
|
|
2540
2545
|
* @since 2.18
|
|
2541
2546
|
*/
|
|
2542
2547
|
get_application_info(): ApplicationInfo;
|
|
@@ -2571,7 +2576,7 @@ export namespace WebKit {
|
|
|
2571
2576
|
* This signal is emitted when `back_forward_list` changes. This happens
|
|
2572
2577
|
* when the current item is updated, a new item is added or one or more
|
|
2573
2578
|
* items are removed. Note that both `item_added` and `items_removed` can
|
|
2574
|
-
* `null` when only the current item is updated. Items are only removed
|
|
2579
|
+
* be `null` when only the current item is updated. Items are only removed
|
|
2575
2580
|
* when the list is cleared or the maximum items limit is reached.
|
|
2576
2581
|
* @signal
|
|
2577
2582
|
* @run-last
|
|
@@ -2596,7 +2601,7 @@ export namespace WebKit {
|
|
|
2596
2601
|
* Methods `webkit_web_view_go_back()` and `webkit_web_view_go_forward()` move
|
|
2597
2602
|
* the current item backward or forward by one. Method
|
|
2598
2603
|
* `webkit_web_view_go_to_back_forward_list_item()` sets the current item to the
|
|
2599
|
-
* specified item. All other methods returning {@link WebKit.BackForwardListItem}
|
|
2604
|
+
* specified item. All other methods returning {@link WebKit.BackForwardListItem} objects
|
|
2600
2605
|
* do not change the value of the current item, they just return the requested
|
|
2601
2606
|
* item or items.
|
|
2602
2607
|
* @gir-type Class
|
|
@@ -2700,7 +2705,7 @@ export namespace WebKit {
|
|
|
2700
2705
|
* One item of the {@link WebKit.BackForwardList}.
|
|
2701
2706
|
*
|
|
2702
2707
|
* A history item is part of the {@link WebKit.BackForwardList} and consists
|
|
2703
|
-
*
|
|
2708
|
+
* of a title and a URI.
|
|
2704
2709
|
* @gir-type Class
|
|
2705
2710
|
*/
|
|
2706
2711
|
class BackForwardListItem extends GObject.InitiallyUnowned {
|
|
@@ -2856,7 +2861,7 @@ export namespace WebKit {
|
|
|
2856
2861
|
* Whenever the user interacts with an <input type='color' />
|
|
2857
2862
|
* HTML element, WebKit will need to show a dialog to choose a color. For that
|
|
2858
2863
|
* to happen in a general way, instead of just opening a {@link Gtk.ColorChooser}
|
|
2859
|
-
* (which might be
|
|
2864
|
+
* (which might not be desirable for applications that prefer to use their
|
|
2860
2865
|
* own color chooser dialog), WebKit will fire the
|
|
2861
2866
|
* {@link WebKit.WebView.SignalSignatures.run_color_chooser | WebKit.WebView::run-color-chooser} signal with a {@link WebKit.ColorChooserRequest}
|
|
2862
2867
|
* object, which will allow the client application to specify the color to be
|
|
@@ -3271,7 +3276,7 @@ export namespace WebKit {
|
|
|
3271
3276
|
* You can get it from a {@link WebKit.WebsiteDataManager} with
|
|
3272
3277
|
* `webkit_website_data_manager_get_cookie_manager()`, and use it to set where to
|
|
3273
3278
|
* store cookies with `webkit_cookie_manager_set_persistent_storage()`,
|
|
3274
|
-
* or to set the acceptance policy, with `
|
|
3279
|
+
* or to set the acceptance policy, with `webkit_cookie_manager_set_accept_policy()`.
|
|
3275
3280
|
* @gir-type Class
|
|
3276
3281
|
*/
|
|
3277
3282
|
class CookieManager extends GObject.Object {
|
|
@@ -3491,7 +3496,7 @@ export namespace WebKit {
|
|
|
3491
3496
|
*
|
|
3492
3497
|
* When the operation is finished, `callback` will be called. You can then call
|
|
3493
3498
|
* `webkit_cookie_manager_get_cookies_finish()` to get the result of the operation.
|
|
3494
|
-
* @param uri the URI associated
|
|
3499
|
+
* @param uri the URI associated with the cookies to be retrieved
|
|
3495
3500
|
* @param cancellable a {@link Gio.Cancellable} or `null` to ignore
|
|
3496
3501
|
* @since 2.20
|
|
3497
3502
|
*/
|
|
@@ -3505,7 +3510,7 @@ export namespace WebKit {
|
|
|
3505
3510
|
*
|
|
3506
3511
|
* When the operation is finished, `callback` will be called. You can then call
|
|
3507
3512
|
* `webkit_cookie_manager_get_cookies_finish()` to get the result of the operation.
|
|
3508
|
-
* @param uri the URI associated
|
|
3513
|
+
* @param uri the URI associated with the cookies to be retrieved
|
|
3509
3514
|
* @param cancellable a {@link Gio.Cancellable} or `null` to ignore
|
|
3510
3515
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
|
|
3511
3516
|
* @since 2.20
|
|
@@ -3520,7 +3525,7 @@ export namespace WebKit {
|
|
|
3520
3525
|
*
|
|
3521
3526
|
* When the operation is finished, `callback` will be called. You can then call
|
|
3522
3527
|
* `webkit_cookie_manager_get_cookies_finish()` to get the result of the operation.
|
|
3523
|
-
* @param uri the URI associated
|
|
3528
|
+
* @param uri the URI associated with the cookies to be retrieved
|
|
3524
3529
|
* @param cancellable a {@link Gio.Cancellable} or `null` to ignore
|
|
3525
3530
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
|
|
3526
3531
|
* @since 2.20
|
|
@@ -3605,8 +3610,8 @@ export namespace WebKit {
|
|
|
3605
3610
|
* By default, `cookie_manager` doesn't store the cookies persistently, so you need to call this
|
|
3606
3611
|
* method to keep cookies saved across sessions.
|
|
3607
3612
|
*
|
|
3608
|
-
* This method should never be called on a {@link WebKit.CookieManager} associated
|
|
3609
|
-
* @param filename the filename to read
|
|
3613
|
+
* This method should never be called on a {@link WebKit.CookieManager} associated with an ephemeral {@link WebKit.WebsiteDataManager}.
|
|
3614
|
+
* @param filename the filename to read from/write to
|
|
3610
3615
|
* @param storage a {@link WebKit.CookiePersistentStorage}
|
|
3611
3616
|
*/
|
|
3612
3617
|
set_persistent_storage(filename: string, storage: CookiePersistentStorage): void;
|
|
@@ -3625,8 +3630,8 @@ export namespace WebKit {
|
|
|
3625
3630
|
* A permission request for enumerating the user's media devices
|
|
3626
3631
|
*
|
|
3627
3632
|
* WebKitDeviceInfoPermissionRequest represents a request for
|
|
3628
|
-
* permission to whether WebKit should be allowed to access the user's
|
|
3629
|
-
*
|
|
3633
|
+
* permission to decide whether WebKit should be allowed to access the user's
|
|
3634
|
+
* device information when requested through the MediaDevices.enumerateDevices
|
|
3630
3635
|
* API.
|
|
3631
3636
|
*
|
|
3632
3637
|
* When a WebKitDeviceInfoPermissionRequest is not handled by the user,
|
|
@@ -3801,7 +3806,7 @@ export namespace WebKit {
|
|
|
3801
3806
|
* This value will range from 0.0 to 1.0. The value is an estimate
|
|
3802
3807
|
* based on the total number of bytes expected to be received for
|
|
3803
3808
|
* a download.
|
|
3804
|
-
* If you need
|
|
3809
|
+
* If you need more accurate progress information you can connect to
|
|
3805
3810
|
* {@link WebKit.Download.SignalSignatures.received_data | WebKit.Download::received-data} signal to track the progress.
|
|
3806
3811
|
* @read-only
|
|
3807
3812
|
* @default 1
|
|
@@ -3813,7 +3818,7 @@ export namespace WebKit {
|
|
|
3813
3818
|
* This value will range from 0.0 to 1.0. The value is an estimate
|
|
3814
3819
|
* based on the total number of bytes expected to be received for
|
|
3815
3820
|
* a download.
|
|
3816
|
-
* If you need
|
|
3821
|
+
* If you need more accurate progress information you can connect to
|
|
3817
3822
|
* {@link WebKit.Download.SignalSignatures.received_data | WebKit.Download::received-data} signal to track the progress.
|
|
3818
3823
|
* @read-only
|
|
3819
3824
|
* @default 1
|
|
@@ -3891,11 +3896,10 @@ export namespace WebKit {
|
|
|
3891
3896
|
get_elapsed_time(): number;
|
|
3892
3897
|
|
|
3893
3898
|
/**
|
|
3894
|
-
* Gets the value of the {@link WebKit.Download.estimated_progress} property.
|
|
3895
3899
|
* Gets the value of the {@link WebKit.Download.estimated_progress} property.
|
|
3896
3900
|
* You can monitor the estimated progress of the download operation by
|
|
3897
3901
|
* connecting to the notify::estimated-progress signal of `download`.
|
|
3898
|
-
* @returns an estimate of the
|
|
3902
|
+
* @returns an estimate of the percent complete for a download as a range from 0.0 to 1.0.
|
|
3899
3903
|
*/
|
|
3900
3904
|
get_estimated_progress(): number;
|
|
3901
3905
|
|
|
@@ -3969,7 +3973,7 @@ export namespace WebKit {
|
|
|
3969
3973
|
// Signal signatures
|
|
3970
3974
|
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
3971
3975
|
/**
|
|
3972
|
-
* Emitted when the
|
|
3976
|
+
* Emitted when the {@link WebKit.EditorState} is changed.
|
|
3973
3977
|
* @signal
|
|
3974
3978
|
* @since 2.44
|
|
3975
3979
|
* @run-last
|
|
@@ -4101,6 +4105,7 @@ export namespace WebKit {
|
|
|
4101
4105
|
* {@link WebKit.WebView} it's easier to use the {@link WebKit.WebView.favicon}
|
|
4102
4106
|
* property. See `webkit_web_view_get_favicon()` for more details.
|
|
4103
4107
|
* @signal
|
|
4108
|
+
* @deprecated since 2.54
|
|
4104
4109
|
* @run-last
|
|
4105
4110
|
*/
|
|
4106
4111
|
"favicon-changed": (page_uri: string, favicon_uri: string) => void;
|
|
@@ -4113,12 +4118,12 @@ export namespace WebKit {
|
|
|
4113
4118
|
/**
|
|
4114
4119
|
* Provides access to the icons associated with web sites.
|
|
4115
4120
|
*
|
|
4116
|
-
* WebKit will automatically look for available icons in
|
|
4121
|
+
* WebKit will automatically look for available icons in `<link>`
|
|
4117
4122
|
* elements on opened pages as well as an existing favicon.ico and
|
|
4118
4123
|
* load the images found into a memory cache if possible. That cache
|
|
4119
4124
|
* is frozen to an on-disk database for persistence.
|
|
4120
4125
|
*
|
|
4121
|
-
* If {@link
|
|
4126
|
+
* If {@link WebsiteDataManager.is_ephemeral} is `true`, new icons
|
|
4122
4127
|
* won't be added to the on-disk database and no existing icons will
|
|
4123
4128
|
* be deleted from it. Nevertheless, WebKit will still store them in
|
|
4124
4129
|
* the in-memory cache during the current execution.
|
|
@@ -4161,14 +4166,19 @@ export namespace WebKit {
|
|
|
4161
4166
|
* Asynchronously obtains a favicon image.
|
|
4162
4167
|
*
|
|
4163
4168
|
* Asynchronously obtains an image of the favicon for the
|
|
4164
|
-
* given page URI.
|
|
4165
|
-
*
|
|
4169
|
+
* given page URI. If the icon is already in the memory cache, its image data
|
|
4170
|
+
* is not read from the database again. The result is always delivered
|
|
4171
|
+
* asynchronously.
|
|
4166
4172
|
*
|
|
4167
4173
|
* This is an asynchronous method. When the operation is finished, callback will
|
|
4168
4174
|
* be invoked. You can then call `webkit_favicon_database_get_favicon_finish()`
|
|
4169
4175
|
* to get the result of the operation.
|
|
4176
|
+
*
|
|
4177
|
+
* New applications should use {@link FaviconDatabase.get_page_icons} and
|
|
4178
|
+
* {@link FaviconDatabase.get_page_icons_finish} instead.
|
|
4170
4179
|
* @param page_uri URI of the page for which we want to retrieve the favicon
|
|
4171
4180
|
* @param cancellable A {@link Gio.Cancellable} or `null`.
|
|
4181
|
+
* @deprecated since 2.54
|
|
4172
4182
|
*/
|
|
4173
4183
|
get_favicon(page_uri: string, cancellable: Gio.Cancellable | null): globalThis.Promise<Gdk.Texture>;
|
|
4174
4184
|
|
|
@@ -4176,15 +4186,20 @@ export namespace WebKit {
|
|
|
4176
4186
|
* Asynchronously obtains a favicon image.
|
|
4177
4187
|
*
|
|
4178
4188
|
* Asynchronously obtains an image of the favicon for the
|
|
4179
|
-
* given page URI.
|
|
4180
|
-
*
|
|
4189
|
+
* given page URI. If the icon is already in the memory cache, its image data
|
|
4190
|
+
* is not read from the database again. The result is always delivered
|
|
4191
|
+
* asynchronously.
|
|
4181
4192
|
*
|
|
4182
4193
|
* This is an asynchronous method. When the operation is finished, callback will
|
|
4183
4194
|
* be invoked. You can then call `webkit_favicon_database_get_favicon_finish()`
|
|
4184
4195
|
* to get the result of the operation.
|
|
4196
|
+
*
|
|
4197
|
+
* New applications should use {@link FaviconDatabase.get_page_icons} and
|
|
4198
|
+
* {@link FaviconDatabase.get_page_icons_finish} instead.
|
|
4185
4199
|
* @param page_uri URI of the page for which we want to retrieve the favicon
|
|
4186
4200
|
* @param cancellable A {@link Gio.Cancellable} or `null`.
|
|
4187
4201
|
* @param callback A {@link Gio.AsyncReadyCallback} to call when the request is satisfied or `null` if you don't care about the result.
|
|
4202
|
+
* @deprecated since 2.54
|
|
4188
4203
|
*/
|
|
4189
4204
|
get_favicon(page_uri: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
4190
4205
|
|
|
@@ -4192,22 +4207,31 @@ export namespace WebKit {
|
|
|
4192
4207
|
* Asynchronously obtains a favicon image.
|
|
4193
4208
|
*
|
|
4194
4209
|
* Asynchronously obtains an image of the favicon for the
|
|
4195
|
-
* given page URI.
|
|
4196
|
-
*
|
|
4210
|
+
* given page URI. If the icon is already in the memory cache, its image data
|
|
4211
|
+
* is not read from the database again. The result is always delivered
|
|
4212
|
+
* asynchronously.
|
|
4197
4213
|
*
|
|
4198
4214
|
* This is an asynchronous method. When the operation is finished, callback will
|
|
4199
4215
|
* be invoked. You can then call `webkit_favicon_database_get_favicon_finish()`
|
|
4200
4216
|
* to get the result of the operation.
|
|
4217
|
+
*
|
|
4218
|
+
* New applications should use {@link FaviconDatabase.get_page_icons} and
|
|
4219
|
+
* {@link FaviconDatabase.get_page_icons_finish} instead.
|
|
4201
4220
|
* @param page_uri URI of the page for which we want to retrieve the favicon
|
|
4202
4221
|
* @param cancellable A {@link Gio.Cancellable} or `null`.
|
|
4203
4222
|
* @param callback A {@link Gio.AsyncReadyCallback} to call when the request is satisfied or `null` if you don't care about the result.
|
|
4223
|
+
* @deprecated since 2.54
|
|
4204
4224
|
*/
|
|
4205
4225
|
get_favicon(page_uri: string, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<Gdk.Texture> | void;
|
|
4206
4226
|
|
|
4207
4227
|
/**
|
|
4208
4228
|
* Finishes an operation started with `webkit_favicon_database_get_favicon()`.
|
|
4229
|
+
*
|
|
4230
|
+
* New applications should use {@link FaviconDatabase.get_page_icons} and
|
|
4231
|
+
* {@link FaviconDatabase.get_page_icons_finish} instead.
|
|
4209
4232
|
* @param result A {@link Gio.AsyncResult} obtained from the {@link Gio.AsyncReadyCallback} passed to `webkit_favicon_database_get_favicon()`
|
|
4210
4233
|
* @returns a new favicon image, or `null` in case of error.
|
|
4234
|
+
* @deprecated since 2.54
|
|
4211
4235
|
* @throws GLib.Error
|
|
4212
4236
|
*/
|
|
4213
4237
|
get_favicon_finish(result: Gio.AsyncResult): Gdk.Texture;
|
|
@@ -4216,8 +4240,59 @@ export namespace WebKit {
|
|
|
4216
4240
|
* Obtains the URI of the favicon for the given `page_uri`.
|
|
4217
4241
|
* @param page_uri URI of the page containing the icon
|
|
4218
4242
|
* @returns a newly allocated URI for the favicon, or `null` if the database doesn't have a favicon for `page_uri`.
|
|
4243
|
+
* @deprecated since 2.54
|
|
4219
4244
|
*/
|
|
4220
4245
|
get_favicon_uri(page_uri: string): string;
|
|
4246
|
+
|
|
4247
|
+
/**
|
|
4248
|
+
* Obtains the set of icons for a page.
|
|
4249
|
+
*
|
|
4250
|
+
* Starts an asynchronous operation to obtain the set of icons cached in the database for a given
|
|
4251
|
+
* page URI. Available icons will be read from the database and provided as a {@link ImageList}
|
|
4252
|
+
* that can be retrieved using `webkit_favicon_database_get_page_icons_finish` in the completion
|
|
4253
|
+
* `callback`.
|
|
4254
|
+
* @param page_uri URI of the page to get icons for
|
|
4255
|
+
* @param cancellable A {@link Gio.Cancellable} or `null`
|
|
4256
|
+
* @since 2.54
|
|
4257
|
+
*/
|
|
4258
|
+
get_page_icons(page_uri: string, cancellable: Gio.Cancellable | null): globalThis.Promise<ImageList>;
|
|
4259
|
+
|
|
4260
|
+
/**
|
|
4261
|
+
* Obtains the set of icons for a page.
|
|
4262
|
+
*
|
|
4263
|
+
* Starts an asynchronous operation to obtain the set of icons cached in the database for a given
|
|
4264
|
+
* page URI. Available icons will be read from the database and provided as a {@link ImageList}
|
|
4265
|
+
* that can be retrieved using `webkit_favicon_database_get_page_icons_finish` in the completion
|
|
4266
|
+
* `callback`.
|
|
4267
|
+
* @param page_uri URI of the page to get icons for
|
|
4268
|
+
* @param cancellable A {@link Gio.Cancellable} or `null`
|
|
4269
|
+
* @param callback A {@link Gio.AsyncReadyCallback} to invoke when the request is satisfied or `null` to discard the result.
|
|
4270
|
+
* @since 2.54
|
|
4271
|
+
*/
|
|
4272
|
+
get_page_icons(page_uri: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
4273
|
+
|
|
4274
|
+
/**
|
|
4275
|
+
* Obtains the set of icons for a page.
|
|
4276
|
+
*
|
|
4277
|
+
* Starts an asynchronous operation to obtain the set of icons cached in the database for a given
|
|
4278
|
+
* page URI. Available icons will be read from the database and provided as a {@link ImageList}
|
|
4279
|
+
* that can be retrieved using `webkit_favicon_database_get_page_icons_finish` in the completion
|
|
4280
|
+
* `callback`.
|
|
4281
|
+
* @param page_uri URI of the page to get icons for
|
|
4282
|
+
* @param cancellable A {@link Gio.Cancellable} or `null`
|
|
4283
|
+
* @param callback A {@link Gio.AsyncReadyCallback} to invoke when the request is satisfied or `null` to discard the result.
|
|
4284
|
+
* @since 2.54
|
|
4285
|
+
*/
|
|
4286
|
+
get_page_icons(page_uri: string, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<ImageList> | void;
|
|
4287
|
+
|
|
4288
|
+
/**
|
|
4289
|
+
* Finishes an operation started with `webkit_favicon_database_get_page_icons`.
|
|
4290
|
+
* @param result A {@link Gio.AsyncResult} obtained from the {@link Gio.AsyncReadyCallback} passed to `webkit_favicon_database_get_page_icons`.
|
|
4291
|
+
* @returns the set of icons for the page, or `null` in case of error.
|
|
4292
|
+
* @since 2.54
|
|
4293
|
+
* @throws GLib.Error
|
|
4294
|
+
*/
|
|
4295
|
+
get_page_icons_finish(result: Gio.AsyncResult): ImageList;
|
|
4221
4296
|
}
|
|
4222
4297
|
|
|
4223
4298
|
|
|
@@ -4249,8 +4324,8 @@ export namespace WebKit {
|
|
|
4249
4324
|
* file type, WebKit will need to show a dialog to choose one or
|
|
4250
4325
|
* more files to be uploaded to the server along with the rest of the
|
|
4251
4326
|
* form data. For that to happen in a general way, instead of just
|
|
4252
|
-
* opening a {@link Gtk.FileChooserDialog} (which might be
|
|
4253
|
-
*
|
|
4327
|
+
* opening a {@link Gtk.FileChooserDialog} (which might not be desirable for
|
|
4328
|
+
* applications that prefer to use their own file chooser
|
|
4254
4329
|
* dialog), WebKit will fire the {@link WebKit.WebView.SignalSignatures.run_file_chooser | WebKit.WebView::run-file-chooser}
|
|
4255
4330
|
* signal with a {@link WebKit.FileChooserRequest} object, which will allow
|
|
4256
4331
|
* the client application to specify the files to be selected, to
|
|
@@ -4313,7 +4388,7 @@ export namespace WebKit {
|
|
|
4313
4388
|
|
|
4314
4389
|
/**
|
|
4315
4390
|
* A `null`-terminated array of strings containing the list of
|
|
4316
|
-
* selected files associated
|
|
4391
|
+
* selected files associated with the current request. See
|
|
4317
4392
|
* `webkit_file_chooser_request_get_selected_files()` for more details.
|
|
4318
4393
|
* @read-only
|
|
4319
4394
|
*/
|
|
@@ -4321,7 +4396,7 @@ export namespace WebKit {
|
|
|
4321
4396
|
|
|
4322
4397
|
/**
|
|
4323
4398
|
* A `null`-terminated array of strings containing the list of
|
|
4324
|
-
* selected files associated
|
|
4399
|
+
* selected files associated with the current request. See
|
|
4325
4400
|
* `webkit_file_chooser_request_get_selected_files()` for more details.
|
|
4326
4401
|
* @read-only
|
|
4327
4402
|
*/
|
|
@@ -4386,14 +4461,14 @@ export namespace WebKit {
|
|
|
4386
4461
|
*
|
|
4387
4462
|
* See `webkit_file_chooser_request_get_mime_types()` if you are
|
|
4388
4463
|
* interested in getting the list of accepted MIME types.
|
|
4389
|
-
* @returns a {@link Gtk.FileFilter} if a list of accepted MIME types is defined or `null` otherwise. The returned object is owned by WebKit should not be modified or freed.
|
|
4464
|
+
* @returns a {@link Gtk.FileFilter} if a list of accepted MIME types is defined or `null` otherwise. The returned object is owned by WebKit and should not be modified or freed.
|
|
4390
4465
|
*/
|
|
4391
4466
|
get_mime_types_filter(): Gtk.FileFilter;
|
|
4392
4467
|
|
|
4393
4468
|
/**
|
|
4394
4469
|
* Whether the file chooser should allow selecting multiple files.
|
|
4395
4470
|
*
|
|
4396
|
-
* Determine whether the file chooser associated
|
|
4471
|
+
* Determine whether the file chooser associated with this
|
|
4397
4472
|
* {@link WebKit.FileChooserRequest} should allow selecting multiple files,
|
|
4398
4473
|
* which depends on the HTML input element having a 'multiple'
|
|
4399
4474
|
* attribute defined.
|
|
@@ -4402,12 +4477,12 @@ export namespace WebKit {
|
|
|
4402
4477
|
get_select_multiple(): boolean;
|
|
4403
4478
|
|
|
4404
4479
|
/**
|
|
4405
|
-
* Get the list of selected files associated
|
|
4480
|
+
* Get the list of selected files associated with the request.
|
|
4406
4481
|
*
|
|
4407
|
-
* Get the list of selected files currently associated
|
|
4482
|
+
* Get the list of selected files currently associated with the
|
|
4408
4483
|
* request. Initially, the return value of this method contains any
|
|
4409
4484
|
* files selected in previous file chooser requests for this HTML
|
|
4410
|
-
* input element. Once webkit_file_chooser_request_select_files, the
|
|
4485
|
+
* input element. Once `webkit_file_chooser_request_select_files()` has been called, the
|
|
4411
4486
|
* value will reflect whatever files are given.
|
|
4412
4487
|
*
|
|
4413
4488
|
* This function should normally be called only before presenting the
|
|
@@ -4478,14 +4553,14 @@ export namespace WebKit {
|
|
|
4478
4553
|
* Controls text search in a {@link WebKit.WebView}.
|
|
4479
4554
|
*
|
|
4480
4555
|
* A {@link WebKit.FindController} is used to search text in a {@link WebKit.WebView}. You
|
|
4481
|
-
* can get a {@link WebKit.WebView}
|
|
4556
|
+
* can get a {@link WebKit.WebView}'s {@link WebKit.FindController} with
|
|
4482
4557
|
* `webkit_web_view_get_find_controller()`, and later use it to search
|
|
4483
4558
|
* for text using `webkit_find_controller_search()`, or get the
|
|
4484
4559
|
* number of matches using `webkit_find_controller_count_matches()`. The
|
|
4485
4560
|
* operations are asynchronous and trigger signals when ready, such as
|
|
4486
4561
|
* {@link WebKit.FindController.SignalSignatures.found_text | WebKit.FindController::found-text},
|
|
4487
4562
|
* {@link WebKit.FindController.SignalSignatures.failed_to_find_text | WebKit.FindController::failed-to-find-text} or
|
|
4488
|
-
* {@link WebKit.FindController.SignalSignatures.counted_matches | WebKit.FindController::counted-matches}
|
|
4563
|
+
* {@link WebKit.FindController.SignalSignatures.counted_matches | WebKit.FindController::counted-matches}.
|
|
4489
4564
|
* @gir-type Class
|
|
4490
4565
|
*/
|
|
4491
4566
|
class FindController extends GObject.Object {
|
|
@@ -4521,13 +4596,13 @@ export namespace WebKit {
|
|
|
4521
4596
|
get text(): string;
|
|
4522
4597
|
|
|
4523
4598
|
/**
|
|
4524
|
-
* The {@link WebKit.WebView} this controller is associated
|
|
4599
|
+
* The {@link WebKit.WebView} this controller is associated with.
|
|
4525
4600
|
* @construct-only
|
|
4526
4601
|
*/
|
|
4527
4602
|
get web_view(): WebView;
|
|
4528
4603
|
|
|
4529
4604
|
/**
|
|
4530
|
-
* The {@link WebKit.WebView} this controller is associated
|
|
4605
|
+
* The {@link WebKit.WebView} this controller is associated with.
|
|
4531
4606
|
* @construct-only
|
|
4532
4607
|
*/
|
|
4533
4608
|
get webView(): WebView;
|
|
@@ -4602,7 +4677,7 @@ export namespace WebKit {
|
|
|
4602
4677
|
get_search_text(): string;
|
|
4603
4678
|
|
|
4604
4679
|
/**
|
|
4605
|
-
* Gets the {@link WebKit.WebView} this find controller is associated
|
|
4680
|
+
* Gets the {@link WebKit.WebView} this find controller is associated with.
|
|
4606
4681
|
*
|
|
4607
4682
|
* Do
|
|
4608
4683
|
* not dereference the returned instance as it belongs to the
|
|
@@ -4717,10 +4792,10 @@ export namespace WebKit {
|
|
|
4717
4792
|
|
|
4718
4793
|
// Methods
|
|
4719
4794
|
/**
|
|
4720
|
-
* Get lists of the text fields contained in the form associated
|
|
4795
|
+
* Get lists of the text fields contained in the form associated with `request`.
|
|
4721
4796
|
*
|
|
4722
4797
|
* Get lists with the names and values of the text fields contained in
|
|
4723
|
-
* the form associated
|
|
4798
|
+
* the form associated with `request`. Note that names and values may be
|
|
4724
4799
|
* `null`.
|
|
4725
4800
|
*
|
|
4726
4801
|
* If this function returns `false`, then both `field_names` and
|
|
@@ -5190,6 +5265,267 @@ export namespace WebKit {
|
|
|
5190
5265
|
}
|
|
5191
5266
|
|
|
5192
5267
|
|
|
5268
|
+
namespace Image {
|
|
5269
|
+
// Signal signatures
|
|
5270
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
5271
|
+
"notify::height": (pspec: GObject.ParamSpec) => void;
|
|
5272
|
+
"notify::stride": (pspec: GObject.ParamSpec) => void;
|
|
5273
|
+
"notify::width": (pspec: GObject.ParamSpec) => void;
|
|
5274
|
+
}
|
|
5275
|
+
|
|
5276
|
+
// Constructor properties interface
|
|
5277
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps, Gio.Icon.ConstructorProps, Gio.LoadableIcon.ConstructorProps {
|
|
5278
|
+
height: number;
|
|
5279
|
+
stride: number;
|
|
5280
|
+
width: number;
|
|
5281
|
+
}
|
|
5282
|
+
}
|
|
5283
|
+
|
|
5284
|
+
/**
|
|
5285
|
+
* @gir-type Class
|
|
5286
|
+
*/
|
|
5287
|
+
class Image extends GObject.Object implements Gio.Icon, Gio.LoadableIcon {
|
|
5288
|
+
static $gtype: GObject.GType<Image>;
|
|
5289
|
+
|
|
5290
|
+
// Properties
|
|
5291
|
+
/**
|
|
5292
|
+
* The image height in pixels.
|
|
5293
|
+
* @since 2.52
|
|
5294
|
+
* @construct-only
|
|
5295
|
+
* @default 1
|
|
5296
|
+
*/
|
|
5297
|
+
get height(): number;
|
|
5298
|
+
|
|
5299
|
+
/**
|
|
5300
|
+
* The image stride, in bytes. This value indicates the amount of
|
|
5301
|
+
* memory occupied by each row of pixels in the image. Note that
|
|
5302
|
+
* the stride may be larger than the image width multiplied by the
|
|
5303
|
+
* amount of bytes used to represent each pixel.
|
|
5304
|
+
* @since 2.52
|
|
5305
|
+
* @construct-only
|
|
5306
|
+
* @default 4
|
|
5307
|
+
*/
|
|
5308
|
+
get stride(): number;
|
|
5309
|
+
|
|
5310
|
+
/**
|
|
5311
|
+
* The image width in pixels.
|
|
5312
|
+
* @since 2.52
|
|
5313
|
+
* @construct-only
|
|
5314
|
+
* @default 1
|
|
5315
|
+
*/
|
|
5316
|
+
get width(): number;
|
|
5317
|
+
|
|
5318
|
+
/**
|
|
5319
|
+
* Compile-time signal type information.
|
|
5320
|
+
*
|
|
5321
|
+
* This instance property is generated only for TypeScript type checking.
|
|
5322
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
5323
|
+
* @internal
|
|
5324
|
+
*/
|
|
5325
|
+
$signals: Image.SignalSignatures;
|
|
5326
|
+
|
|
5327
|
+
// Constructors
|
|
5328
|
+
constructor(properties?: Partial<Image.ConstructorProps>, ...args: any[]);
|
|
5329
|
+
|
|
5330
|
+
_init(...args: any[]): void;
|
|
5331
|
+
|
|
5332
|
+
// Signals
|
|
5333
|
+
/** @signal */
|
|
5334
|
+
connect<K extends keyof Image.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Image.SignalSignatures[K]>): number;
|
|
5335
|
+
|
|
5336
|
+
/** @signal */
|
|
5337
|
+
connect_after<K extends keyof Image.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Image.SignalSignatures[K]>): number;
|
|
5338
|
+
|
|
5339
|
+
/** @signal */
|
|
5340
|
+
emit<K extends keyof Image.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Image.SignalSignatures[K]>): void;
|
|
5341
|
+
|
|
5342
|
+
// Methods
|
|
5343
|
+
/**
|
|
5344
|
+
* Get the `image` pixel data as an array of bytes.
|
|
5345
|
+
*
|
|
5346
|
+
* The pixel format for the returned byte buffer is 32-bit per pixel
|
|
5347
|
+
* with 8-bit premultiplied alpha, in the preferred byte order for
|
|
5348
|
+
* the architecture.
|
|
5349
|
+
* @returns a {@link GLib.Bytes}
|
|
5350
|
+
* @since 2.52
|
|
5351
|
+
*/
|
|
5352
|
+
as_bytes(): GLib.Bytes;
|
|
5353
|
+
|
|
5354
|
+
/**
|
|
5355
|
+
* Get the `image` height in pixels.
|
|
5356
|
+
* @returns the image height
|
|
5357
|
+
* @since 2.52
|
|
5358
|
+
*/
|
|
5359
|
+
get_height(): number;
|
|
5360
|
+
|
|
5361
|
+
/**
|
|
5362
|
+
* Get the `image` stride.
|
|
5363
|
+
* @returns the image stride
|
|
5364
|
+
* @since 2.52
|
|
5365
|
+
*/
|
|
5366
|
+
get_stride(): number;
|
|
5367
|
+
|
|
5368
|
+
/**
|
|
5369
|
+
* Get the `image` width in pixels.
|
|
5370
|
+
* @returns the image width
|
|
5371
|
+
* @since 2.52
|
|
5372
|
+
*/
|
|
5373
|
+
get_width(): number;
|
|
5374
|
+
|
|
5375
|
+
/**
|
|
5376
|
+
* Checks if two icons are equal.
|
|
5377
|
+
* @param icon2 pointer to the second {@link Gio.Icon}.
|
|
5378
|
+
* @returns `true` if `icon1` is equal to `icon2`. `false` otherwise.
|
|
5379
|
+
*/
|
|
5380
|
+
equal(icon2: Gio.Icon | null): boolean;
|
|
5381
|
+
|
|
5382
|
+
/**
|
|
5383
|
+
* Gets a hash for an icon.
|
|
5384
|
+
* @returns a `guint` containing a hash for the `icon`, suitable for use in a {@link GLib.HashTable} or similar data structure.
|
|
5385
|
+
*/
|
|
5386
|
+
hash(): number;
|
|
5387
|
+
|
|
5388
|
+
/**
|
|
5389
|
+
* Serializes a {@link Gio.Icon} into a {@link GLib.Variant}. An equivalent {@link Gio.Icon} can be retrieved
|
|
5390
|
+
* back by calling `g_icon_deserialize()` on the returned value.
|
|
5391
|
+
* As serialization will avoid using raw icon data when possible, it only
|
|
5392
|
+
* makes sense to transfer the {@link GLib.Variant} between processes on the same machine,
|
|
5393
|
+
* (as opposed to over the network), and within the same file system namespace.
|
|
5394
|
+
* @returns a {@link GLib.Variant}, or `null` when serialization fails. The {@link GLib.Variant} will not be floating.
|
|
5395
|
+
* @since 2.38
|
|
5396
|
+
*/
|
|
5397
|
+
serialize(): GLib.Variant | null;
|
|
5398
|
+
|
|
5399
|
+
/**
|
|
5400
|
+
* Generates a textual representation of `icon` that can be used for
|
|
5401
|
+
* serialization such as when passing `icon` to a different process or
|
|
5402
|
+
* saving it to persistent storage. Use `g_icon_new_for_string()` to
|
|
5403
|
+
* get `icon` back from the returned string.
|
|
5404
|
+
*
|
|
5405
|
+
* The encoding of the returned string is proprietary to {@link Gio.Icon} except
|
|
5406
|
+
* in the following two cases
|
|
5407
|
+
*
|
|
5408
|
+
* - If `icon` is a {@link Gio.FileIcon}, the returned string is a native path
|
|
5409
|
+
* (such as `/path/to/my icon.png`) without escaping
|
|
5410
|
+
* if the {@link Gio.File} for `icon` is a native file. If the file is not
|
|
5411
|
+
* native, the returned string is the result of `g_file_get_uri()`
|
|
5412
|
+
* (such as `sftp://path/to/my%20icon.png`).
|
|
5413
|
+
*
|
|
5414
|
+
* - If `icon` is a {@link Gio.ThemedIcon} with exactly one name and no fallbacks,
|
|
5415
|
+
* the encoding is simply the name (such as `network-server`).
|
|
5416
|
+
* @returns An allocated NUL-terminated UTF8 string or `null` if `icon` can't be serialized. Use `g_free()` to free.
|
|
5417
|
+
* @since 2.20
|
|
5418
|
+
*/
|
|
5419
|
+
to_string(): string | null;
|
|
5420
|
+
|
|
5421
|
+
/**
|
|
5422
|
+
* Checks if two icons are equal.
|
|
5423
|
+
* @param icon2 pointer to the second {@link Gio.Icon}.
|
|
5424
|
+
* @virtual
|
|
5425
|
+
*/
|
|
5426
|
+
vfunc_equal(icon2: Gio.Icon | null): boolean;
|
|
5427
|
+
|
|
5428
|
+
/**
|
|
5429
|
+
* Gets a hash for an icon.
|
|
5430
|
+
* @virtual
|
|
5431
|
+
*/
|
|
5432
|
+
vfunc_hash(): number;
|
|
5433
|
+
|
|
5434
|
+
/**
|
|
5435
|
+
* Serializes a {@link Gio.Icon} into a {@link GLib.Variant}. An equivalent {@link Gio.Icon} can be retrieved
|
|
5436
|
+
* back by calling `g_icon_deserialize()` on the returned value.
|
|
5437
|
+
* As serialization will avoid using raw icon data when possible, it only
|
|
5438
|
+
* makes sense to transfer the {@link GLib.Variant} between processes on the same machine,
|
|
5439
|
+
* (as opposed to over the network), and within the same file system namespace.
|
|
5440
|
+
* @since 2.38
|
|
5441
|
+
* @virtual
|
|
5442
|
+
*/
|
|
5443
|
+
vfunc_serialize(): GLib.Variant | null;
|
|
5444
|
+
|
|
5445
|
+
/**
|
|
5446
|
+
* Serializes the `icon` into string tokens.
|
|
5447
|
+
* This is can be invoked when `g_icon_new_for_string()` is called.
|
|
5448
|
+
* @since 2.20
|
|
5449
|
+
* @virtual
|
|
5450
|
+
*/
|
|
5451
|
+
vfunc_to_tokens(): [boolean, string[], number];
|
|
5452
|
+
|
|
5453
|
+
/**
|
|
5454
|
+
* Loads a loadable icon. For the asynchronous version of this function,
|
|
5455
|
+
* see `g_loadable_icon_load_async()`.
|
|
5456
|
+
* @param size an integer.
|
|
5457
|
+
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
5458
|
+
* @returns a {@link Gio.InputStream} to read the icon from.
|
|
5459
|
+
* @throws GLib.Error
|
|
5460
|
+
*/
|
|
5461
|
+
load(size: number, cancellable: Gio.Cancellable | null): [Gio.InputStream, string];
|
|
5462
|
+
|
|
5463
|
+
/**
|
|
5464
|
+
* Loads an icon asynchronously. To finish this function, see
|
|
5465
|
+
* `g_loadable_icon_load_finish()`. For the synchronous, blocking
|
|
5466
|
+
* version of this function, see `g_loadable_icon_load()`.
|
|
5467
|
+
* @param size an integer.
|
|
5468
|
+
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
5469
|
+
*/
|
|
5470
|
+
load_async(size: number, cancellable: Gio.Cancellable | null): globalThis.Promise<[Gio.InputStream, string]>;
|
|
5471
|
+
|
|
5472
|
+
/**
|
|
5473
|
+
* Loads an icon asynchronously. To finish this function, see
|
|
5474
|
+
* `g_loadable_icon_load_finish()`. For the synchronous, blocking
|
|
5475
|
+
* version of this function, see `g_loadable_icon_load()`.
|
|
5476
|
+
* @param size an integer.
|
|
5477
|
+
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
5478
|
+
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
|
|
5479
|
+
*/
|
|
5480
|
+
load_async(size: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
5481
|
+
|
|
5482
|
+
/**
|
|
5483
|
+
* Loads an icon asynchronously. To finish this function, see
|
|
5484
|
+
* `g_loadable_icon_load_finish()`. For the synchronous, blocking
|
|
5485
|
+
* version of this function, see `g_loadable_icon_load()`.
|
|
5486
|
+
* @param size an integer.
|
|
5487
|
+
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
5488
|
+
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
|
|
5489
|
+
*/
|
|
5490
|
+
load_async(size: number, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<[Gio.InputStream, string]> | void;
|
|
5491
|
+
|
|
5492
|
+
/**
|
|
5493
|
+
* Finishes an asynchronous icon load started in `g_loadable_icon_load_async()`.
|
|
5494
|
+
* @param res a {@link Gio.AsyncResult}.
|
|
5495
|
+
* @returns a {@link Gio.InputStream} to read the icon from.
|
|
5496
|
+
* @throws GLib.Error
|
|
5497
|
+
*/
|
|
5498
|
+
load_finish(res: Gio.AsyncResult): [Gio.InputStream, string];
|
|
5499
|
+
|
|
5500
|
+
/**
|
|
5501
|
+
* Loads a loadable icon. For the asynchronous version of this function,
|
|
5502
|
+
* see `g_loadable_icon_load_async()`.
|
|
5503
|
+
* @param size an integer.
|
|
5504
|
+
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
5505
|
+
* @virtual
|
|
5506
|
+
*/
|
|
5507
|
+
vfunc_load(size: number, cancellable: Gio.Cancellable | null): [Gio.InputStream, string];
|
|
5508
|
+
|
|
5509
|
+
/**
|
|
5510
|
+
* Loads an icon asynchronously. To finish this function, see
|
|
5511
|
+
* `g_loadable_icon_load_finish()`. For the synchronous, blocking
|
|
5512
|
+
* version of this function, see `g_loadable_icon_load()`.
|
|
5513
|
+
* @param size an integer.
|
|
5514
|
+
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
5515
|
+
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied
|
|
5516
|
+
* @virtual
|
|
5517
|
+
*/
|
|
5518
|
+
vfunc_load_async(size: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
5519
|
+
|
|
5520
|
+
/**
|
|
5521
|
+
* Finishes an asynchronous icon load started in `g_loadable_icon_load_async()`.
|
|
5522
|
+
* @param res a {@link Gio.AsyncResult}.
|
|
5523
|
+
* @virtual
|
|
5524
|
+
*/
|
|
5525
|
+
vfunc_load_finish(res: Gio.AsyncResult): [Gio.InputStream, string];
|
|
5526
|
+
}
|
|
5527
|
+
|
|
5528
|
+
|
|
5193
5529
|
namespace InputMethodContext {
|
|
5194
5530
|
// Signal signatures
|
|
5195
5531
|
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
@@ -5739,7 +6075,7 @@ export namespace WebKit {
|
|
|
5739
6075
|
set dataDirectory(val: string);
|
|
5740
6076
|
|
|
5741
6077
|
/**
|
|
5742
|
-
* Whether to create an
|
|
6078
|
+
* Whether to create an ephemeral {@link WebKit.WebsiteDataManager} for the session.
|
|
5743
6079
|
* @since 2.40
|
|
5744
6080
|
* @construct-only
|
|
5745
6081
|
* @default false
|
|
@@ -5747,7 +6083,7 @@ export namespace WebKit {
|
|
|
5747
6083
|
get is_ephemeral(): boolean;
|
|
5748
6084
|
|
|
5749
6085
|
/**
|
|
5750
|
-
* Whether to create an
|
|
6086
|
+
* Whether to create an ephemeral {@link WebKit.WebsiteDataManager} for the session.
|
|
5751
6087
|
* @since 2.40
|
|
5752
6088
|
* @construct-only
|
|
5753
6089
|
* @default false
|
|
@@ -5811,7 +6147,7 @@ export namespace WebKit {
|
|
|
5811
6147
|
|
|
5812
6148
|
// Methods
|
|
5813
6149
|
/**
|
|
5814
|
-
* Ignore further TLS errors on the `host` for
|
|
6150
|
+
* Ignore further TLS errors on the `host` for `certificate`.
|
|
5815
6151
|
*
|
|
5816
6152
|
* If `host` is an IPv6 address, it should not be surrounded by brackets. This
|
|
5817
6153
|
* expectation matches `g_uri_get_host()`.
|
|
@@ -5824,7 +6160,7 @@ export namespace WebKit {
|
|
|
5824
6160
|
/**
|
|
5825
6161
|
* Requests downloading of the specified URI string.
|
|
5826
6162
|
*
|
|
5827
|
-
* The download operation will not be associated
|
|
6163
|
+
* The download operation will not be associated with any {@link WebKit.WebView},
|
|
5828
6164
|
* if you are interested in starting a download from a particular {@link WebKit.WebView} use
|
|
5829
6165
|
* `webkit_web_view_download_uri()` instead.
|
|
5830
6166
|
* @param uri the URI to download
|
|
@@ -5891,7 +6227,7 @@ export namespace WebKit {
|
|
|
5891
6227
|
/**
|
|
5892
6228
|
* Finish an asynchronous operation started with `webkit_network_session_get_itp_summary()`.
|
|
5893
6229
|
* @param result a {@link Gio.AsyncResult}
|
|
5894
|
-
* @returns a {@link GLib.List} of {@link WebKit.ITPThirdParty}. You must free the {@link GLib.List} with `g_list_free()` and unref the {@link WebKit.ITPThirdParty}
|
|
6230
|
+
* @returns a {@link GLib.List} of {@link WebKit.ITPThirdParty}. You must free the {@link GLib.List} with `g_list_free()` and unref the {@link WebKit.ITPThirdParty} objects with `webkit_itp_third_party_unref()` when you're done with them.
|
|
5895
6231
|
* @since 2.40
|
|
5896
6232
|
* @throws GLib.Error
|
|
5897
6233
|
*/
|
|
@@ -5934,7 +6270,7 @@ export namespace WebKit {
|
|
|
5934
6270
|
* When ITP is enabled resource load statistics
|
|
5935
6271
|
* are collected and used to decide whether to allow or block third-party cookies and prevent user tracking.
|
|
5936
6272
|
* Note that while ITP is enabled the accept policy {@link WebKit.CookieAcceptPolicy.NO_THIRD_PARTY} is ignored and
|
|
5937
|
-
* {@link WebKit.CookieAcceptPolicy.ALWAYS} is used instead. See also `
|
|
6273
|
+
* {@link WebKit.CookieAcceptPolicy.ALWAYS} is used instead. See also `webkit_cookie_manager_set_accept_policy()`.
|
|
5938
6274
|
* @param enabled value to set
|
|
5939
6275
|
* @since 2.40
|
|
5940
6276
|
*/
|
|
@@ -5944,7 +6280,7 @@ export namespace WebKit {
|
|
|
5944
6280
|
* Enable or disable persistent credential storage.
|
|
5945
6281
|
*
|
|
5946
6282
|
* When enabled, which is the default for
|
|
5947
|
-
* non-ephemeral sessions, the network process will try to read and write HTTP
|
|
6283
|
+
* non-ephemeral sessions, the network process will try to read and write HTTP authentication
|
|
5948
6284
|
* credentials from persistent storage.
|
|
5949
6285
|
* @param enabled value to set
|
|
5950
6286
|
* @since 2.40
|
|
@@ -5952,7 +6288,7 @@ export namespace WebKit {
|
|
|
5952
6288
|
set_persistent_credential_storage_enabled(enabled: boolean): void;
|
|
5953
6289
|
|
|
5954
6290
|
/**
|
|
5955
|
-
* Set the network proxy settings to be used by connections started in `session
|
|
6291
|
+
* Set the network proxy settings to be used by connections started in `session`.
|
|
5956
6292
|
*
|
|
5957
6293
|
* By default {@link WebKit.NetworkProxyMode.DEFAULT} is used, which means that the
|
|
5958
6294
|
* system settings will be used (g_proxy_resolver_get_default()).
|
|
@@ -6216,7 +6552,7 @@ export namespace WebKit {
|
|
|
6216
6552
|
*
|
|
6217
6553
|
* When a select element in a {@link WebKit.WebView} needs to display a dropdown menu, the signal
|
|
6218
6554
|
* {@link WebKit.WebView.SignalSignatures.show_option_menu | WebKit.WebView::show-option-menu} is emitted, providing a WebKitOptionMenu with the
|
|
6219
|
-
* {@link WebKit.OptionMenuItem}
|
|
6555
|
+
* {@link WebKit.OptionMenuItem} objects that should be displayed.
|
|
6220
6556
|
* @gir-type Class
|
|
6221
6557
|
* @since 2.18
|
|
6222
6558
|
*/
|
|
@@ -6291,7 +6627,7 @@ export namespace WebKit {
|
|
|
6291
6627
|
|
|
6292
6628
|
/**
|
|
6293
6629
|
* Gets the length of the `menu`.
|
|
6294
|
-
* @returns the number of {@link WebKit.OptionMenuItem}
|
|
6630
|
+
* @returns the number of {@link WebKit.OptionMenuItem} objects in `menu`
|
|
6295
6631
|
* @since 2.18
|
|
6296
6632
|
*/
|
|
6297
6633
|
get_n_items(): number;
|
|
@@ -6301,7 +6637,7 @@ export namespace WebKit {
|
|
|
6301
6637
|
*
|
|
6302
6638
|
* Selecting an item changes the
|
|
6303
6639
|
* text shown by the combo button, but it doesn't change the value of the element. You need to
|
|
6304
|
-
* explicitly activate the item with `
|
|
6640
|
+
* explicitly activate the item with `webkit_option_menu_activate_item()` or close the menu with
|
|
6305
6641
|
* `webkit_option_menu_close()` in which case the currently selected item will be activated.
|
|
6306
6642
|
* @param index the index of the item
|
|
6307
6643
|
* @since 2.18
|
|
@@ -6437,7 +6773,7 @@ export namespace WebKit {
|
|
|
6437
6773
|
download(): void;
|
|
6438
6774
|
|
|
6439
6775
|
/**
|
|
6440
|
-
*
|
|
6776
|
+
* Ignore the action which triggered this decision.
|
|
6441
6777
|
*
|
|
6442
6778
|
* Ignore the action which triggered this decision. For instance, for a
|
|
6443
6779
|
* {@link WebKit.ResponsePolicyDecision}, this would cancel the request.
|
|
@@ -6457,7 +6793,7 @@ export namespace WebKit {
|
|
|
6457
6793
|
* in the origin associated with the accepted navigation action.
|
|
6458
6794
|
*
|
|
6459
6795
|
* For example, a navigation decision to a video sharing website may
|
|
6460
|
-
* be accepted under the
|
|
6796
|
+
* be accepted under the proviso no movies are allowed to autoplay. The
|
|
6461
6797
|
* autoplay policy in this case would be set in the `policies`.
|
|
6462
6798
|
* @param policies a {@link WebKit.WebsitePolicies}
|
|
6463
6799
|
* @since 2.30
|
|
@@ -6625,8 +6961,8 @@ export namespace WebKit {
|
|
|
6625
6961
|
* is returned and the print operation starts. In this case, the {@link WebKit.PrintOperation.SignalSignatures.finished | WebKit.PrintOperation::finished}
|
|
6626
6962
|
* signal is emitted when the operation finishes. If an error occurs while printing, the signal
|
|
6627
6963
|
* {@link WebKit.PrintOperation.SignalSignatures.failed | WebKit.PrintOperation::failed} is emitted before {@link WebKit.PrintOperation.SignalSignatures.finished | WebKit.PrintOperation::finished}.
|
|
6628
|
-
* If the print dialog is not cancelled current print settings and page setup of `print_operation`
|
|
6629
|
-
* are updated with options selected by the user when Print button is pressed in print dialog.
|
|
6964
|
+
* If the print dialog is not cancelled, the current print settings and page setup of `print_operation`
|
|
6965
|
+
* are updated with the options selected by the user when the Print button is pressed in the print dialog.
|
|
6630
6966
|
* You can get the updated print settings and page setup by calling
|
|
6631
6967
|
* `webkit_print_operation_get_print_settings()` and `webkit_print_operation_get_page_setup()`
|
|
6632
6968
|
* after this method.
|
|
@@ -6725,7 +7061,7 @@ export namespace WebKit {
|
|
|
6725
7061
|
/**
|
|
6726
7062
|
* Return the {@link WebKit.URIRequest} associated with the response decision.
|
|
6727
7063
|
*
|
|
6728
|
-
* Modifications to the returned object are
|
|
7064
|
+
* Modifications to the returned object are *not* taken
|
|
6729
7065
|
* into account when the request is sent over the network, and is intended
|
|
6730
7066
|
* only to aid in evaluating whether a response decision should be taken or
|
|
6731
7067
|
* not. To modify requests before they are sent over the network the
|
|
@@ -6742,7 +7078,7 @@ export namespace WebKit {
|
|
|
6742
7078
|
|
|
6743
7079
|
/**
|
|
6744
7080
|
* Gets whether the request is the main frame main resource
|
|
6745
|
-
* @returns `true` if the request is the main frame main
|
|
7081
|
+
* @returns `true` if the request is the main frame main resource or `false` otherwise
|
|
6746
7082
|
* @since 2.40
|
|
6747
7083
|
*/
|
|
6748
7084
|
is_main_frame_main_resource(): boolean;
|
|
@@ -7102,7 +7438,7 @@ export namespace WebKit {
|
|
|
7102
7438
|
}
|
|
7103
7439
|
|
|
7104
7440
|
/**
|
|
7105
|
-
* Control the
|
|
7441
|
+
* Control the behavior of a {@link WebKit.WebView}.
|
|
7106
7442
|
*
|
|
7107
7443
|
* {@link WebKit.Settings} can be applied to a {@link WebKit.WebView} to control text charset,
|
|
7108
7444
|
* color, font sizes, printing mode, script support, loading of images and various
|
|
@@ -7124,7 +7460,7 @@ export namespace WebKit {
|
|
|
7124
7460
|
* Whether file access is allowed from file URLs. By default, when
|
|
7125
7461
|
* something is loaded in a {@link WebKit.WebView} using a file URI, cross
|
|
7126
7462
|
* origin requests to other file resources are not allowed. This
|
|
7127
|
-
* setting allows you to change that
|
|
7463
|
+
* setting allows you to change that behavior, so that it would be
|
|
7128
7464
|
* possible to do a XMLHttpRequest of a local file, for example.
|
|
7129
7465
|
* @since 2.10
|
|
7130
7466
|
* @default false
|
|
@@ -7136,7 +7472,7 @@ export namespace WebKit {
|
|
|
7136
7472
|
* Whether file access is allowed from file URLs. By default, when
|
|
7137
7473
|
* something is loaded in a {@link WebKit.WebView} using a file URI, cross
|
|
7138
7474
|
* origin requests to other file resources are not allowed. This
|
|
7139
|
-
* setting allows you to change that
|
|
7475
|
+
* setting allows you to change that behavior, so that it would be
|
|
7140
7476
|
* possible to do a XMLHttpRequest of a local file, for example.
|
|
7141
7477
|
* @since 2.10
|
|
7142
7478
|
* @default false
|
|
@@ -7147,7 +7483,7 @@ export namespace WebKit {
|
|
|
7147
7483
|
/**
|
|
7148
7484
|
* Determine whether it's allowed to create and run modal dialogs
|
|
7149
7485
|
* from a {@link WebKit.WebView} through JavaScript with
|
|
7150
|
-
*
|
|
7486
|
+
* `window.showModalDialog`. If it's set to
|
|
7151
7487
|
* `false`, the associated {@link WebKit.WebView} won't be able to create
|
|
7152
7488
|
* new modal dialogs, so not even the {@link WebKit.WebView.SignalSignatures.create | WebKit.WebView::create}
|
|
7153
7489
|
* signal will be emitted.
|
|
@@ -7159,7 +7495,7 @@ export namespace WebKit {
|
|
|
7159
7495
|
/**
|
|
7160
7496
|
* Determine whether it's allowed to create and run modal dialogs
|
|
7161
7497
|
* from a {@link WebKit.WebView} through JavaScript with
|
|
7162
|
-
*
|
|
7498
|
+
* `window.showModalDialog`. If it's set to
|
|
7163
7499
|
* `false`, the associated {@link WebKit.WebView} won't be able to create
|
|
7164
7500
|
* new modal dialogs, so not even the {@link WebKit.WebView.SignalSignatures.create | WebKit.WebView::create}
|
|
7165
7501
|
* signal will be emitted.
|
|
@@ -7172,7 +7508,7 @@ export namespace WebKit {
|
|
|
7172
7508
|
* Whether or not the top frame is allowed to navigate to data URLs. It is disabled by default
|
|
7173
7509
|
* due to the risk it poses when loading untrusted URLs, with data URLs being used in scamming
|
|
7174
7510
|
* and phishing attacks. In contrast, a scenario where it could be enabled could be an app that
|
|
7175
|
-
* embeds a WebView and you have control of the pages being
|
|
7511
|
+
* embeds a WebView and you have control of the pages being shown instead of a generic browser.
|
|
7176
7512
|
* @since 2.28
|
|
7177
7513
|
* @default false
|
|
7178
7514
|
*/
|
|
@@ -7183,7 +7519,7 @@ export namespace WebKit {
|
|
|
7183
7519
|
* Whether or not the top frame is allowed to navigate to data URLs. It is disabled by default
|
|
7184
7520
|
* due to the risk it poses when loading untrusted URLs, with data URLs being used in scamming
|
|
7185
7521
|
* and phishing attacks. In contrast, a scenario where it could be enabled could be an app that
|
|
7186
|
-
* embeds a WebView and you have control of the pages being
|
|
7522
|
+
* embeds a WebView and you have control of the pages being shown instead of a generic browser.
|
|
7187
7523
|
* @since 2.28
|
|
7188
7524
|
* @default false
|
|
7189
7525
|
*/
|
|
@@ -7195,7 +7531,7 @@ export namespace WebKit {
|
|
|
7195
7531
|
* should be allowed to access content from any origin. By default, when
|
|
7196
7532
|
* something is loaded in a {@link WebKit.WebView} using a file scheme URL,
|
|
7197
7533
|
* access to the local file system and arbitrary local storage is not
|
|
7198
|
-
* allowed. This setting allows you to change that
|
|
7534
|
+
* allowed. This setting allows you to change that behavior, so that
|
|
7199
7535
|
* it would be possible to use local storage, for example.
|
|
7200
7536
|
* @since 2.14
|
|
7201
7537
|
* @default false
|
|
@@ -7208,7 +7544,7 @@ export namespace WebKit {
|
|
|
7208
7544
|
* should be allowed to access content from any origin. By default, when
|
|
7209
7545
|
* something is loaded in a {@link WebKit.WebView} using a file scheme URL,
|
|
7210
7546
|
* access to the local file system and arbitrary local storage is not
|
|
7211
|
-
* allowed. This setting allows you to change that
|
|
7547
|
+
* allowed. This setting allows you to change that behavior, so that
|
|
7212
7548
|
* it would be possible to use local storage, for example.
|
|
7213
7549
|
* @since 2.14
|
|
7214
7550
|
* @default false
|
|
@@ -7794,9 +8130,9 @@ export namespace WebKit {
|
|
|
7794
8130
|
* Whether to enable Spatial Navigation. This feature consists in the ability
|
|
7795
8131
|
* to navigate between focusable elements in a Web page, such as hyperlinks
|
|
7796
8132
|
* and form controls, by using Left, Right, Up and Down arrow keys.
|
|
7797
|
-
* For example, if
|
|
8133
|
+
* For example, if a user presses the Right key, heuristics determine whether
|
|
7798
8134
|
* there is an element they might be trying to reach towards the right, and if
|
|
7799
|
-
* there are multiple elements, which element they probably
|
|
8135
|
+
* there are multiple elements, which element they probably want.
|
|
7800
8136
|
* @since 2.4
|
|
7801
8137
|
* @default false
|
|
7802
8138
|
*/
|
|
@@ -7807,9 +8143,9 @@ export namespace WebKit {
|
|
|
7807
8143
|
* Whether to enable Spatial Navigation. This feature consists in the ability
|
|
7808
8144
|
* to navigate between focusable elements in a Web page, such as hyperlinks
|
|
7809
8145
|
* and form controls, by using Left, Right, Up and Down arrow keys.
|
|
7810
|
-
* For example, if
|
|
8146
|
+
* For example, if a user presses the Right key, heuristics determine whether
|
|
7811
8147
|
* there is an element they might be trying to reach towards the right, and if
|
|
7812
|
-
* there are multiple elements, which element they probably
|
|
8148
|
+
* there are multiple elements, which element they probably want.
|
|
7813
8149
|
* @since 2.4
|
|
7814
8150
|
* @default false
|
|
7815
8151
|
*/
|
|
@@ -8023,7 +8359,7 @@ export namespace WebKit {
|
|
|
8023
8359
|
set mathFontFamily(val: string | null);
|
|
8024
8360
|
|
|
8025
8361
|
/**
|
|
8026
|
-
* List of media content types requiring hardware support, split by
|
|
8362
|
+
* List of media content types requiring hardware support, split by colons (:).
|
|
8027
8363
|
* For example: 'video/webm; codecs="vp*":video/mp4; codecs="avc*":video/* codecs="av1*"'.
|
|
8028
8364
|
* @since 2.30
|
|
8029
8365
|
* @default null
|
|
@@ -8032,7 +8368,7 @@ export namespace WebKit {
|
|
|
8032
8368
|
set media_content_types_requiring_hardware_support(val: string);
|
|
8033
8369
|
|
|
8034
8370
|
/**
|
|
8035
|
-
* List of media content types requiring hardware support, split by
|
|
8371
|
+
* List of media content types requiring hardware support, split by colons (:).
|
|
8036
8372
|
* For example: 'video/webm; codecs="vp*":video/mp4; codecs="avc*":video/* codecs="av1*"'.
|
|
8037
8373
|
* @since 2.30
|
|
8038
8374
|
* @default null
|
|
@@ -8199,8 +8535,8 @@ export namespace WebKit {
|
|
|
8199
8535
|
/**
|
|
8200
8536
|
* Allow customization of the WebRTC UDP ports range.
|
|
8201
8537
|
*
|
|
8202
|
-
* In some constrained environments where a firewall blocks UDP network traffic
|
|
8203
|
-
* specific port range, this
|
|
8538
|
+
* In some constrained environments where a firewall blocks UDP network traffic except on a
|
|
8539
|
+
* specific port range, this setting can be used to give hints to the WebRTC backend regarding
|
|
8204
8540
|
* which ports to allocate. The format is min-port:max-port, so for instance 20000:30000. The
|
|
8205
8541
|
* default empty string value means the OS will use no hints from the WebRTC backend. Using 0
|
|
8206
8542
|
* for one of the values is allowed and means the value is unspecified.
|
|
@@ -8213,8 +8549,8 @@ export namespace WebKit {
|
|
|
8213
8549
|
/**
|
|
8214
8550
|
* Allow customization of the WebRTC UDP ports range.
|
|
8215
8551
|
*
|
|
8216
|
-
* In some constrained environments where a firewall blocks UDP network traffic
|
|
8217
|
-
* specific port range, this
|
|
8552
|
+
* In some constrained environments where a firewall blocks UDP network traffic except on a
|
|
8553
|
+
* specific port range, this setting can be used to give hints to the WebRTC backend regarding
|
|
8218
8554
|
* which ports to allocate. The format is min-port:max-port, so for instance 20000:30000. The
|
|
8219
8555
|
* default empty string value means the OS will use no hints from the WebRTC backend. Using 0
|
|
8220
8556
|
* for one of the values is allowed and means the value is unspecified.
|
|
@@ -8311,7 +8647,7 @@ export namespace WebKit {
|
|
|
8311
8647
|
* Gets the list of available development WebKit features.
|
|
8312
8648
|
*
|
|
8313
8649
|
* The returned features are a subset of those returned by
|
|
8314
|
-
* {@link Settings.get_all_features}, and
|
|
8650
|
+
* {@link Settings.get_all_features}, and include those which
|
|
8315
8651
|
* web and WebKit developers might find useful, but in general should
|
|
8316
8652
|
* *not* be exposed to end users; see {@link FeatureStatus} for
|
|
8317
8653
|
* more details.
|
|
@@ -8323,7 +8659,7 @@ export namespace WebKit {
|
|
|
8323
8659
|
* Gets the list of available experimental WebKit features.
|
|
8324
8660
|
*
|
|
8325
8661
|
* The returned features are a subset of those returned by
|
|
8326
|
-
* {@link Settings.get_all_features}, and
|
|
8662
|
+
* {@link Settings.get_all_features}, and include those which
|
|
8327
8663
|
* certain applications may want to expose to end users; see
|
|
8328
8664
|
* {@link FeatureStatus} for more details.
|
|
8329
8665
|
* @since 2.42
|
|
@@ -8332,7 +8668,7 @@ export namespace WebKit {
|
|
|
8332
8668
|
|
|
8333
8669
|
// Methods
|
|
8334
8670
|
/**
|
|
8335
|
-
* Reads the contents of the given `group_name` from the given `key_file` and
|
|
8671
|
+
* Reads the contents of the given `group_name` from the given `key_file` and applies the value of
|
|
8336
8672
|
* each key/value to the corresponding property on the `settings`.
|
|
8337
8673
|
*
|
|
8338
8674
|
* Value types have to match with the corresponding setting property type and the group keys have to
|
|
@@ -8363,7 +8699,7 @@ export namespace WebKit {
|
|
|
8363
8699
|
|
|
8364
8700
|
/**
|
|
8365
8701
|
* Get the {@link WebKit.Settings.allow_top_navigation_to_data_urls} property.
|
|
8366
|
-
* @returns `true` If navigation to data URLs from the top frame is allowed or `false
|
|
8702
|
+
* @returns `true` If navigation to data URLs from the top frame is allowed or `false` otherwise.
|
|
8367
8703
|
* @since 2.28
|
|
8368
8704
|
*/
|
|
8369
8705
|
get_allow_top_navigation_to_data_urls(): boolean;
|
|
@@ -8433,7 +8769,7 @@ export namespace WebKit {
|
|
|
8433
8769
|
|
|
8434
8770
|
/**
|
|
8435
8771
|
* Get the {@link WebKit.Settings.enable_back_forward_navigation_gestures} property.
|
|
8436
|
-
* @returns `true` if horizontal swipe gesture will trigger back-forward
|
|
8772
|
+
* @returns `true` if horizontal swipe gesture will trigger back-forward navigation or `false` otherwise.
|
|
8437
8773
|
* @since 2.24
|
|
8438
8774
|
*/
|
|
8439
8775
|
get_enable_back_forward_navigation_gestures(): boolean;
|
|
@@ -8546,7 +8882,7 @@ export namespace WebKit {
|
|
|
8546
8882
|
|
|
8547
8883
|
/**
|
|
8548
8884
|
* Get the {@link WebKit.Settings.enable_page_cache} property.
|
|
8549
|
-
* @returns `true` if page cache enabled or `false` otherwise.
|
|
8885
|
+
* @returns `true` if page cache is enabled or `false` otherwise.
|
|
8550
8886
|
*/
|
|
8551
8887
|
get_enable_page_cache(): boolean;
|
|
8552
8888
|
|
|
@@ -8615,7 +8951,7 @@ export namespace WebKit {
|
|
|
8615
8951
|
|
|
8616
8952
|
/**
|
|
8617
8953
|
* Gets whether a feature is enabled.
|
|
8618
|
-
* @param feature the feature to
|
|
8954
|
+
* @param feature the feature to query.
|
|
8619
8955
|
* @returns Whether the feature is enabled.
|
|
8620
8956
|
* @since 2.42
|
|
8621
8957
|
*/
|
|
@@ -8636,7 +8972,7 @@ export namespace WebKit {
|
|
|
8636
8972
|
|
|
8637
8973
|
/**
|
|
8638
8974
|
* Get the {@link WebKit.Settings.javascript_can_open_windows_automatically} property.
|
|
8639
|
-
* @returns `true` If JavaScript can open
|
|
8975
|
+
* @returns `true` If JavaScript can open windows automatically or `false` otherwise.
|
|
8640
8976
|
*/
|
|
8641
8977
|
get_javascript_can_open_windows_automatically(): boolean;
|
|
8642
8978
|
|
|
@@ -8649,7 +8985,8 @@ export namespace WebKit {
|
|
|
8649
8985
|
|
|
8650
8986
|
/**
|
|
8651
8987
|
* Gets the {@link WebKit.Settings.math_font_family} property.
|
|
8652
|
-
* @returns The default font family used to display content marked with math font.
|
|
8988
|
+
* @returns The default font family used to display content marked with math font.
|
|
8989
|
+
* @since 2.52
|
|
8653
8990
|
*/
|
|
8654
8991
|
get_math_font_family(): string | null;
|
|
8655
8992
|
|
|
@@ -8668,7 +9005,7 @@ export namespace WebKit {
|
|
|
8668
9005
|
|
|
8669
9006
|
/**
|
|
8670
9007
|
* Get the {@link WebKit.Settings.media_playback_requires_user_gesture} property.
|
|
8671
|
-
* @returns `true` If
|
|
9008
|
+
* @returns `true` If a user gesture is needed to play or load media or `false` if no user gesture is needed.
|
|
8672
9009
|
*/
|
|
8673
9010
|
get_media_playback_requires_user_gesture(): boolean;
|
|
8674
9011
|
|
|
@@ -8912,7 +9249,7 @@ export namespace WebKit {
|
|
|
8912
9249
|
/**
|
|
8913
9250
|
* Set the {@link WebKit.Settings.enable_mock_capture_devices} property.
|
|
8914
9251
|
* @param enabled Value to be set
|
|
8915
|
-
* @since 2.
|
|
9252
|
+
* @since 2.24
|
|
8916
9253
|
*/
|
|
8917
9254
|
set_enable_mock_capture_devices(enabled: boolean): void;
|
|
8918
9255
|
|
|
@@ -9035,15 +9372,14 @@ export namespace WebKit {
|
|
|
9035
9372
|
|
|
9036
9373
|
/**
|
|
9037
9374
|
* Set the {@link WebKit.Settings.math_font_family} property.
|
|
9038
|
-
*
|
|
9039
|
-
* Since 2.52
|
|
9040
9375
|
* @param math_font_family the new default math font family
|
|
9376
|
+
* @since 2.52
|
|
9041
9377
|
*/
|
|
9042
9378
|
set_math_font_family(math_font_family: string | null): void;
|
|
9043
9379
|
|
|
9044
9380
|
/**
|
|
9045
9381
|
* Set the {@link WebKit.Settings.media_content_types_requiring_hardware_support} property.
|
|
9046
|
-
* @param content_types list of media content types requiring hardware support split by
|
|
9382
|
+
* @param content_types list of media content types requiring hardware support split by colons (:) or `null` to use the default value.
|
|
9047
9383
|
* @since 2.30
|
|
9048
9384
|
*/
|
|
9049
9385
|
set_media_content_types_requiring_hardware_support(content_types: string | null): void;
|
|
@@ -9106,10 +9442,10 @@ export namespace WebKit {
|
|
|
9106
9442
|
* Set the {@link WebKit.Settings.user_agent} property by appending the application details.
|
|
9107
9443
|
*
|
|
9108
9444
|
* Set the {@link WebKit.Settings.user_agent} property by appending the application details to the default user
|
|
9109
|
-
* agent. If no application name
|
|
9110
|
-
* the
|
|
9445
|
+
* agent. If no application name is given, the default user agent will be used and `application_version`
|
|
9446
|
+
* is ignored. If only the name is given, the default engine version is used with the given application name.
|
|
9111
9447
|
* @param application_name The application name used for the user agent or `null` to use the default user agent.
|
|
9112
|
-
* @param application_version The application version for the user agent or `null` to
|
|
9448
|
+
* @param application_version The application version for the user agent or `null` to use the default version.
|
|
9113
9449
|
*/
|
|
9114
9450
|
set_user_agent_with_application_details(application_name: string | null, application_version: string | null): void;
|
|
9115
9451
|
|
|
@@ -9477,10 +9813,10 @@ export namespace WebKit {
|
|
|
9477
9813
|
|
|
9478
9814
|
/**
|
|
9479
9815
|
* Get the request body.
|
|
9480
|
-
* @returns
|
|
9816
|
+
* @returns the body of the `request`.
|
|
9481
9817
|
* @since 2.40
|
|
9482
9818
|
*/
|
|
9483
|
-
get_http_body(): Gio.InputStream;
|
|
9819
|
+
get_http_body(): Gio.InputStream | null;
|
|
9484
9820
|
|
|
9485
9821
|
/**
|
|
9486
9822
|
* Get the {@link Soup.MessageHeaders} of the request.
|
|
@@ -9545,11 +9881,11 @@ export namespace WebKit {
|
|
|
9545
9881
|
* a {@link WebKit.URISchemeRequestCallback}. After that, when a URI response
|
|
9546
9882
|
* is made with that particular scheme, your callback will be
|
|
9547
9883
|
* called. There you will be able to provide more response parameters
|
|
9548
|
-
* when the methods and properties of a {@link WebKit.URISchemeRequest}
|
|
9884
|
+
* when the methods and properties of a {@link WebKit.URISchemeRequest} are not
|
|
9549
9885
|
* enough.
|
|
9550
9886
|
*
|
|
9551
9887
|
* When you finished setting up your {@link WebKit.URISchemeResponse}, call
|
|
9552
|
-
* `
|
|
9888
|
+
* `webkit_uri_scheme_request_finish_with_response()` with it to return the response.
|
|
9553
9889
|
* @gir-type Class
|
|
9554
9890
|
*/
|
|
9555
9891
|
class URISchemeResponse extends GObject.Object {
|
|
@@ -9723,7 +10059,7 @@ export namespace WebKit {
|
|
|
9723
10059
|
* `webkit_user_content_filter_store_fetch_identifiers_finish()` to obtain the list of
|
|
9724
10060
|
* filter identifiers.
|
|
9725
10061
|
* @param cancellable a {@link Gio.Cancellable} or `null` to ignore
|
|
9726
|
-
* @param callback a {@link Gio.AsyncReadyCallback} to call when the
|
|
10062
|
+
* @param callback a {@link Gio.AsyncReadyCallback} to call when the identifiers have been fetched
|
|
9727
10063
|
* @since 2.24
|
|
9728
10064
|
*/
|
|
9729
10065
|
fetch_identifiers(cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
@@ -9735,7 +10071,7 @@ export namespace WebKit {
|
|
|
9735
10071
|
* `webkit_user_content_filter_store_fetch_identifiers_finish()` to obtain the list of
|
|
9736
10072
|
* filter identifiers.
|
|
9737
10073
|
* @param cancellable a {@link Gio.Cancellable} or `null` to ignore
|
|
9738
|
-
* @param callback a {@link Gio.AsyncReadyCallback} to call when the
|
|
10074
|
+
* @param callback a {@link Gio.AsyncReadyCallback} to call when the identifiers have been fetched
|
|
9739
10075
|
* @since 2.24
|
|
9740
10076
|
*/
|
|
9741
10077
|
fetch_identifiers(cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<string[]> | void;
|
|
@@ -9861,10 +10197,10 @@ export namespace WebKit {
|
|
|
9861
10197
|
remove_finish(result: Gio.AsyncResult): boolean;
|
|
9862
10198
|
|
|
9863
10199
|
/**
|
|
9864
|
-
* Asynchronously save a content filter from a
|
|
10200
|
+
* Asynchronously save a content filter from a source rule set.
|
|
9865
10201
|
*
|
|
9866
10202
|
* Asynchronously save a content filter from a source rule set in the
|
|
9867
|
-
* [WebKit content
|
|
10203
|
+
* [WebKit content extensions JSON format](https://webkit.org/blog/3476/content-blockers-first-look/).
|
|
9868
10204
|
*
|
|
9869
10205
|
* The `identifier` can be used afterwards to refer to the filter when using
|
|
9870
10206
|
* `webkit_user_content_filter_store_remove()` and `webkit_user_content_filter_store_load()`.
|
|
@@ -9881,10 +10217,10 @@ export namespace WebKit {
|
|
|
9881
10217
|
save(identifier: string, source: GLib.Bytes | Uint8Array, cancellable: Gio.Cancellable | null): globalThis.Promise<UserContentFilter>;
|
|
9882
10218
|
|
|
9883
10219
|
/**
|
|
9884
|
-
* Asynchronously save a content filter from a
|
|
10220
|
+
* Asynchronously save a content filter from a source rule set.
|
|
9885
10221
|
*
|
|
9886
10222
|
* Asynchronously save a content filter from a source rule set in the
|
|
9887
|
-
* [WebKit content
|
|
10223
|
+
* [WebKit content extensions JSON format](https://webkit.org/blog/3476/content-blockers-first-look/).
|
|
9888
10224
|
*
|
|
9889
10225
|
* The `identifier` can be used afterwards to refer to the filter when using
|
|
9890
10226
|
* `webkit_user_content_filter_store_remove()` and `webkit_user_content_filter_store_load()`.
|
|
@@ -9902,10 +10238,10 @@ export namespace WebKit {
|
|
|
9902
10238
|
save(identifier: string, source: GLib.Bytes | Uint8Array, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
9903
10239
|
|
|
9904
10240
|
/**
|
|
9905
|
-
* Asynchronously save a content filter from a
|
|
10241
|
+
* Asynchronously save a content filter from a source rule set.
|
|
9906
10242
|
*
|
|
9907
10243
|
* Asynchronously save a content filter from a source rule set in the
|
|
9908
|
-
* [WebKit content
|
|
10244
|
+
* [WebKit content extensions JSON format](https://webkit.org/blog/3476/content-blockers-first-look/).
|
|
9909
10245
|
*
|
|
9910
10246
|
* The `identifier` can be used afterwards to refer to the filter when using
|
|
9911
10247
|
* `webkit_user_content_filter_store_remove()` and `webkit_user_content_filter_store_load()`.
|
|
@@ -9983,7 +10319,7 @@ export namespace WebKit {
|
|
|
9983
10319
|
save_from_file(identifier: string, file: Gio.File, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<UserContentFilter> | void;
|
|
9984
10320
|
|
|
9985
10321
|
/**
|
|
9986
|
-
* Finishes
|
|
10322
|
+
* Finishes an asynchronous filter save previously started with
|
|
9987
10323
|
* `webkit_user_content_filter_store_save_from_file()`.
|
|
9988
10324
|
* @param result a {@link Gio.AsyncResult}
|
|
9989
10325
|
* @returns a {@link WebKit.UserContentFilter}, or `null` if saving failed.
|
|
@@ -9999,8 +10335,8 @@ export namespace WebKit {
|
|
|
9999
10335
|
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
10000
10336
|
/**
|
|
10001
10337
|
* This signal is emitted when JavaScript in a web view calls
|
|
10002
|
-
*
|
|
10003
|
-
*
|
|
10338
|
+
* `window.webkit.messageHandlers.<name>.postMessage()`, after registering
|
|
10339
|
+
* `<name>` using
|
|
10004
10340
|
* `webkit_user_content_manager_register_script_message_handler()`
|
|
10005
10341
|
* @signal
|
|
10006
10342
|
* @since 2.8
|
|
@@ -10010,8 +10346,8 @@ export namespace WebKit {
|
|
|
10010
10346
|
"script-message-received": (value: JavaScriptCore.Value) => void;
|
|
10011
10347
|
/**
|
|
10012
10348
|
* This signal is emitted when JavaScript in a web view calls
|
|
10013
|
-
*
|
|
10014
|
-
*
|
|
10349
|
+
* `window.webkit.messageHandlers.<name>.postMessage()`, after registering
|
|
10350
|
+
* `<name>` using
|
|
10015
10351
|
* `webkit_user_content_manager_register_script_message_handler_with_reply()`
|
|
10016
10352
|
*
|
|
10017
10353
|
* The given `reply` can be used to send a return value with
|
|
@@ -10128,7 +10464,7 @@ export namespace WebKit {
|
|
|
10128
10464
|
*
|
|
10129
10465
|
* ```c
|
|
10130
10466
|
* WebKitWebView *view = webkit_web_view_new ();
|
|
10131
|
-
* WebKitUserContentManager *manager = webkit_web_view_get_user_content_manager ();
|
|
10467
|
+
* WebKitUserContentManager *manager = webkit_web_view_get_user_content_manager (view);
|
|
10132
10468
|
* g_signal_connect (manager, "script-message-received::foobar",
|
|
10133
10469
|
* G_CALLBACK (handle_script_message), NULL);
|
|
10134
10470
|
* webkit_user_content_manager_register_script_message_handler (manager, "foobar", "world");
|
|
@@ -10193,9 +10529,8 @@ export namespace WebKit {
|
|
|
10193
10529
|
|
|
10194
10530
|
/**
|
|
10195
10531
|
* Removes a filter from the given {@link WebKit.UserContentManager}.
|
|
10196
|
-
*
|
|
10197
|
-
* Since 2.24
|
|
10198
10532
|
* @param filter A {@link WebKit.UserContentFilter}
|
|
10533
|
+
* @since 2.24
|
|
10199
10534
|
*/
|
|
10200
10535
|
remove_filter(filter: UserContentFilter): void;
|
|
10201
10536
|
|
|
@@ -10541,21 +10876,21 @@ export namespace WebKit {
|
|
|
10541
10876
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
10542
10877
|
memory_pressure_settings: MemoryPressureSettings;
|
|
10543
10878
|
memoryPressureSettings: MemoryPressureSettings;
|
|
10544
|
-
time_zone_override: string;
|
|
10545
|
-
timeZoneOverride: string;
|
|
10879
|
+
time_zone_override: string | null;
|
|
10880
|
+
timeZoneOverride: string | null;
|
|
10546
10881
|
}
|
|
10547
10882
|
}
|
|
10548
10883
|
|
|
10549
10884
|
/**
|
|
10550
|
-
* Manages aspects common to all {@link WebKit.WebView}
|
|
10885
|
+
* Manages aspects common to all {@link WebKit.WebView} objects
|
|
10551
10886
|
*
|
|
10552
10887
|
* The {@link WebKit.WebContext} manages all aspects common to all
|
|
10553
|
-
* {@link WebKit.WebView}
|
|
10888
|
+
* {@link WebKit.WebView} objects.
|
|
10554
10889
|
*
|
|
10555
10890
|
* You can define the {@link WebKit.CacheModel} with
|
|
10556
10891
|
* `webkit_web_context_set_cache_model()`, depending on the needs of
|
|
10557
10892
|
* your application. You can access the {@link WebKit.SecurityManager} to specify
|
|
10558
|
-
* the
|
|
10893
|
+
* the behavior of your application regarding security using
|
|
10559
10894
|
* `webkit_web_context_get_security_manager()`.
|
|
10560
10895
|
*
|
|
10561
10896
|
* It is also possible to change your preferred language or enable
|
|
@@ -10605,7 +10940,7 @@ export namespace WebKit {
|
|
|
10605
10940
|
* @construct-only
|
|
10606
10941
|
* @default null
|
|
10607
10942
|
*/
|
|
10608
|
-
get time_zone_override(): string;
|
|
10943
|
+
get time_zone_override(): string | null;
|
|
10609
10944
|
|
|
10610
10945
|
/**
|
|
10611
10946
|
* The timezone override for this web context. Setting this property provides a better
|
|
@@ -10620,7 +10955,7 @@ export namespace WebKit {
|
|
|
10620
10955
|
* @construct-only
|
|
10621
10956
|
* @default null
|
|
10622
10957
|
*/
|
|
10623
|
-
get timeZoneOverride(): string;
|
|
10958
|
+
get timeZoneOverride(): string | null;
|
|
10624
10959
|
|
|
10625
10960
|
/**
|
|
10626
10961
|
* Compile-time signal type information.
|
|
@@ -10709,9 +11044,9 @@ export namespace WebKit {
|
|
|
10709
11044
|
get_spell_checking_enabled(): boolean;
|
|
10710
11045
|
|
|
10711
11046
|
/**
|
|
10712
|
-
* Get the
|
|
11047
|
+
* Get the list of spell checking languages.
|
|
10713
11048
|
*
|
|
10714
|
-
* Get the
|
|
11049
|
+
* Get the list of spell checking languages associated with
|
|
10715
11050
|
* `context`, or `null` if no languages have been previously set.
|
|
10716
11051
|
*
|
|
10717
11052
|
* See `webkit_web_context_set_spell_checking_languages()` for more
|
|
@@ -10722,9 +11057,10 @@ export namespace WebKit {
|
|
|
10722
11057
|
|
|
10723
11058
|
/**
|
|
10724
11059
|
* Get the {@link WebKit.WebContext.time_zone_override} property.
|
|
11060
|
+
* @returns the time zone override, or `null` if none was set.
|
|
10725
11061
|
* @since 2.38
|
|
10726
11062
|
*/
|
|
10727
|
-
get_time_zone_override(): string;
|
|
11063
|
+
get_time_zone_override(): string | null;
|
|
10728
11064
|
|
|
10729
11065
|
/**
|
|
10730
11066
|
* Sets initial desktop notification permissions for the `context`.
|
|
@@ -10761,7 +11097,7 @@ export namespace WebKit {
|
|
|
10761
11097
|
/**
|
|
10762
11098
|
* Register `scheme` in `context`.
|
|
10763
11099
|
*
|
|
10764
|
-
* Register `scheme` in `context`, so that when
|
|
11100
|
+
* Register `scheme` in `context`, so that when a URI request with `scheme` is made in the
|
|
10765
11101
|
* {@link WebKit.WebContext}, the {@link WebKit.URISchemeRequestCallback} registered will be called with a
|
|
10766
11102
|
* {@link WebKit.URISchemeRequest}.
|
|
10767
11103
|
* It is possible to handle URI scheme requests asynchronously, by calling `g_object_ref()` on the
|
|
@@ -10802,7 +11138,7 @@ export namespace WebKit {
|
|
|
10802
11138
|
register_uri_scheme(scheme: string, callback: URISchemeRequestCallback): void;
|
|
10803
11139
|
|
|
10804
11140
|
/**
|
|
10805
|
-
* Send `message` to all web process extensions associated
|
|
11141
|
+
* Send `message` to all web process extensions associated with `context`.
|
|
10806
11142
|
*
|
|
10807
11143
|
* If `message` is floating, it's consumed.
|
|
10808
11144
|
* @param message a {@link WebKit.UserMessage}
|
|
@@ -10832,7 +11168,7 @@ export namespace WebKit {
|
|
|
10832
11168
|
* Specifies a usage model for WebViews, which WebKit will use to
|
|
10833
11169
|
* determine its caching behavior. All web views follow the cache
|
|
10834
11170
|
* model. This cache model determines the RAM and disk space to use
|
|
10835
|
-
* for caching previously viewed content
|
|
11171
|
+
* for caching previously viewed content.
|
|
10836
11172
|
*
|
|
10837
11173
|
* Research indicates that users tend to browse within clusters of
|
|
10838
11174
|
* documents that hold resources in common, and to revisit previously
|
|
@@ -11141,7 +11477,7 @@ export namespace WebKit {
|
|
|
11141
11477
|
|
|
11142
11478
|
/**
|
|
11143
11479
|
* Whether the {@link WebKit.WebExtension} includes rules used for content modification or blocking.
|
|
11144
|
-
* See `
|
|
11480
|
+
* See `webkit_web_extension_get_has_content_modification_rules()` for more details.
|
|
11145
11481
|
* @since 2.52
|
|
11146
11482
|
* @read-only
|
|
11147
11483
|
* @default false
|
|
@@ -11150,7 +11486,7 @@ export namespace WebKit {
|
|
|
11150
11486
|
|
|
11151
11487
|
/**
|
|
11152
11488
|
* Whether the {@link WebKit.WebExtension} includes rules used for content modification or blocking.
|
|
11153
|
-
* See `
|
|
11489
|
+
* See `webkit_web_extension_get_has_content_modification_rules()` for more details.
|
|
11154
11490
|
* @since 2.52
|
|
11155
11491
|
* @read-only
|
|
11156
11492
|
* @default false
|
|
@@ -11327,8 +11663,8 @@ export namespace WebKit {
|
|
|
11327
11663
|
/**
|
|
11328
11664
|
* Returns the extension's default action icon image for the specified size.
|
|
11329
11665
|
* This icon serves as a default and should be used to represent the extension in contexts like action sheets or toolbars prior to
|
|
11330
|
-
* the extension being loaded into an extension context. Once the extension is loaded,
|
|
11331
|
-
*
|
|
11666
|
+
* the extension being loaded into an extension context. Once the extension is loaded, a tab-specific
|
|
11667
|
+
* icon may be used instead.
|
|
11332
11668
|
* The returned image will be the best match for the specified size that is available in the extension's action icon set. If no matching icon is available,
|
|
11333
11669
|
* the method will fall back to the extension's icon.
|
|
11334
11670
|
* @param width The width to use when looking up the icon.
|
|
@@ -11358,7 +11694,7 @@ export namespace WebKit {
|
|
|
11358
11694
|
*
|
|
11359
11695
|
* This label serves as a default and should be used to represent the extension in contexts like action sheets or toolbars prior to
|
|
11360
11696
|
* the extension being loaded into an extension context.
|
|
11361
|
-
* Once the extension is loaded,
|
|
11697
|
+
* Once the extension is loaded, a tab-specific label may be used instead.
|
|
11362
11698
|
* @returns the localized display action label, or `null` if there was no display action label specified.
|
|
11363
11699
|
* @since 2.52
|
|
11364
11700
|
*/
|
|
@@ -11404,9 +11740,7 @@ export namespace WebKit {
|
|
|
11404
11740
|
*
|
|
11405
11741
|
* These commands should be accessible via keyboard shortcuts,
|
|
11406
11742
|
* menu items, or other user interface elements provided
|
|
11407
|
-
* by the app.
|
|
11408
|
-
* via ``commands`` on an extension context, and
|
|
11409
|
-
* invoked via ``performCommand:``.
|
|
11743
|
+
* by the app.
|
|
11410
11744
|
* @returns `TRUE` if the extension contains one or more commands that can be performed by the user.
|
|
11411
11745
|
* @since 2.52
|
|
11412
11746
|
*/
|
|
@@ -11424,8 +11758,8 @@ export namespace WebKit {
|
|
|
11424
11758
|
* Get whether the extension has script or stylesheet content
|
|
11425
11759
|
* that can be injected into webpages.
|
|
11426
11760
|
*
|
|
11427
|
-
* Once the extension is loaded, use
|
|
11428
|
-
*
|
|
11761
|
+
* Once the extension is loaded, use
|
|
11762
|
+
* `webkit_web_extension_context_get_has_injected_content()`, as the injectable content
|
|
11429
11763
|
* can change after the extension is loaded.
|
|
11430
11764
|
* @returns `TRUE` if the extension has content that can be injected by matching against the extension's requested match patterns.
|
|
11431
11765
|
* @since 2.52
|
|
@@ -11437,7 +11771,7 @@ export namespace WebKit {
|
|
|
11437
11771
|
*
|
|
11438
11772
|
* The app should provide access to this page through a
|
|
11439
11773
|
* user interface element, which can be accessed via
|
|
11440
|
-
*
|
|
11774
|
+
* `webkit_web_extension_context_get_options_page_uri()`.
|
|
11441
11775
|
* @returns `TRUE` if the extension includes a dedicated options page where users can customize settings.
|
|
11442
11776
|
* @since 2.52
|
|
11443
11777
|
*/
|
|
@@ -11449,8 +11783,8 @@ export namespace WebKit {
|
|
|
11449
11783
|
*
|
|
11450
11784
|
* The app should prompt the user for permission to use
|
|
11451
11785
|
* the extension's new tab page as the default, which can
|
|
11452
|
-
* be accessed via
|
|
11453
|
-
*
|
|
11786
|
+
* be accessed via
|
|
11787
|
+
* `webkit_web_extension_context_get_override_new_tab_page_uri()`.
|
|
11454
11788
|
* @returns `TRUE` if the extension can specify a custom page that can be displayed when a new tab is opened in the app, instead of the default new tab page.
|
|
11455
11789
|
* @since 2.52
|
|
11456
11790
|
*/
|
|
@@ -11842,7 +12176,7 @@ export namespace WebKit {
|
|
|
11842
12176
|
detach(): void;
|
|
11843
12177
|
|
|
11844
12178
|
/**
|
|
11845
|
-
* Get the height that the inspector view when attached.
|
|
12179
|
+
* Get the height that the inspector view should have when attached.
|
|
11846
12180
|
*
|
|
11847
12181
|
* Get the height that the inspector view should have when
|
|
11848
12182
|
* it's attached. If the inspector view is not attached this
|
|
@@ -11864,7 +12198,7 @@ export namespace WebKit {
|
|
|
11864
12198
|
*
|
|
11865
12199
|
* This can be `null` if
|
|
11866
12200
|
* nothing has been loaded yet in the inspected view, if the inspector
|
|
11867
|
-
* has been closed or when inspected view was loaded from
|
|
12201
|
+
* has been closed or when the inspected view was loaded from an HTML string
|
|
11868
12202
|
* instead of a URI.
|
|
11869
12203
|
* @returns the URI that is currently being inspected or `null`
|
|
11870
12204
|
*/
|
|
@@ -12035,7 +12369,7 @@ export namespace WebKit {
|
|
|
12035
12369
|
/**
|
|
12036
12370
|
* Finish an asynchronous operation started with `webkit_web_resource_get_data()`.
|
|
12037
12371
|
* @param result a {@link Gio.AsyncResult}
|
|
12038
|
-
* @returns a string with the data of `resource`, or `null` in case of error.
|
|
12372
|
+
* @returns a string with the data of `resource`, or `null` in case of error. If `length` is not `null`, the size of the data will be assigned to it.
|
|
12039
12373
|
* @throws GLib.Error
|
|
12040
12374
|
*/
|
|
12041
12375
|
get_data_finish(result: Gio.AsyncResult): Uint8Array;
|
|
@@ -12056,25 +12390,15 @@ export namespace WebKit {
|
|
|
12056
12390
|
* The active URI might change during
|
|
12057
12391
|
* a load operation:
|
|
12058
12392
|
*
|
|
12059
|
-
*
|
|
12060
|
-
*
|
|
12061
|
-
*
|
|
12062
|
-
*
|
|
12063
|
-
*
|
|
12064
|
-
*
|
|
12065
|
-
*
|
|
12066
|
-
*
|
|
12067
|
-
*
|
|
12068
|
-
* <listitem><para>
|
|
12069
|
-
* In case of a server redirection, {@link WebKit.WebResource.SignalSignatures.sent_request | WebKit.WebResource::sent-request} signal
|
|
12070
|
-
* is emitted again with a redirected response, the active URI is the URI the request
|
|
12071
|
-
* was redirected to.
|
|
12072
|
-
* </para></listitem>
|
|
12073
|
-
* <listitem><para>
|
|
12074
|
-
* When the response is received from the server, the active URI is the final
|
|
12075
|
-
* one and it will not change again.
|
|
12076
|
-
* </para></listitem>
|
|
12077
|
-
* </orderedlist>
|
|
12393
|
+
* 1. When the resource load starts, the active URI is the requested URI
|
|
12394
|
+
* 2. When the initial request is sent to the server, {@link WebKit.WebResource.SignalSignatures.sent_request | WebKit.WebResource::sent-request}
|
|
12395
|
+
* signal is emitted without a redirected response, the active URI is the URI of
|
|
12396
|
+
* the request sent to the server.
|
|
12397
|
+
* 3. In case of a server redirection, {@link WebKit.WebResource.SignalSignatures.sent_request | WebKit.WebResource::sent-request} signal
|
|
12398
|
+
* is emitted again with a redirected response, the active URI is the URI the request
|
|
12399
|
+
* was redirected to.
|
|
12400
|
+
* 4. When the response is received from the server, the active URI is the final
|
|
12401
|
+
* one and it will not change again.
|
|
12078
12402
|
*
|
|
12079
12403
|
* You can monitor the active URI by connecting to the notify::uri
|
|
12080
12404
|
* signal of `resource`.
|
|
@@ -12107,7 +12431,7 @@ export namespace WebKit {
|
|
|
12107
12431
|
authenticate: (request: AuthenticationRequest) => boolean | void;
|
|
12108
12432
|
/**
|
|
12109
12433
|
* Emitted when closing a {@link WebKit.WebView} is requested. This occurs when a
|
|
12110
|
-
* call is made from JavaScript's
|
|
12434
|
+
* call is made from JavaScript's `window.close` function or
|
|
12111
12435
|
* after trying to close the `web_view` with `webkit_web_view_try_close()`.
|
|
12112
12436
|
* It is the owner's responsibility to handle this signal to hide or
|
|
12113
12437
|
* destroy the {@link WebKit.WebView}, if necessary.
|
|
@@ -12119,33 +12443,24 @@ export namespace WebKit {
|
|
|
12119
12443
|
* Emitted when a context menu is about to be displayed to give the application
|
|
12120
12444
|
* a chance to customize the proposed menu, prevent the menu from being displayed,
|
|
12121
12445
|
* or build its own context menu.
|
|
12122
|
-
*
|
|
12123
|
-
*
|
|
12124
|
-
* To customize the proposed menu you can use `webkit_context_menu_prepend()`,
|
|
12446
|
+
*
|
|
12447
|
+
* - To customize the proposed menu you can use `webkit_context_menu_prepend()`,
|
|
12125
12448
|
* `webkit_context_menu_append()` or `webkit_context_menu_insert()` to add new
|
|
12126
|
-
* {@link WebKit.ContextMenuItem}
|
|
12449
|
+
* {@link WebKit.ContextMenuItem} objects to `context_menu`, `webkit_context_menu_move_item()`
|
|
12127
12450
|
* to reorder existing items, or `webkit_context_menu_remove()` to remove an
|
|
12128
12451
|
* existing item. The signal handler should return `false`, and the menu represented
|
|
12129
12452
|
* by `context_menu` will be shown.
|
|
12130
|
-
*
|
|
12131
|
-
* <listitem><para>
|
|
12132
|
-
* To prevent the menu from being displayed you can just connect to this signal
|
|
12453
|
+
* - To prevent the menu from being displayed you can just connect to this signal
|
|
12133
12454
|
* and return `true` so that the proposed menu will not be shown.
|
|
12134
|
-
*
|
|
12135
|
-
* <listitem><para>
|
|
12136
|
-
* To build your own menu, you can remove all items from the proposed menu with
|
|
12455
|
+
* - To build your own menu, you can remove all items from the proposed menu with
|
|
12137
12456
|
* `webkit_context_menu_remove_all()`, add your own items and return `false` so
|
|
12138
12457
|
* that the menu will be shown. You can also ignore the proposed {@link WebKit.ContextMenu},
|
|
12139
|
-
* build your own
|
|
12140
|
-
*
|
|
12141
|
-
*
|
|
12142
|
-
* If you just want the default menu to be shown always, simply don't connect to this
|
|
12143
|
-
* signal because showing the proposed context menu is the default behaviour.
|
|
12144
|
-
* </para></listitem>
|
|
12145
|
-
* </itemizedlist>
|
|
12458
|
+
* build your own {@link Gtk.PopoverMenu} and return `true` to prevent the proposed menu from being shown.
|
|
12459
|
+
* - If you just want the default menu to be shown always, simply don't connect to this
|
|
12460
|
+
* signal because showing the proposed context menu is the default behavior.
|
|
12146
12461
|
*
|
|
12147
12462
|
* If the signal handler returns `false` the context menu represented by `context_menu`
|
|
12148
|
-
* will be shown, if it
|
|
12463
|
+
* will be shown, if it returns `true` the context menu will not be shown.
|
|
12149
12464
|
*
|
|
12150
12465
|
* The proposed {@link WebKit.ContextMenu} passed in `context_menu` argument is only valid
|
|
12151
12466
|
* during the signal emission.
|
|
@@ -12183,8 +12498,8 @@ export namespace WebKit {
|
|
|
12183
12498
|
/**
|
|
12184
12499
|
* This signal is emitted when WebKit is requesting the client to decide a policy
|
|
12185
12500
|
* decision, such as whether to navigate to a page, open a new window or whether or
|
|
12186
|
-
* not to download a resource. The {@link WebKit.
|
|
12187
|
-
* `decision` argument is a generic type, but should be
|
|
12501
|
+
* not to download a resource. The {@link WebKit.PolicyDecision} passed in the
|
|
12502
|
+
* `decision` argument is a generic type, but should be cast to a more
|
|
12188
12503
|
* specific type when making the decision. For example:
|
|
12189
12504
|
*
|
|
12190
12505
|
* ```c
|
|
@@ -12221,17 +12536,17 @@ export namespace WebKit {
|
|
|
12221
12536
|
* If the last reference is removed on a {@link WebKit.PolicyDecision} and no decision has been
|
|
12222
12537
|
* made explicitly, `webkit_policy_decision_use()` will be the default policy decision. The
|
|
12223
12538
|
* default signal handler will simply call `webkit_policy_decision_use()`. Only the first
|
|
12224
|
-
* policy decision chosen for a given {@link WebKit.PolicyDecision} will have any
|
|
12539
|
+
* policy decision chosen for a given {@link WebKit.PolicyDecision} will have any effect.
|
|
12225
12540
|
* @signal
|
|
12226
12541
|
* @run-last
|
|
12227
12542
|
*/
|
|
12228
12543
|
"decide-policy": (decision: PolicyDecision, decision_type: PolicyDecisionType) => boolean | void;
|
|
12229
12544
|
/**
|
|
12230
12545
|
* Emitted when JavaScript code calls
|
|
12231
|
-
*
|
|
12546
|
+
* `element.webkitRequestFullScreen`. If the
|
|
12232
12547
|
* signal is not handled the {@link WebKit.WebView} will proceed to full screen
|
|
12233
12548
|
* its top level window. This signal can be used by client code to
|
|
12234
|
-
* request permission to the user prior doing the full screen
|
|
12549
|
+
* request permission to the user prior to doing the full screen
|
|
12235
12550
|
* transition and eventually prepare the top-level window
|
|
12236
12551
|
* (e.g. hide some widgets that would otherwise be part of the
|
|
12237
12552
|
* full screen window).
|
|
@@ -12356,7 +12671,7 @@ export namespace WebKit {
|
|
|
12356
12671
|
* operations.
|
|
12357
12672
|
*
|
|
12358
12673
|
* A possible way to use this signal could be through a dialog
|
|
12359
|
-
* allowing the user decide what to do with the request:
|
|
12674
|
+
* allowing the user to decide what to do with the request:
|
|
12360
12675
|
*
|
|
12361
12676
|
* ```c
|
|
12362
12677
|
* static gboolean permission_request_cb (WebKitWebView *web_view,
|
|
@@ -12421,7 +12736,7 @@ export namespace WebKit {
|
|
|
12421
12736
|
*
|
|
12422
12737
|
* You can handle the query asynchronously by calling `webkit_permission_state_query_ref()` on
|
|
12423
12738
|
* `query` and returning `true`. If the last reference of `query` is removed and the query has not
|
|
12424
|
-
* been handled, the query result will be set to
|
|
12739
|
+
* been handled, the query result will be set to {@link WebKit.PermissionState.PROMPT}.
|
|
12425
12740
|
* @signal
|
|
12426
12741
|
* @since 2.40
|
|
12427
12742
|
* @run-last
|
|
@@ -12450,7 +12765,7 @@ export namespace WebKit {
|
|
|
12450
12765
|
/**
|
|
12451
12766
|
* Emitted after {@link WebKit.WebView.SignalSignatures.ready_to_show | WebKit.WebView::ready-to-show} on the newly
|
|
12452
12767
|
* created {@link WebKit.WebView} when JavaScript code calls
|
|
12453
|
-
*
|
|
12768
|
+
* `window.showModalDialog`. The purpose of
|
|
12454
12769
|
* this signal is to allow the client application to prepare the
|
|
12455
12770
|
* new view to behave as modal. Once the signal is emitted a new
|
|
12456
12771
|
* main loop will be run to block user interaction in the parent
|
|
@@ -12495,30 +12810,21 @@ export namespace WebKit {
|
|
|
12495
12810
|
*/
|
|
12496
12811
|
"run-file-chooser": (request: FileChooserRequest) => boolean | void;
|
|
12497
12812
|
/**
|
|
12498
|
-
* Emitted when JavaScript code calls
|
|
12499
|
-
*
|
|
12500
|
-
* or when
|
|
12813
|
+
* Emitted when JavaScript code calls `window.alert`,
|
|
12814
|
+
* `window.confirm` or `window.prompt`,
|
|
12815
|
+
* or when `onbeforeunload` event is fired.
|
|
12501
12816
|
* The `dialog` parameter should be used to build the dialog.
|
|
12502
12817
|
* If the signal is not handled a different dialog will be built and shown depending
|
|
12503
12818
|
* on the dialog type:
|
|
12504
|
-
*
|
|
12505
|
-
*
|
|
12506
|
-
*
|
|
12507
|
-
*
|
|
12508
|
-
*
|
|
12509
|
-
*
|
|
12510
|
-
* </para></listitem>
|
|
12511
|
-
* <listitem><para>
|
|
12512
|
-
* {@link WebKit.ScriptDialogType.PROMPT}: message dialog with OK and Cancel buttons and
|
|
12513
|
-
* a text entry with the default text.
|
|
12514
|
-
* </para></listitem>
|
|
12515
|
-
* <listitem><para>
|
|
12516
|
-
* {@link WebKit.ScriptDialogType.BEFORE_UNLOAD_CONFIRM}: message dialog with Stay and Leave buttons.
|
|
12517
|
-
* </para></listitem>
|
|
12518
|
-
* </itemizedlist>
|
|
12819
|
+
*
|
|
12820
|
+
* - {@link WebKit.ScriptDialogType.ALERT}: message dialog with a single Close button.
|
|
12821
|
+
* - {@link WebKit.ScriptDialogType.CONFIRM}: message dialog with OK and Cancel buttons.
|
|
12822
|
+
* - {@link WebKit.ScriptDialogType.PROMPT}: message dialog with OK and Cancel buttons and
|
|
12823
|
+
* a text entry with the default text.
|
|
12824
|
+
* - {@link WebKit.ScriptDialogType.BEFORE_UNLOAD_CONFIRM}: message dialog with Stay and Leave buttons.
|
|
12519
12825
|
*
|
|
12520
12826
|
* It is possible to handle the script dialog request asynchronously, by simply
|
|
12521
|
-
*
|
|
12827
|
+
* calling `webkit_script_dialog_ref()` on the `dialog` argument and calling
|
|
12522
12828
|
* `webkit_script_dialog_close()` when done.
|
|
12523
12829
|
* If the last reference is removed on a {@link WebKit.ScriptDialog} and the dialog has not been
|
|
12524
12830
|
* closed, `webkit_script_dialog_close()` will be called.
|
|
@@ -12546,7 +12852,7 @@ export namespace WebKit {
|
|
|
12546
12852
|
* menu.
|
|
12547
12853
|
* To handle this signal asynchronously you should keep a ref of the `menu`.
|
|
12548
12854
|
*
|
|
12549
|
-
* The default signal handler will pop up a
|
|
12855
|
+
* The default signal handler will pop up a {@link Gtk.Popover}.
|
|
12550
12856
|
* @signal
|
|
12551
12857
|
* @since 2.18
|
|
12552
12858
|
* @run-last
|
|
@@ -12603,8 +12909,10 @@ export namespace WebKit {
|
|
|
12603
12909
|
"notify::is-muted": (pspec: GObject.ParamSpec) => void;
|
|
12604
12910
|
"notify::is-playing-audio": (pspec: GObject.ParamSpec) => void;
|
|
12605
12911
|
"notify::is-web-process-responsive": (pspec: GObject.ParamSpec) => void;
|
|
12912
|
+
"notify::magnification": (pspec: GObject.ParamSpec) => void;
|
|
12606
12913
|
"notify::microphone-capture-state": (pspec: GObject.ParamSpec) => void;
|
|
12607
12914
|
"notify::network-session": (pspec: GObject.ParamSpec) => void;
|
|
12915
|
+
"notify::page-icons": (pspec: GObject.ParamSpec) => void;
|
|
12608
12916
|
"notify::page-id": (pspec: GObject.ParamSpec) => void;
|
|
12609
12917
|
"notify::related-view": (pspec: GObject.ParamSpec) => void;
|
|
12610
12918
|
"notify::settings": (pspec: GObject.ParamSpec) => void;
|
|
@@ -12679,10 +12987,13 @@ export namespace WebKit {
|
|
|
12679
12987
|
isPlayingAudio: boolean;
|
|
12680
12988
|
is_web_process_responsive: boolean;
|
|
12681
12989
|
isWebProcessResponsive: boolean;
|
|
12990
|
+
magnification: number;
|
|
12682
12991
|
microphone_capture_state: MediaCaptureState;
|
|
12683
12992
|
microphoneCaptureState: MediaCaptureState;
|
|
12684
12993
|
network_session: NetworkSession;
|
|
12685
12994
|
networkSession: NetworkSession;
|
|
12995
|
+
page_icons: ImageList | null;
|
|
12996
|
+
pageIcons: ImageList | null;
|
|
12686
12997
|
page_id: bigint | number;
|
|
12687
12998
|
pageId: bigint | number;
|
|
12688
12999
|
related_view: WebView;
|
|
@@ -12754,7 +13065,7 @@ export namespace WebKit {
|
|
|
12754
13065
|
* {@link WebKit.MediaCaptureState.NONE} or {@link WebKit.MediaCaptureState.MUTED}.
|
|
12755
13066
|
*
|
|
12756
13067
|
* If the capture state of the device is set to {@link WebKit.MediaCaptureState.NONE} the web-page
|
|
12757
|
-
* can still re-request the permission to the user. Permission
|
|
13068
|
+
* can still re-request the permission to the user. Permission decision caching is left to the
|
|
12758
13069
|
* application.
|
|
12759
13070
|
* @since 2.34
|
|
12760
13071
|
* @default WebKit.MediaCaptureState.NONE
|
|
@@ -12772,7 +13083,7 @@ export namespace WebKit {
|
|
|
12772
13083
|
* {@link WebKit.MediaCaptureState.NONE} or {@link WebKit.MediaCaptureState.MUTED}.
|
|
12773
13084
|
*
|
|
12774
13085
|
* If the capture state of the device is set to {@link WebKit.MediaCaptureState.NONE} the web-page
|
|
12775
|
-
* can still re-request the permission to the user. Permission
|
|
13086
|
+
* can still re-request the permission to the user. Permission decision caching is left to the
|
|
12776
13087
|
* application.
|
|
12777
13088
|
* @since 2.34
|
|
12778
13089
|
* @default WebKit.MediaCaptureState.NONE
|
|
@@ -12816,7 +13127,7 @@ export namespace WebKit {
|
|
|
12816
13127
|
|
|
12817
13128
|
/**
|
|
12818
13129
|
* Capture state of the display device. Whenever the user grants a media-request sent by the web
|
|
12819
|
-
* page, requesting screencasting capabilities (`navigator.mediaDevices.getDisplayMedia() this
|
|
13130
|
+
* page, requesting screencasting capabilities (`navigator.mediaDevices.getDisplayMedia()`) this
|
|
12820
13131
|
* property will be set to {@link WebKit.MediaCaptureState.ACTIVE}.
|
|
12821
13132
|
*
|
|
12822
13133
|
* The application can monitor this property and provide a visual indicator allowing to
|
|
@@ -12824,7 +13135,7 @@ export namespace WebKit {
|
|
|
12824
13135
|
* {@link WebKit.MediaCaptureState.NONE} or {@link WebKit.MediaCaptureState.MUTED}.
|
|
12825
13136
|
*
|
|
12826
13137
|
* If the capture state of the device is set to {@link WebKit.MediaCaptureState.NONE} the web-page
|
|
12827
|
-
* can still re-request the permission to the user. Permission
|
|
13138
|
+
* can still re-request the permission to the user. Permission decision caching is left to the
|
|
12828
13139
|
* application.
|
|
12829
13140
|
* @since 2.34
|
|
12830
13141
|
* @default WebKit.MediaCaptureState.NONE
|
|
@@ -12834,7 +13145,7 @@ export namespace WebKit {
|
|
|
12834
13145
|
|
|
12835
13146
|
/**
|
|
12836
13147
|
* Capture state of the display device. Whenever the user grants a media-request sent by the web
|
|
12837
|
-
* page, requesting screencasting capabilities (`navigator.mediaDevices.getDisplayMedia() this
|
|
13148
|
+
* page, requesting screencasting capabilities (`navigator.mediaDevices.getDisplayMedia()`) this
|
|
12838
13149
|
* property will be set to {@link WebKit.MediaCaptureState.ACTIVE}.
|
|
12839
13150
|
*
|
|
12840
13151
|
* The application can monitor this property and provide a visual indicator allowing to
|
|
@@ -12842,7 +13153,7 @@ export namespace WebKit {
|
|
|
12842
13153
|
* {@link WebKit.MediaCaptureState.NONE} or {@link WebKit.MediaCaptureState.MUTED}.
|
|
12843
13154
|
*
|
|
12844
13155
|
* If the capture state of the device is set to {@link WebKit.MediaCaptureState.NONE} the web-page
|
|
12845
|
-
* can still re-request the permission to the user. Permission
|
|
13156
|
+
* can still re-request the permission to the user. Permission decision caching is left to the
|
|
12846
13157
|
* application.
|
|
12847
13158
|
* @since 2.34
|
|
12848
13159
|
* @default WebKit.MediaCaptureState.NONE
|
|
@@ -12886,8 +13197,11 @@ export namespace WebKit {
|
|
|
12886
13197
|
get estimatedLoadProgress(): number;
|
|
12887
13198
|
|
|
12888
13199
|
/**
|
|
12889
|
-
* The favicon currently associated
|
|
13200
|
+
* The favicon currently associated with the {@link WebKit.WebView}.
|
|
12890
13201
|
* See `webkit_web_view_get_favicon()` for more details.
|
|
13202
|
+
*
|
|
13203
|
+
* New applications should use {@link WebView.page_icons} instead.
|
|
13204
|
+
* @deprecated since 2.54
|
|
12891
13205
|
* @read-only
|
|
12892
13206
|
*/
|
|
12893
13207
|
get favicon(): Gdk.Texture;
|
|
@@ -13007,7 +13321,7 @@ export namespace WebKit {
|
|
|
13007
13321
|
get isPlayingAudio(): boolean;
|
|
13008
13322
|
|
|
13009
13323
|
/**
|
|
13010
|
-
* Whether the web process currently associated
|
|
13324
|
+
* Whether the web process currently associated with the {@link WebKit.WebView} is responsive.
|
|
13011
13325
|
* @since 2.34
|
|
13012
13326
|
* @read-only
|
|
13013
13327
|
* @default true
|
|
@@ -13015,13 +13329,26 @@ export namespace WebKit {
|
|
|
13015
13329
|
get is_web_process_responsive(): boolean;
|
|
13016
13330
|
|
|
13017
13331
|
/**
|
|
13018
|
-
* Whether the web process currently associated
|
|
13332
|
+
* Whether the web process currently associated with the {@link WebKit.WebView} is responsive.
|
|
13019
13333
|
* @since 2.34
|
|
13020
13334
|
* @read-only
|
|
13021
13335
|
* @default true
|
|
13022
13336
|
*/
|
|
13023
13337
|
get isWebProcessResponsive(): boolean;
|
|
13024
13338
|
|
|
13339
|
+
/**
|
|
13340
|
+
* The magnification factor of the {@link WebKit.WebView} content.
|
|
13341
|
+
*
|
|
13342
|
+
* The magnification factor represents the visual scaling of the page (similar
|
|
13343
|
+
* to pinch-to-zoom). This is independent of the layout zoom level. Setting
|
|
13344
|
+
* the magnification factor scales the rendered page visually without affecting
|
|
13345
|
+
* page layout or text wrapping.
|
|
13346
|
+
* @since 2.54
|
|
13347
|
+
* @default 1
|
|
13348
|
+
*/
|
|
13349
|
+
get magnification(): number;
|
|
13350
|
+
set magnification(val: number);
|
|
13351
|
+
|
|
13025
13352
|
/**
|
|
13026
13353
|
* Capture state of the microphone device. Whenever the user grants a media-request sent by the web
|
|
13027
13354
|
* page, requesting audio capture capabilities (`navigator.mediaDevices.getUserMedia({audio:
|
|
@@ -13032,7 +13359,7 @@ export namespace WebKit {
|
|
|
13032
13359
|
* {@link WebKit.MediaCaptureState.NONE} or {@link WebKit.MediaCaptureState.MUTED}.
|
|
13033
13360
|
*
|
|
13034
13361
|
* If the capture state of the device is set to {@link WebKit.MediaCaptureState.NONE} the web-page
|
|
13035
|
-
* can still re-request the permission to the user. Permission
|
|
13362
|
+
* can still re-request the permission to the user. Permission decision caching is left to the
|
|
13036
13363
|
* application.
|
|
13037
13364
|
* @since 2.34
|
|
13038
13365
|
* @default WebKit.MediaCaptureState.NONE
|
|
@@ -13050,7 +13377,7 @@ export namespace WebKit {
|
|
|
13050
13377
|
* {@link WebKit.MediaCaptureState.NONE} or {@link WebKit.MediaCaptureState.MUTED}.
|
|
13051
13378
|
*
|
|
13052
13379
|
* If the capture state of the device is set to {@link WebKit.MediaCaptureState.NONE} the web-page
|
|
13053
|
-
* can still re-request the permission to the user. Permission
|
|
13380
|
+
* can still re-request the permission to the user. Permission decision caching is left to the
|
|
13054
13381
|
* application.
|
|
13055
13382
|
* @since 2.34
|
|
13056
13383
|
* @default WebKit.MediaCaptureState.NONE
|
|
@@ -13072,6 +13399,20 @@ export namespace WebKit {
|
|
|
13072
13399
|
*/
|
|
13073
13400
|
get networkSession(): NetworkSession;
|
|
13074
13401
|
|
|
13402
|
+
/**
|
|
13403
|
+
* The page icons (favicons) associated with the currently loaded content, if any.
|
|
13404
|
+
* @since 2.54
|
|
13405
|
+
* @read-only
|
|
13406
|
+
*/
|
|
13407
|
+
get page_icons(): ImageList | null;
|
|
13408
|
+
|
|
13409
|
+
/**
|
|
13410
|
+
* The page icons (favicons) associated with the currently loaded content, if any.
|
|
13411
|
+
* @since 2.54
|
|
13412
|
+
* @read-only
|
|
13413
|
+
*/
|
|
13414
|
+
get pageIcons(): ImageList | null;
|
|
13415
|
+
|
|
13075
13416
|
/**
|
|
13076
13417
|
* The identifier of the `WebKitWebPage` corresponding to the {@link WebKit.WebView}.
|
|
13077
13418
|
* @since 2.28
|
|
@@ -13423,7 +13764,7 @@ export namespace WebKit {
|
|
|
13423
13764
|
* Asynchronously call `body` with `arguments` in the script world with name `world_name` of the main frame current context in `web_view`.
|
|
13424
13765
|
* The `arguments` values must be one of the following types, or contain only the following GVariant types: number, string and dictionary.
|
|
13425
13766
|
* The result of the operation can be a Promise that will be properly passed to the callback.
|
|
13426
|
-
* If `world_name` is `null`, the default world is used. Any value that is not `null` is a
|
|
13767
|
+
* If `world_name` is `null`, the default world is used. Any value that is not `null` is a distinct world.
|
|
13427
13768
|
* The `source_uri` will be shown in exceptions and doesn't affect the behavior of the script.
|
|
13428
13769
|
* When not provided, the document URL is used.
|
|
13429
13770
|
*
|
|
@@ -13454,13 +13795,12 @@ export namespace WebKit {
|
|
|
13454
13795
|
* }
|
|
13455
13796
|
*
|
|
13456
13797
|
* if (jsc_value_is_number (value)) {
|
|
13457
|
-
* gint32 int_value =
|
|
13798
|
+
* gint32 int_value = jsc_value_to_int32 (value);
|
|
13458
13799
|
* JSCException *exception = jsc_context_get_exception (jsc_value_get_context (value));
|
|
13459
13800
|
* if (exception)
|
|
13460
13801
|
* g_warning ("Error running javascript: %s", jsc_exception_get_message (exception));
|
|
13461
13802
|
* else
|
|
13462
13803
|
* g_print ("Script result: %d\n", int_value);
|
|
13463
|
-
* g_free (str_value);
|
|
13464
13804
|
* } else {
|
|
13465
13805
|
* g_warning ("Error running javascript: unexpected return value");
|
|
13466
13806
|
* }
|
|
@@ -13475,7 +13815,7 @@ export namespace WebKit {
|
|
|
13475
13815
|
* g_variant_dict_insert (&dict, "count", "u", 42);
|
|
13476
13816
|
* GVariant *args = g_variant_dict_end (&dict);
|
|
13477
13817
|
* const gchar *body = "return new Promise((resolve) => { resolve(count); });";
|
|
13478
|
-
* webkit_web_view_call_async_javascript_function (web_view, body, -1,
|
|
13818
|
+
* webkit_web_view_call_async_javascript_function (web_view, body, -1, args, NULL, NULL, NULL, web_view_javascript_finished, NULL);
|
|
13479
13819
|
* }
|
|
13480
13820
|
* ```
|
|
13481
13821
|
* @param body the function body
|
|
@@ -13492,7 +13832,7 @@ export namespace WebKit {
|
|
|
13492
13832
|
* Asynchronously call `body` with `arguments` in the script world with name `world_name` of the main frame current context in `web_view`.
|
|
13493
13833
|
* The `arguments` values must be one of the following types, or contain only the following GVariant types: number, string and dictionary.
|
|
13494
13834
|
* The result of the operation can be a Promise that will be properly passed to the callback.
|
|
13495
|
-
* If `world_name` is `null`, the default world is used. Any value that is not `null` is a
|
|
13835
|
+
* If `world_name` is `null`, the default world is used. Any value that is not `null` is a distinct world.
|
|
13496
13836
|
* The `source_uri` will be shown in exceptions and doesn't affect the behavior of the script.
|
|
13497
13837
|
* When not provided, the document URL is used.
|
|
13498
13838
|
*
|
|
@@ -13523,13 +13863,12 @@ export namespace WebKit {
|
|
|
13523
13863
|
* }
|
|
13524
13864
|
*
|
|
13525
13865
|
* if (jsc_value_is_number (value)) {
|
|
13526
|
-
* gint32 int_value =
|
|
13866
|
+
* gint32 int_value = jsc_value_to_int32 (value);
|
|
13527
13867
|
* JSCException *exception = jsc_context_get_exception (jsc_value_get_context (value));
|
|
13528
13868
|
* if (exception)
|
|
13529
13869
|
* g_warning ("Error running javascript: %s", jsc_exception_get_message (exception));
|
|
13530
13870
|
* else
|
|
13531
13871
|
* g_print ("Script result: %d\n", int_value);
|
|
13532
|
-
* g_free (str_value);
|
|
13533
13872
|
* } else {
|
|
13534
13873
|
* g_warning ("Error running javascript: unexpected return value");
|
|
13535
13874
|
* }
|
|
@@ -13544,7 +13883,7 @@ export namespace WebKit {
|
|
|
13544
13883
|
* g_variant_dict_insert (&dict, "count", "u", 42);
|
|
13545
13884
|
* GVariant *args = g_variant_dict_end (&dict);
|
|
13546
13885
|
* const gchar *body = "return new Promise((resolve) => { resolve(count); });";
|
|
13547
|
-
* webkit_web_view_call_async_javascript_function (web_view, body, -1,
|
|
13886
|
+
* webkit_web_view_call_async_javascript_function (web_view, body, -1, args, NULL, NULL, NULL, web_view_javascript_finished, NULL);
|
|
13548
13887
|
* }
|
|
13549
13888
|
* ```
|
|
13550
13889
|
* @param body the function body
|
|
@@ -13562,7 +13901,7 @@ export namespace WebKit {
|
|
|
13562
13901
|
* Asynchronously call `body` with `arguments` in the script world with name `world_name` of the main frame current context in `web_view`.
|
|
13563
13902
|
* The `arguments` values must be one of the following types, or contain only the following GVariant types: number, string and dictionary.
|
|
13564
13903
|
* The result of the operation can be a Promise that will be properly passed to the callback.
|
|
13565
|
-
* If `world_name` is `null`, the default world is used. Any value that is not `null` is a
|
|
13904
|
+
* If `world_name` is `null`, the default world is used. Any value that is not `null` is a distinct world.
|
|
13566
13905
|
* The `source_uri` will be shown in exceptions and doesn't affect the behavior of the script.
|
|
13567
13906
|
* When not provided, the document URL is used.
|
|
13568
13907
|
*
|
|
@@ -13593,13 +13932,12 @@ export namespace WebKit {
|
|
|
13593
13932
|
* }
|
|
13594
13933
|
*
|
|
13595
13934
|
* if (jsc_value_is_number (value)) {
|
|
13596
|
-
* gint32 int_value =
|
|
13935
|
+
* gint32 int_value = jsc_value_to_int32 (value);
|
|
13597
13936
|
* JSCException *exception = jsc_context_get_exception (jsc_value_get_context (value));
|
|
13598
13937
|
* if (exception)
|
|
13599
13938
|
* g_warning ("Error running javascript: %s", jsc_exception_get_message (exception));
|
|
13600
13939
|
* else
|
|
13601
13940
|
* g_print ("Script result: %d\n", int_value);
|
|
13602
|
-
* g_free (str_value);
|
|
13603
13941
|
* } else {
|
|
13604
13942
|
* g_warning ("Error running javascript: unexpected return value");
|
|
13605
13943
|
* }
|
|
@@ -13614,7 +13952,7 @@ export namespace WebKit {
|
|
|
13614
13952
|
* g_variant_dict_insert (&dict, "count", "u", 42);
|
|
13615
13953
|
* GVariant *args = g_variant_dict_end (&dict);
|
|
13616
13954
|
* const gchar *body = "return new Promise((resolve) => { resolve(count); });";
|
|
13617
|
-
* webkit_web_view_call_async_javascript_function (web_view, body, -1,
|
|
13955
|
+
* webkit_web_view_call_async_javascript_function (web_view, body, -1, args, NULL, NULL, NULL, web_view_javascript_finished, NULL);
|
|
13618
13956
|
* }
|
|
13619
13957
|
* ```
|
|
13620
13958
|
* @param body the function body
|
|
@@ -13954,7 +14292,7 @@ export namespace WebKit {
|
|
|
13954
14292
|
|
|
13955
14293
|
/**
|
|
13956
14294
|
* Get the camera capture state of a {@link WebKit.WebView}.
|
|
13957
|
-
* @returns The {@link WebKit.MediaCaptureState} of the camera device. If {@link WebKit.Settings.
|
|
14295
|
+
* @returns The {@link WebKit.MediaCaptureState} of the camera device. If {@link WebKit.Settings.enable_media_stream} is `false`, this method will return {@link WebKit.MediaCaptureState.NONE}.
|
|
13958
14296
|
* @since 2.34
|
|
13959
14297
|
*/
|
|
13960
14298
|
get_camera_capture_state(): MediaCaptureState;
|
|
@@ -13980,7 +14318,7 @@ export namespace WebKit {
|
|
|
13980
14318
|
|
|
13981
14319
|
/**
|
|
13982
14320
|
* Get the display capture state of a {@link WebKit.WebView}.
|
|
13983
|
-
* @returns The {@link WebKit.MediaCaptureState} of the display device. If {@link WebKit.Settings.
|
|
14321
|
+
* @returns The {@link WebKit.MediaCaptureState} of the display device. If {@link WebKit.Settings.enable_media_stream} is `false`, this method will return {@link WebKit.MediaCaptureState.NONE}.
|
|
13984
14322
|
* @since 2.34
|
|
13985
14323
|
*/
|
|
13986
14324
|
get_display_capture_state(): MediaCaptureState;
|
|
@@ -13997,17 +14335,20 @@ export namespace WebKit {
|
|
|
13997
14335
|
*
|
|
13998
14336
|
* You can monitor the estimated progress of a load operation by
|
|
13999
14337
|
* connecting to the notify::estimated-load-progress signal of `web_view`.
|
|
14000
|
-
* @returns an estimate of the
|
|
14338
|
+
* @returns an estimate of the percent complete for a document load as a range from 0.0 to 1.0.
|
|
14001
14339
|
*/
|
|
14002
14340
|
get_estimated_load_progress(): number;
|
|
14003
14341
|
|
|
14004
14342
|
/**
|
|
14005
|
-
* Returns favicon currently associated
|
|
14343
|
+
* Returns favicon currently associated with `web_view`.
|
|
14006
14344
|
*
|
|
14007
|
-
* Returns favicon currently associated
|
|
14345
|
+
* Returns favicon currently associated with `web_view`, if any. You can
|
|
14008
14346
|
* connect to notify::favicon signal of `web_view` to be notified when
|
|
14009
14347
|
* the favicon is available.
|
|
14348
|
+
*
|
|
14349
|
+
* New applications should use {@link WebView.get_page_icons} instead.
|
|
14010
14350
|
* @returns the favicon image or `null` if there's no icon associated with `web_view`.
|
|
14351
|
+
* @deprecated since 2.54
|
|
14011
14352
|
*/
|
|
14012
14353
|
get_favicon(): Gdk.Texture;
|
|
14013
14354
|
|
|
@@ -14016,7 +14357,7 @@ export namespace WebKit {
|
|
|
14016
14357
|
*
|
|
14017
14358
|
* Gets the {@link WebKit.FindController} that will allow the caller to query
|
|
14018
14359
|
* the {@link WebKit.WebView} for the text to look for.
|
|
14019
|
-
* @returns the {@link WebKit.FindController} associated
|
|
14360
|
+
* @returns the {@link WebKit.FindController} associated with this particular {@link WebKit.WebView}.
|
|
14020
14361
|
*/
|
|
14021
14362
|
get_find_controller(): FindController;
|
|
14022
14363
|
|
|
@@ -14030,14 +14371,14 @@ export namespace WebKit {
|
|
|
14030
14371
|
get_input_method_context(): InputMethodContext | null;
|
|
14031
14372
|
|
|
14032
14373
|
/**
|
|
14033
|
-
* Get the {@link WebKit.WebInspector} associated
|
|
14374
|
+
* Get the {@link WebKit.WebInspector} associated with `web_view`
|
|
14034
14375
|
* @returns the {@link WebKit.WebInspector} of `web_view`
|
|
14035
14376
|
*/
|
|
14036
14377
|
get_inspector(): WebInspector;
|
|
14037
14378
|
|
|
14038
14379
|
/**
|
|
14039
14380
|
* Gets the mute state of `web_view`.
|
|
14040
|
-
* @returns `true` if `web_view` audio is muted or `false`
|
|
14381
|
+
* @returns `true` if `web_view` audio is muted or `false` if audio is not muted.
|
|
14041
14382
|
* @since 2.30
|
|
14042
14383
|
*/
|
|
14043
14384
|
get_is_muted(): boolean;
|
|
@@ -14049,6 +14390,17 @@ export namespace WebKit {
|
|
|
14049
14390
|
*/
|
|
14050
14391
|
get_is_web_process_responsive(): boolean;
|
|
14051
14392
|
|
|
14393
|
+
/**
|
|
14394
|
+
* Get the magnification factor of `web_view`.
|
|
14395
|
+
*
|
|
14396
|
+
* The magnification factor represents the visual scaling of the page (similar
|
|
14397
|
+
* to pinch-to-zoom). This is independent of the layout zoom level (which is
|
|
14398
|
+
* obtained with `webkit_web_view_get_zoom_level()`).
|
|
14399
|
+
* @returns the current magnification factor of `web_view`
|
|
14400
|
+
* @since 2.54
|
|
14401
|
+
*/
|
|
14402
|
+
get_magnification(): number;
|
|
14403
|
+
|
|
14052
14404
|
/**
|
|
14053
14405
|
* Return the main resource of `web_view`.
|
|
14054
14406
|
* @returns the main {@link WebKit.WebResource} of the view or `null` if nothing has been loaded.
|
|
@@ -14057,18 +14409,29 @@ export namespace WebKit {
|
|
|
14057
14409
|
|
|
14058
14410
|
/**
|
|
14059
14411
|
* Get the microphone capture state of a {@link WebKit.WebView}.
|
|
14060
|
-
* @returns The {@link WebKit.MediaCaptureState} of the microphone device. If {@link WebKit.Settings.
|
|
14412
|
+
* @returns The {@link WebKit.MediaCaptureState} of the microphone device. If {@link WebKit.Settings.enable_media_stream} is `false`, this method will return {@link WebKit.MediaCaptureState.NONE}.
|
|
14061
14413
|
* @since 2.34
|
|
14062
14414
|
*/
|
|
14063
14415
|
get_microphone_capture_state(): MediaCaptureState;
|
|
14064
14416
|
|
|
14065
14417
|
/**
|
|
14066
|
-
* Get the {@link WebKit.NetworkSession} associated
|
|
14418
|
+
* Get the {@link WebKit.NetworkSession} associated with `web_view`.
|
|
14067
14419
|
* @returns a {@link WebKit.NetworkSession}
|
|
14068
14420
|
* @since 2.40
|
|
14069
14421
|
*/
|
|
14070
14422
|
get_network_session(): NetworkSession;
|
|
14071
14423
|
|
|
14424
|
+
/**
|
|
14425
|
+
* Returns the page icons for the content loaded in the web view.
|
|
14426
|
+
*
|
|
14427
|
+
* Gets the page icons associated with the content currently loaded in the
|
|
14428
|
+
* `web_view`, if any, as a {@link ImageList}. Changes to the page icons
|
|
14429
|
+
* can be observed by connecting to the `notify::page-icons` signal.
|
|
14430
|
+
* @returns a list of icons, or `null` if there are no icons for the content loaded in `web_view`.
|
|
14431
|
+
* @since 2.54
|
|
14432
|
+
*/
|
|
14433
|
+
get_page_icons(): ImageList | null;
|
|
14434
|
+
|
|
14072
14435
|
/**
|
|
14073
14436
|
* Get the identifier of the `WebKitWebPage` corresponding to
|
|
14074
14437
|
* the {@link WebKit.WebView}
|
|
@@ -14095,9 +14458,9 @@ export namespace WebKit {
|
|
|
14095
14458
|
* the desired preferences, and then replace the existing `web_view`
|
|
14096
14459
|
* settings with `webkit_web_view_set_settings()` or get the existing
|
|
14097
14460
|
* `web_view` settings and update it directly. {@link WebKit.Settings} objects
|
|
14098
|
-
* can be shared by multiple {@link WebKit.WebView}
|
|
14461
|
+
* can be shared by multiple {@link WebKit.WebView} objects, so modifying
|
|
14099
14462
|
* the settings of a {@link WebKit.WebView} would affect other
|
|
14100
|
-
* {@link WebKit.WebView}
|
|
14463
|
+
* {@link WebKit.WebView} objects using the same {@link WebKit.Settings}.
|
|
14101
14464
|
* @returns the {@link WebKit.Settings} attached to `web_view`
|
|
14102
14465
|
*/
|
|
14103
14466
|
get_settings(): Settings;
|
|
@@ -14206,50 +14569,30 @@ export namespace WebKit {
|
|
|
14206
14569
|
* The active URI might change during
|
|
14207
14570
|
* a load operation:
|
|
14208
14571
|
*
|
|
14209
|
-
*
|
|
14210
|
-
*
|
|
14211
|
-
*
|
|
14212
|
-
*
|
|
14213
|
-
*
|
|
14214
|
-
*
|
|
14215
|
-
*
|
|
14216
|
-
*
|
|
14217
|
-
*
|
|
14218
|
-
*
|
|
14219
|
-
*
|
|
14220
|
-
*
|
|
14221
|
-
*
|
|
14222
|
-
*
|
|
14223
|
-
*
|
|
14224
|
-
*
|
|
14225
|
-
*
|
|
14226
|
-
*
|
|
14227
|
-
*
|
|
14228
|
-
*
|
|
14229
|
-
*
|
|
14230
|
-
*
|
|
14231
|
-
*
|
|
14232
|
-
*
|
|
14233
|
-
* <listitem><para>
|
|
14234
|
-
* If the load operation was started by
|
|
14235
|
-
* `webkit_web_view_go_to_back_forward_list_item()`, the requested URI
|
|
14236
|
-
* is the opriginal URI of the given {@link WebKit.BackForwardListItem}.
|
|
14237
|
-
* </para></listitem>
|
|
14238
|
-
* </itemizedlist>
|
|
14239
|
-
* </para></listitem>
|
|
14240
|
-
* <listitem><para>
|
|
14241
|
-
* If there is a server redirection during the load operation,
|
|
14242
|
-
* the active URI is the redirected URI. When the signal
|
|
14243
|
-
* {@link WebKit.WebView.SignalSignatures.load_changed | WebKit.WebView::load-changed} is emitted with {@link WebKit.LoadEvent.REDIRECTED}
|
|
14244
|
-
* event, the active URI is already updated to the redirected URI.
|
|
14245
|
-
* </para></listitem>
|
|
14246
|
-
* <listitem><para>
|
|
14247
|
-
* When the signal {@link WebKit.WebView.SignalSignatures.load_changed | WebKit.WebView::load-changed} is emitted
|
|
14248
|
-
* with {@link WebKit.LoadEvent.COMMITTED} event, the active URI is the final
|
|
14249
|
-
* one and it will not change unless a new load operation is started
|
|
14250
|
-
* or a navigation action within the same page is performed.
|
|
14251
|
-
* </para></listitem>
|
|
14252
|
-
* </orderedlist>
|
|
14572
|
+
* 1. When nothing has been loaded yet on `web_view` the active URI is `null`.
|
|
14573
|
+
* 2. When a new load operation starts the active URI is the requested URI:
|
|
14574
|
+
*
|
|
14575
|
+
* - If the load operation was started by `webkit_web_view_load_uri()`,
|
|
14576
|
+
* the requested URI is the given one.
|
|
14577
|
+
* - If the load operation was started by `webkit_web_view_load_html()`,
|
|
14578
|
+
* the requested URI is "about:blank".
|
|
14579
|
+
* - If the load operation was started by `webkit_web_view_load_alternate_html()`,
|
|
14580
|
+
* the requested URI is content URI provided.
|
|
14581
|
+
* - If the load operation was started by `webkit_web_view_go_back()` or
|
|
14582
|
+
* `webkit_web_view_go_forward()`, the requested URI is the original URI
|
|
14583
|
+
* of the previous/next item in the {@link WebKit.BackForwardList} of `web_view`.
|
|
14584
|
+
* - If the load operation was started by
|
|
14585
|
+
* `webkit_web_view_go_to_back_forward_list_item()`, the requested URI
|
|
14586
|
+
* is the original URI of the given {@link WebKit.BackForwardListItem}.
|
|
14587
|
+
*
|
|
14588
|
+
* 3. If there is a server redirection during the load operation,
|
|
14589
|
+
* the active URI is the redirected URI. When the signal
|
|
14590
|
+
* {@link WebKit.WebView.SignalSignatures.load_changed | WebKit.WebView::load-changed} is emitted with {@link WebKit.LoadEvent.REDIRECTED}
|
|
14591
|
+
* event, the active URI is already updated to the redirected URI.
|
|
14592
|
+
* 4. When the signal {@link WebKit.WebView.SignalSignatures.load_changed | WebKit.WebView::load-changed} is emitted
|
|
14593
|
+
* with {@link WebKit.LoadEvent.COMMITTED} event, the active URI is the final
|
|
14594
|
+
* one and it will not change unless a new load operation is started
|
|
14595
|
+
* or a navigation action within the same page is performed.
|
|
14253
14596
|
*
|
|
14254
14597
|
* You can monitor the active URI by connecting to the notify::uri
|
|
14255
14598
|
* signal of `web_view`.
|
|
@@ -14258,7 +14601,7 @@ export namespace WebKit {
|
|
|
14258
14601
|
get_uri(): string;
|
|
14259
14602
|
|
|
14260
14603
|
/**
|
|
14261
|
-
* Gets the user content manager associated
|
|
14604
|
+
* Gets the user content manager associated with `web_view`.
|
|
14262
14605
|
* @returns the {@link WebKit.UserContentManager} associated with the view
|
|
14263
14606
|
* @since 2.6
|
|
14264
14607
|
*/
|
|
@@ -14294,7 +14637,7 @@ export namespace WebKit {
|
|
|
14294
14637
|
get_window_properties(): WindowProperties;
|
|
14295
14638
|
|
|
14296
14639
|
/**
|
|
14297
|
-
*
|
|
14640
|
+
* Get the zoom level of `web_view`.
|
|
14298
14641
|
*
|
|
14299
14642
|
* Get the zoom level of `web_view`, i.e. the factor by which the
|
|
14300
14643
|
* view contents are scaled with respect to their original size.
|
|
@@ -14418,7 +14761,7 @@ export namespace WebKit {
|
|
|
14418
14761
|
*
|
|
14419
14762
|
* You can monitor the load operation by connecting to
|
|
14420
14763
|
* {@link WebKit.WebView.SignalSignatures.load_changed | WebKit.WebView::load-changed} signal.
|
|
14421
|
-
* @param uri
|
|
14764
|
+
* @param uri a URI string
|
|
14422
14765
|
*/
|
|
14423
14766
|
load_uri(uri: string): void;
|
|
14424
14767
|
|
|
@@ -14445,7 +14788,7 @@ export namespace WebKit {
|
|
|
14445
14788
|
/**
|
|
14446
14789
|
* Asynchronously save the current web page.
|
|
14447
14790
|
*
|
|
14448
|
-
* Asynchronously save the current web page associated
|
|
14791
|
+
* Asynchronously save the current web page associated with the
|
|
14449
14792
|
* {@link WebKit.WebView} into a self-contained format using the mode
|
|
14450
14793
|
* specified in `save_mode`.
|
|
14451
14794
|
*
|
|
@@ -14460,7 +14803,7 @@ export namespace WebKit {
|
|
|
14460
14803
|
/**
|
|
14461
14804
|
* Asynchronously save the current web page.
|
|
14462
14805
|
*
|
|
14463
|
-
* Asynchronously save the current web page associated
|
|
14806
|
+
* Asynchronously save the current web page associated with the
|
|
14464
14807
|
* {@link WebKit.WebView} into a self-contained format using the mode
|
|
14465
14808
|
* specified in `save_mode`.
|
|
14466
14809
|
*
|
|
@@ -14476,7 +14819,7 @@ export namespace WebKit {
|
|
|
14476
14819
|
/**
|
|
14477
14820
|
* Asynchronously save the current web page.
|
|
14478
14821
|
*
|
|
14479
|
-
* Asynchronously save the current web page associated
|
|
14822
|
+
* Asynchronously save the current web page associated with the
|
|
14480
14823
|
* {@link WebKit.WebView} into a self-contained format using the mode
|
|
14481
14824
|
* specified in `save_mode`.
|
|
14482
14825
|
*
|
|
@@ -14500,7 +14843,7 @@ export namespace WebKit {
|
|
|
14500
14843
|
/**
|
|
14501
14844
|
* Asynchronously save the current web page.
|
|
14502
14845
|
*
|
|
14503
|
-
* Asynchronously save the current web page associated
|
|
14846
|
+
* Asynchronously save the current web page associated with the
|
|
14504
14847
|
* {@link WebKit.WebView} into a self-contained format using the mode
|
|
14505
14848
|
* specified in `save_mode` and writing it to `file`.
|
|
14506
14849
|
*
|
|
@@ -14516,7 +14859,7 @@ export namespace WebKit {
|
|
|
14516
14859
|
/**
|
|
14517
14860
|
* Asynchronously save the current web page.
|
|
14518
14861
|
*
|
|
14519
|
-
* Asynchronously save the current web page associated
|
|
14862
|
+
* Asynchronously save the current web page associated with the
|
|
14520
14863
|
* {@link WebKit.WebView} into a self-contained format using the mode
|
|
14521
14864
|
* specified in `save_mode` and writing it to `file`.
|
|
14522
14865
|
*
|
|
@@ -14533,7 +14876,7 @@ export namespace WebKit {
|
|
|
14533
14876
|
/**
|
|
14534
14877
|
* Asynchronously save the current web page.
|
|
14535
14878
|
*
|
|
14536
|
-
* Asynchronously save the current web page associated
|
|
14879
|
+
* Asynchronously save the current web page associated with the
|
|
14537
14880
|
* {@link WebKit.WebView} into a self-contained format using the mode
|
|
14538
14881
|
* specified in `save_mode` and writing it to `file`.
|
|
14539
14882
|
*
|
|
@@ -14577,7 +14920,7 @@ export namespace WebKit {
|
|
|
14577
14920
|
* `webkit_web_view_send_message_to_page_finish()` to get the message reply.
|
|
14578
14921
|
* @param message a {@link WebKit.UserMessage}
|
|
14579
14922
|
* @param cancellable a {@link Gio.Cancellable} or `null` to ignore
|
|
14580
|
-
* @param callback
|
|
14923
|
+
* @param callback A {@link Gio.AsyncReadyCallback} to call when the request is satisfied or `null`
|
|
14581
14924
|
* @since 2.28
|
|
14582
14925
|
*/
|
|
14583
14926
|
send_message_to_page(message: UserMessage, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
@@ -14591,7 +14934,7 @@ export namespace WebKit {
|
|
|
14591
14934
|
* `webkit_web_view_send_message_to_page_finish()` to get the message reply.
|
|
14592
14935
|
* @param message a {@link WebKit.UserMessage}
|
|
14593
14936
|
* @param cancellable a {@link Gio.Cancellable} or `null` to ignore
|
|
14594
|
-
* @param callback
|
|
14937
|
+
* @param callback A {@link Gio.AsyncReadyCallback} to call when the request is satisfied or `null`
|
|
14595
14938
|
* @since 2.28
|
|
14596
14939
|
*/
|
|
14597
14940
|
send_message_to_page(message: UserMessage, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<UserMessage> | void;
|
|
@@ -14620,7 +14963,7 @@ export namespace WebKit {
|
|
|
14620
14963
|
/**
|
|
14621
14964
|
* Set the camera capture state of a {@link WebKit.WebView}.
|
|
14622
14965
|
*
|
|
14623
|
-
* If {@link WebKit.Settings.
|
|
14966
|
+
* If {@link WebKit.Settings.enable_media_stream} is `false`, this method will have no visible effect. Once the
|
|
14624
14967
|
* state of the device has been set to {@link WebKit.MediaCaptureState.NONE} it cannot be changed
|
|
14625
14968
|
* anymore. The page can however request capture again using the mediaDevices API.
|
|
14626
14969
|
* @param state a {@link WebKit.MediaCaptureState}
|
|
@@ -14664,7 +15007,7 @@ export namespace WebKit {
|
|
|
14664
15007
|
/**
|
|
14665
15008
|
* Set the display capture state of a {@link WebKit.WebView}.
|
|
14666
15009
|
*
|
|
14667
|
-
* If {@link WebKit.Settings.
|
|
15010
|
+
* If {@link WebKit.Settings.enable_media_stream} is `false`, this method will have no visible effect. Once the
|
|
14668
15011
|
* state of the device has been set to {@link WebKit.MediaCaptureState.NONE} it cannot be changed
|
|
14669
15012
|
* anymore. The page can however request capture again using the mediaDevices API.
|
|
14670
15013
|
* @param state a {@link WebKit.MediaCaptureState}
|
|
@@ -14680,7 +15023,7 @@ export namespace WebKit {
|
|
|
14680
15023
|
* CONTENTEDITABLE attribute has been set on the element or one of its parent
|
|
14681
15024
|
* elements. By default a {@link WebKit.WebView} is not editable.
|
|
14682
15025
|
*
|
|
14683
|
-
* Normally,
|
|
15026
|
+
* Normally, an HTML document is not editable unless the elements within the
|
|
14684
15027
|
* document are editable. This function provides a way to make the contents
|
|
14685
15028
|
* of a {@link WebKit.WebView} editable without altering the document or DOM structure.
|
|
14686
15029
|
* @param editable a `gboolean` indicating the editable state
|
|
@@ -14705,10 +15048,23 @@ export namespace WebKit {
|
|
|
14705
15048
|
*/
|
|
14706
15049
|
set_is_muted(muted: boolean): void;
|
|
14707
15050
|
|
|
15051
|
+
/**
|
|
15052
|
+
* Set the magnification factor of `web_view`.
|
|
15053
|
+
*
|
|
15054
|
+
* The magnification factor represents the visual scaling of the page (similar
|
|
15055
|
+
* to pinch-to-zoom). This is independent of the layout zoom level (which is
|
|
15056
|
+
* set with `webkit_web_view_set_zoom_level()`). Setting the magnification factor
|
|
15057
|
+
* scales the rendered page visually around the center of the view without
|
|
15058
|
+
* affecting page layout or text wrapping.
|
|
15059
|
+
* @param magnification the magnification factor
|
|
15060
|
+
* @since 2.54
|
|
15061
|
+
*/
|
|
15062
|
+
set_magnification(magnification: number): void;
|
|
15063
|
+
|
|
14708
15064
|
/**
|
|
14709
15065
|
* Set the microphone capture state of a {@link WebKit.WebView}.
|
|
14710
15066
|
*
|
|
14711
|
-
* If {@link WebKit.Settings.
|
|
15067
|
+
* If {@link WebKit.Settings.enable_media_stream} is `false`, this method will have no visible effect. Once the
|
|
14712
15068
|
* state of the device has been set to {@link WebKit.MediaCaptureState.NONE} it cannot be changed
|
|
14713
15069
|
* anymore. The page can however request capture again using the mediaDevices API.
|
|
14714
15070
|
* @param state a {@link WebKit.MediaCaptureState}
|
|
@@ -14723,7 +15079,7 @@ export namespace WebKit {
|
|
|
14723
15079
|
* existing {@link WebKit.Settings} of `web_view` will be replaced by
|
|
14724
15080
|
* `settings`. New settings are applied immediately on `web_view`.
|
|
14725
15081
|
* The same {@link WebKit.Settings} object can be shared
|
|
14726
|
-
* by multiple {@link WebKit.WebView}
|
|
15082
|
+
* by multiple {@link WebKit.WebView} objects.
|
|
14727
15083
|
* @param settings a {@link WebKit.Settings}
|
|
14728
15084
|
*/
|
|
14729
15085
|
set_settings(settings: Settings): void;
|
|
@@ -14748,7 +15104,7 @@ export namespace WebKit {
|
|
|
14748
15104
|
stop_loading(): void;
|
|
14749
15105
|
|
|
14750
15106
|
/**
|
|
14751
|
-
* Terminates the web process associated
|
|
15107
|
+
* Terminates the web process associated with `web_view`.
|
|
14752
15108
|
*
|
|
14753
15109
|
* When the web process gets terminated
|
|
14754
15110
|
* using this method, the {@link WebKit.WebView.SignalSignatures.web_process_terminated | WebKit.WebView::web-process-terminated} signal is emitted with
|
|
@@ -15196,7 +15552,7 @@ export namespace WebKit {
|
|
|
15196
15552
|
* A permission request for accessing website data from third-party domains.
|
|
15197
15553
|
*
|
|
15198
15554
|
* WebKitWebsiteDataAccessPermissionRequest represents a request for
|
|
15199
|
-
* permission to allow a third-party domain access its cookies.
|
|
15555
|
+
* permission to allow a third-party domain to access its cookies.
|
|
15200
15556
|
*
|
|
15201
15557
|
* When a WebKitWebsiteDataAccessPermissionRequest is not handled by the user,
|
|
15202
15558
|
* it is denied by default.
|
|
@@ -15299,7 +15655,7 @@ export namespace WebKit {
|
|
|
15299
15655
|
*
|
|
15300
15656
|
* You can use WebKitWebsiteDataManager to configure the local directories
|
|
15301
15657
|
* where website data will be stored. Use {@link WebKit.WebsiteDataManager.base_data_directory}
|
|
15302
|
-
* and {@link WebKit.WebsiteDataManager.base_cache_directory} set a common base directory for all
|
|
15658
|
+
* and {@link WebKit.WebsiteDataManager.base_cache_directory} to set a common base directory for all
|
|
15303
15659
|
* website data and caches.
|
|
15304
15660
|
*
|
|
15305
15661
|
* A WebKitWebsiteDataManager can be ephemeral, in which case all the directory configuration
|
|
@@ -15542,7 +15898,7 @@ export namespace WebKit {
|
|
|
15542
15898
|
/**
|
|
15543
15899
|
* Finish an asynchronous operation started with `webkit_website_data_manager_fetch()`.
|
|
15544
15900
|
* @param result a {@link Gio.AsyncResult}
|
|
15545
|
-
* @returns a {@link GLib.List} of {@link WebKit.WebsiteData}. You must free the {@link GLib.List} with `g_list_free()` and unref the {@link WebKit.WebsiteData}
|
|
15901
|
+
* @returns a {@link GLib.List} of {@link WebKit.WebsiteData}. You must free the {@link GLib.List} with `g_list_free()` and unref the {@link WebKit.WebsiteData} objects with `webkit_website_data_unref()` when you're done with them.
|
|
15546
15902
|
* @since 2.16
|
|
15547
15903
|
* @throws GLib.Error
|
|
15548
15904
|
*/
|
|
@@ -15620,7 +15976,7 @@ export namespace WebKit {
|
|
|
15620
15976
|
/**
|
|
15621
15977
|
* Finish an asynchronous operation started with `webkit_website_data_manager_get_itp_summary()`.
|
|
15622
15978
|
* @param result a {@link Gio.AsyncResult}
|
|
15623
|
-
* @returns a {@link GLib.List} of {@link WebKit.ITPThirdParty}. You must free the {@link GLib.List} with `g_list_free()` and unref the {@link WebKit.ITPThirdParty}
|
|
15979
|
+
* @returns a {@link GLib.List} of {@link WebKit.ITPThirdParty}. You must free the {@link GLib.List} with `g_list_free()` and unref the {@link WebKit.ITPThirdParty} objects with `webkit_itp_third_party_unref()` when you're done with them.
|
|
15624
15980
|
* @since 2.30
|
|
15625
15981
|
* @throws GLib.Error
|
|
15626
15982
|
*/
|
|
@@ -15699,11 +16055,14 @@ export namespace WebKit {
|
|
|
15699
16055
|
// Signal signatures
|
|
15700
16056
|
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
15701
16057
|
"notify::autoplay": (pspec: GObject.ParamSpec) => void;
|
|
16058
|
+
"notify::custom-user-agent": (pspec: GObject.ParamSpec) => void;
|
|
15702
16059
|
}
|
|
15703
16060
|
|
|
15704
16061
|
// Constructor properties interface
|
|
15705
16062
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
15706
16063
|
autoplay: AutoplayPolicy;
|
|
16064
|
+
custom_user_agent: string | null;
|
|
16065
|
+
customUserAgent: string | null;
|
|
15707
16066
|
}
|
|
15708
16067
|
}
|
|
15709
16068
|
|
|
@@ -15711,7 +16070,7 @@ export namespace WebKit {
|
|
|
15711
16070
|
* View specific website policies.
|
|
15712
16071
|
*
|
|
15713
16072
|
* WebKitWebsitePolicies allows you to configure per-page policies,
|
|
15714
|
-
* currently only autoplay policies are supported.
|
|
16073
|
+
* currently only autoplay and custom user agent policies are supported.
|
|
15715
16074
|
* @gir-type Class
|
|
15716
16075
|
* @since 2.30
|
|
15717
16076
|
*/
|
|
@@ -15727,6 +16086,24 @@ export namespace WebKit {
|
|
|
15727
16086
|
*/
|
|
15728
16087
|
get autoplay(): AutoplayPolicy;
|
|
15729
16088
|
|
|
16089
|
+
/**
|
|
16090
|
+
* The custom user agent string to send for navigations governed by these
|
|
16091
|
+
* {@link WebKit.WebsitePolicies}, or `null` to use the default user agent.
|
|
16092
|
+
* @since 2.54
|
|
16093
|
+
* @construct-only
|
|
16094
|
+
* @default null
|
|
16095
|
+
*/
|
|
16096
|
+
get custom_user_agent(): string | null;
|
|
16097
|
+
|
|
16098
|
+
/**
|
|
16099
|
+
* The custom user agent string to send for navigations governed by these
|
|
16100
|
+
* {@link WebKit.WebsitePolicies}, or `null` to use the default user agent.
|
|
16101
|
+
* @since 2.54
|
|
16102
|
+
* @construct-only
|
|
16103
|
+
* @default null
|
|
16104
|
+
*/
|
|
16105
|
+
get customUserAgent(): string | null;
|
|
16106
|
+
|
|
15730
16107
|
/**
|
|
15731
16108
|
* Compile-time signal type information.
|
|
15732
16109
|
*
|
|
@@ -15760,6 +16137,13 @@ export namespace WebKit {
|
|
|
15760
16137
|
* @since 2.30
|
|
15761
16138
|
*/
|
|
15762
16139
|
get_autoplay_policy(): AutoplayPolicy;
|
|
16140
|
+
|
|
16141
|
+
/**
|
|
16142
|
+
* Get the {@link WebKit.WebsitePolicies.custom_user_agent} property.
|
|
16143
|
+
* @returns the custom user agent string, or `null` if the default user agent is used
|
|
16144
|
+
* @since 2.54
|
|
16145
|
+
*/
|
|
16146
|
+
get_custom_user_agent(): string | null;
|
|
15763
16147
|
}
|
|
15764
16148
|
|
|
15765
16149
|
|
|
@@ -16391,14 +16775,14 @@ export namespace WebKit {
|
|
|
16391
16775
|
* for details): {@link Feature.get_status}.
|
|
16392
16776
|
* - A category, which may be used to group features together:
|
|
16393
16777
|
* {@link Feature.get_category}.
|
|
16394
|
-
* - An optional short “name” which can be presented to
|
|
16778
|
+
* - An optional short “name” which can be presented to a user:
|
|
16395
16779
|
* {@link Feature.get_name}.
|
|
16396
16780
|
* - An optional longer “detailed” description:
|
|
16397
16781
|
* {@link Feature.get_details}.
|
|
16398
16782
|
*
|
|
16399
16783
|
* The lists of available features can be obtained with
|
|
16400
16784
|
* {@link Settings.get_all_features}, {@link Settings.get_experimental_features},
|
|
16401
|
-
* and {@link Settings.get_development_features}
|
|
16785
|
+
* and {@link Settings.get_development_features}. As a rule of thumb,
|
|
16402
16786
|
* applications which may want to allow users (i.e. web developers) to test
|
|
16403
16787
|
* WebKit features should use the list of experimental features. Additionally,
|
|
16404
16788
|
* applications might want to expose development features *when targeting
|
|
@@ -16448,7 +16832,7 @@ export namespace WebKit {
|
|
|
16448
16832
|
* The returned string is suitable to be displayed to end users, but it
|
|
16449
16833
|
* should not be relied upon being localized.
|
|
16450
16834
|
*
|
|
16451
|
-
* Note that some *features may not* have a detailed description, and `
|
|
16835
|
+
* Note that some *features may not* have a detailed description, and `null`
|
|
16452
16836
|
* is returned in this case.
|
|
16453
16837
|
* @returns Feature description.
|
|
16454
16838
|
* @since 2.42
|
|
@@ -16468,7 +16852,7 @@ export namespace WebKit {
|
|
|
16468
16852
|
* The returned string is suitable to be displayed to end users, but it
|
|
16469
16853
|
* should not be relied upon being localized.
|
|
16470
16854
|
*
|
|
16471
|
-
* Note that some *features may not* have a short name, and `
|
|
16855
|
+
* Note that some *features may not* have a short name, and `null`
|
|
16472
16856
|
* is returned in this case.
|
|
16473
16857
|
* @returns Short feature name.
|
|
16474
16858
|
* @since 2.42
|
|
@@ -16494,7 +16878,7 @@ export namespace WebKit {
|
|
|
16494
16878
|
/**
|
|
16495
16879
|
* Atomically releases a reference on the given `feature`.
|
|
16496
16880
|
*
|
|
16497
|
-
* If the reference was the last, the resources associated
|
|
16881
|
+
* If the reference was the last, the resources associated with the
|
|
16498
16882
|
* `feature` are freed. This function is MT-safe and may be called from
|
|
16499
16883
|
* any thread.
|
|
16500
16884
|
* @since 2.42
|
|
@@ -16511,7 +16895,7 @@ export namespace WebKit {
|
|
|
16511
16895
|
*
|
|
16512
16896
|
* ```c
|
|
16513
16897
|
* g_autoptr(WebKitFeatureList) list = `webkit_settings_get_experimental_features()`;
|
|
16514
|
-
* for (gsize i = 0; i < webkit_feature_list_get_length(list)
|
|
16898
|
+
* for (gsize i = 0; i < webkit_feature_list_get_length(list); i++) {
|
|
16515
16899
|
* WebKitFeature *feature = webkit_feature_list_get(list, i);
|
|
16516
16900
|
* // Do something with "feature".
|
|
16517
16901
|
* }
|
|
@@ -16528,6 +16912,14 @@ export namespace WebKit {
|
|
|
16528
16912
|
static $gtype: GObject.GType<FeatureList>;
|
|
16529
16913
|
|
|
16530
16914
|
// Methods
|
|
16915
|
+
/**
|
|
16916
|
+
* Finds a feature given its identifier.
|
|
16917
|
+
* @param identifier a {@link WebKit.Feature} identifier
|
|
16918
|
+
* @returns The feature with the given `identifier`, or `null` if it cannot be found.
|
|
16919
|
+
* @since 2.54
|
|
16920
|
+
*/
|
|
16921
|
+
find(identifier: string): Feature | null;
|
|
16922
|
+
|
|
16531
16923
|
/**
|
|
16532
16924
|
* Gets a feature given its index.
|
|
16533
16925
|
* @param index index of the feature
|
|
@@ -16538,7 +16930,8 @@ export namespace WebKit {
|
|
|
16538
16930
|
|
|
16539
16931
|
/**
|
|
16540
16932
|
* Gets the number of elements in the feature list.
|
|
16541
|
-
* @returns number of elements.
|
|
16933
|
+
* @returns number of elements.
|
|
16934
|
+
* @since 2.42
|
|
16542
16935
|
*/
|
|
16543
16936
|
get_length(): number;
|
|
16544
16937
|
|
|
@@ -16554,7 +16947,7 @@ export namespace WebKit {
|
|
|
16554
16947
|
/**
|
|
16555
16948
|
* Atomically releases a reference on the given `feature_list`.
|
|
16556
16949
|
*
|
|
16557
|
-
* If the reference was the last, the resources associated
|
|
16950
|
+
* If the reference was the last, the resources associated with the
|
|
16558
16951
|
* `feature_list` are freed. This function is MT-safe and may be called
|
|
16559
16952
|
* from any thread.
|
|
16560
16953
|
* @since 2.42
|
|
@@ -16684,7 +17077,7 @@ export namespace WebKit {
|
|
|
16684
17077
|
/**
|
|
16685
17078
|
* Get the last time a {@link WebKit.ITPThirdParty} has been seen under `itp_first_party`.
|
|
16686
17079
|
*
|
|
16687
|
-
* Each
|
|
17080
|
+
* Each {@link WebKit.ITPFirstParty} is created by `webkit_itp_third_party_get_first_parties()` and
|
|
16688
17081
|
* therefore corresponds to exactly one {@link WebKit.ITPThirdParty}.
|
|
16689
17082
|
* @returns the last update time as a {@link GLib.DateTime}
|
|
16690
17083
|
* @since 2.30
|
|
@@ -16694,7 +17087,7 @@ export namespace WebKit {
|
|
|
16694
17087
|
/**
|
|
16695
17088
|
* Get whether `itp_first_party` has granted website data access to its {@link WebKit.ITPThirdParty}.
|
|
16696
17089
|
*
|
|
16697
|
-
* Each
|
|
17090
|
+
* Each {@link WebKit.ITPFirstParty} is created by `webkit_itp_third_party_get_first_parties()` and
|
|
16698
17091
|
* therefore corresponds to exactly one {@link WebKit.ITPThirdParty}.
|
|
16699
17092
|
* @returns `true` if website data access has been granted, or `false` otherwise
|
|
16700
17093
|
* @since 2.30
|
|
@@ -16766,6 +17159,69 @@ export namespace WebKit {
|
|
|
16766
17159
|
}
|
|
16767
17160
|
|
|
16768
17161
|
|
|
17162
|
+
/**
|
|
17163
|
+
* @gir-type Alias
|
|
17164
|
+
*/
|
|
17165
|
+
type ImageClass = typeof Image;
|
|
17166
|
+
|
|
17167
|
+
/**
|
|
17168
|
+
* Represents a set of related images.
|
|
17169
|
+
*
|
|
17170
|
+
* The list supports iterating over each {@link Image}:
|
|
17171
|
+
*
|
|
17172
|
+
* ```c
|
|
17173
|
+
* g_autoptr(WebKitImageList) list = webkit_favicon_database_get_page_icons_finish(database, result, NULL);
|
|
17174
|
+
* for (gsize i = 0; i < webkit_image_list_get_length(list); i++) {
|
|
17175
|
+
* WebKitImage *image = webkit_image_list_get(list, i);
|
|
17176
|
+
* // Do something with "image".
|
|
17177
|
+
* }
|
|
17178
|
+
* ```
|
|
17179
|
+
*
|
|
17180
|
+
* Image lists can be obtained as the result of `webkit_favicon_database_get_page_icons`.
|
|
17181
|
+
* @gir-type Struct
|
|
17182
|
+
* @since 2.54
|
|
17183
|
+
*/
|
|
17184
|
+
abstract class ImageList {
|
|
17185
|
+
static $gtype: GObject.GType<ImageList>;
|
|
17186
|
+
|
|
17187
|
+
// Methods
|
|
17188
|
+
/**
|
|
17189
|
+
* Gets an image given its index.
|
|
17190
|
+
* @param index index of the image
|
|
17191
|
+
* @returns The image at `index`.
|
|
17192
|
+
* @since 2.54
|
|
17193
|
+
*/
|
|
17194
|
+
get(index: bigint | number): Image;
|
|
17195
|
+
|
|
17196
|
+
/**
|
|
17197
|
+
* Gets the number of elements in the image list.
|
|
17198
|
+
* @returns number of elements.
|
|
17199
|
+
* @since 2.54
|
|
17200
|
+
*/
|
|
17201
|
+
get_length(): number;
|
|
17202
|
+
|
|
17203
|
+
/**
|
|
17204
|
+
* Atomically acquires a reference on the given `image_list`.
|
|
17205
|
+
*
|
|
17206
|
+
* This function is MT-safe and may be called from any thread.
|
|
17207
|
+
* @returns The same `image_list` with an additional reference.
|
|
17208
|
+
* @since 2.54
|
|
17209
|
+
*/
|
|
17210
|
+
ref(): ImageList;
|
|
17211
|
+
|
|
17212
|
+
/**
|
|
17213
|
+
* Atomically releases a reference on the given `image_list`.
|
|
17214
|
+
*
|
|
17215
|
+
* If the reference was the last, the resources associated with
|
|
17216
|
+
* the `image_list` are freed.
|
|
17217
|
+
*
|
|
17218
|
+
* This function is MT-safe and may be called from any thread.
|
|
17219
|
+
* @since 2.54
|
|
17220
|
+
*/
|
|
17221
|
+
unref(): void;
|
|
17222
|
+
}
|
|
17223
|
+
|
|
17224
|
+
|
|
16769
17225
|
/**
|
|
16770
17226
|
* @gir-type Alias
|
|
16771
17227
|
*/
|
|
@@ -16780,7 +17236,7 @@ export namespace WebKit {
|
|
|
16780
17236
|
|
|
16781
17237
|
|
|
16782
17238
|
/**
|
|
16783
|
-
* Range of text in
|
|
17239
|
+
* Range of text in a preedit string to be shown underlined.
|
|
16784
17240
|
* @gir-type Struct
|
|
16785
17241
|
* @since 2.28
|
|
16786
17242
|
*/
|
|
@@ -16829,10 +17285,10 @@ export namespace WebKit {
|
|
|
16829
17285
|
* {@link WebKit.MemoryPressureSettings} is a boxed type that can be used to provide some custom settings
|
|
16830
17286
|
* to control how the memory pressure situations are handled by the different processes.
|
|
16831
17287
|
*
|
|
16832
|
-
* The memory pressure system implemented inside the different
|
|
17288
|
+
* The memory pressure system implemented inside the different processes will try to keep the memory usage
|
|
16833
17289
|
* under the defined memory limit. In order to do that, it will check the used memory with a user defined
|
|
16834
17290
|
* frequency and decide whether it should try to release memory. The thresholds passed will define how urgent
|
|
16835
|
-
* is to release that memory.
|
|
17291
|
+
* it is to release that memory.
|
|
16836
17292
|
*
|
|
16837
17293
|
* Take into account that badly defined parameters can greatly reduce the performance of the engine. For
|
|
16838
17294
|
* example, setting memory limit too low with a fast poll interval can cause the process to constantly
|
|
@@ -16858,7 +17314,7 @@ export namespace WebKit {
|
|
|
16858
17314
|
// Methods
|
|
16859
17315
|
/**
|
|
16860
17316
|
* Make a copy of `settings`.
|
|
16861
|
-
* @returns A copy of
|
|
17317
|
+
* @returns A copy of the passed {@link WebKit.MemoryPressureSettings}.
|
|
16862
17318
|
* @since 2.34
|
|
16863
17319
|
*/
|
|
16864
17320
|
copy(): MemoryPressureSettings;
|
|
@@ -16922,7 +17378,7 @@ export namespace WebKit {
|
|
|
16922
17378
|
* Sets `value` as the fraction of the defined memory limit where the process will be
|
|
16923
17379
|
* killed.
|
|
16924
17380
|
*
|
|
16925
|
-
* The threshold must be a value bigger or equal to 0. A value of 0 means that the process
|
|
17381
|
+
* The threshold must be a value bigger than or equal to 0. A value of 0 means that the process
|
|
16926
17382
|
* is never killed. If the threshold is not 0, then it must be bigger than the strict threshold
|
|
16927
17383
|
* defined in `settings`. The threshold can also have values bigger than 1. The default value is 0.
|
|
16928
17384
|
* @param value fraction of the memory limit where the process will be killed because of excessive memory usage.
|
|
@@ -16931,7 +17387,7 @@ export namespace WebKit {
|
|
|
16931
17387
|
set_kill_threshold(value: number): void;
|
|
16932
17388
|
|
|
16933
17389
|
/**
|
|
16934
|
-
* Sets `memory_limit` the memory limit value
|
|
17390
|
+
* Sets `memory_limit` as the memory limit value of `settings`.
|
|
16935
17391
|
*
|
|
16936
17392
|
* The default value is the system's RAM size with a maximum of 3GB.
|
|
16937
17393
|
* @param memory_limit amount of memory (in MB) that the process is allowed to use.
|
|
@@ -17025,8 +17481,8 @@ export namespace WebKit {
|
|
|
17025
17481
|
/**
|
|
17026
17482
|
* Return the {@link WebKit.URIRequest} associated with the navigation action.
|
|
17027
17483
|
*
|
|
17028
|
-
* Modifications to the returned object are
|
|
17029
|
-
* into account when the request is sent over the network, and is intended
|
|
17484
|
+
* Modifications to the returned object are *not* taken
|
|
17485
|
+
* into account when the request is sent over the network, and the object is intended
|
|
17030
17486
|
* only to aid in evaluating whether a navigation action should be taken or
|
|
17031
17487
|
* not. To modify requests before they are sent over the network the
|
|
17032
17488
|
* `WebKitPage::send-request` signal can be used instead.
|
|
@@ -17060,7 +17516,7 @@ export namespace WebKit {
|
|
|
17060
17516
|
* Configures network proxies.
|
|
17061
17517
|
*
|
|
17062
17518
|
* WebKitNetworkProxySettings can be used to provide a custom proxy configuration
|
|
17063
|
-
* to a {@link WebKit.NetworkSession}. You need to call `
|
|
17519
|
+
* to a {@link WebKit.NetworkSession}. You need to call `webkit_network_session_set_proxy_settings()`
|
|
17064
17520
|
* with {@link WebKit.NetworkProxyMode.CUSTOM} and a WebKitNetworkProxySettings.
|
|
17065
17521
|
* @gir-type Struct
|
|
17066
17522
|
* @since 2.16
|
|
@@ -17077,11 +17533,11 @@ export namespace WebKit {
|
|
|
17077
17533
|
/**
|
|
17078
17534
|
* Adds a URI-scheme-specific proxy.
|
|
17079
17535
|
*
|
|
17080
|
-
* URIs whose scheme matches `
|
|
17536
|
+
* URIs whose scheme matches `scheme` will be proxied via `proxy_uri`.
|
|
17081
17537
|
* As with the default proxy URI, if `proxy_uri` starts with "socks://", it will be treated as referring to
|
|
17082
17538
|
* all three of the socks5, socks4a, and socks4 proxy types.
|
|
17083
17539
|
* @param scheme the URI scheme to add a proxy for
|
|
17084
|
-
* @param proxy_uri the proxy URI to use for `
|
|
17540
|
+
* @param proxy_uri the proxy URI to use for `scheme`
|
|
17085
17541
|
* @since 2.16
|
|
17086
17542
|
*/
|
|
17087
17543
|
add_proxy_for_scheme(scheme: string, proxy_uri: string): void;
|
|
@@ -17124,7 +17580,7 @@ export namespace WebKit {
|
|
|
17124
17580
|
/**
|
|
17125
17581
|
* One item of a {@link WebKit.OptionMenu}.
|
|
17126
17582
|
*
|
|
17127
|
-
* The {@link WebKit.OptionMenu} is composed of WebKitOptionMenuItem
|
|
17583
|
+
* The {@link WebKit.OptionMenu} is composed of WebKitOptionMenuItem objects.
|
|
17128
17584
|
* A WebKitOptionMenuItem always has a label and can contain a tooltip text.
|
|
17129
17585
|
* You can use the WebKitOptionMenuItem of a {@link WebKit.OptionMenu} to build your
|
|
17130
17586
|
* own menus.
|
|
@@ -17364,7 +17820,7 @@ export namespace WebKit {
|
|
|
17364
17820
|
* Atomically decrements the reference count of `dialog` by one.
|
|
17365
17821
|
*
|
|
17366
17822
|
* If the
|
|
17367
|
-
* reference count drops to 0, all memory allocated by the
|
|
17823
|
+
* reference count drops to 0, all memory allocated by the {@link WebKit.ScriptDialog} is
|
|
17368
17824
|
* released. This function is MT-safe and may be called from any
|
|
17369
17825
|
* thread.
|
|
17370
17826
|
* @since 2.24
|
|
@@ -17376,7 +17832,7 @@ export namespace WebKit {
|
|
|
17376
17832
|
/**
|
|
17377
17833
|
* A reply for a script message received.
|
|
17378
17834
|
* If no reply has been sent by the user, an automatically generated reply with
|
|
17379
|
-
* undefined value
|
|
17835
|
+
* undefined value will be sent.
|
|
17380
17836
|
* @gir-type Struct
|
|
17381
17837
|
* @since 2.40
|
|
17382
17838
|
*/
|
|
@@ -17401,7 +17857,8 @@ export namespace WebKit {
|
|
|
17401
17857
|
/**
|
|
17402
17858
|
* Reply to a script message with a value.
|
|
17403
17859
|
*
|
|
17404
|
-
* This function can be called
|
|
17860
|
+
* This function can only be called once. Further calls to it or to
|
|
17861
|
+
* `webkit_script_message_reply_return_error_message()` emit a critical warning and are ignored.
|
|
17405
17862
|
* @param reply_value Reply value of the provided script message
|
|
17406
17863
|
* @since 2.40
|
|
17407
17864
|
*/
|
|
@@ -17537,7 +17994,7 @@ export namespace WebKit {
|
|
|
17537
17994
|
type URISchemeResponseClass = typeof URISchemeResponse;
|
|
17538
17995
|
|
|
17539
17996
|
/**
|
|
17540
|
-
* A compiled set of rules which applied to resource loads.
|
|
17997
|
+
* A compiled set of rules which are applied to resource loads.
|
|
17541
17998
|
* @gir-type Struct
|
|
17542
17999
|
* @since 2.24
|
|
17543
18000
|
*/
|
|
@@ -17735,7 +18192,7 @@ export namespace WebKit {
|
|
|
17735
18192
|
get_host(): string;
|
|
17736
18193
|
|
|
17737
18194
|
/**
|
|
17738
|
-
* Gets whether the match pattern matches all
|
|
18195
|
+
* Gets whether the match pattern matches all hosts. This happens when
|
|
17739
18196
|
* the pattern is `<all_urls>`, or if `*` is set as the host string.
|
|
17740
18197
|
* @returns Whether this match pattern matches all hosts.
|
|
17741
18198
|
* @since 2.48
|
|
@@ -17774,7 +18231,7 @@ export namespace WebKit {
|
|
|
17774
18231
|
/**
|
|
17775
18232
|
* Matches the `matchPattern` against the specified `pattern` with options.
|
|
17776
18233
|
* @param pattern The {@link WebKit.WebExtensionMatchPattern} to match with `matchPattern`.
|
|
17777
|
-
* @param options The {@link WebKit.WebExtensionMatchPatternOptions} use while matching.
|
|
18234
|
+
* @param options The {@link WebKit.WebExtensionMatchPatternOptions} to use while matching.
|
|
17778
18235
|
* @returns Whether the pattern matches the specified `pattern`.
|
|
17779
18236
|
* @since 2.48
|
|
17780
18237
|
*/
|
|
@@ -17783,7 +18240,7 @@ export namespace WebKit {
|
|
|
17783
18240
|
/**
|
|
17784
18241
|
* Matches the `matchPattern` against the specified URL with options.
|
|
17785
18242
|
* @param url The URL to match against the pattern.
|
|
17786
|
-
* @param options The {@link WebKit.WebExtensionMatchPatternOptions} use while matching.
|
|
18243
|
+
* @param options The {@link WebKit.WebExtensionMatchPatternOptions} to use while matching.
|
|
17787
18244
|
* @returns Whether the pattern matches the specified URL.
|
|
17788
18245
|
* @since 2.48
|
|
17789
18246
|
*/
|
|
@@ -17801,7 +18258,7 @@ export namespace WebKit {
|
|
|
17801
18258
|
/**
|
|
17802
18259
|
* Atomically releases a reference on the given `matchPattern`.
|
|
17803
18260
|
*
|
|
17804
|
-
* If the reference was the last, the resources associated
|
|
18261
|
+
* If the reference was the last, the resources associated with the
|
|
17805
18262
|
* `matchPattern` are freed. This function is MT-safe and may be called from
|
|
17806
18263
|
* any thread.
|
|
17807
18264
|
* @since 2.48
|
|
@@ -17926,8 +18383,9 @@ export namespace WebKit {
|
|
|
17926
18383
|
/**
|
|
17927
18384
|
* Gets the size of the data of types `types` in a {@link WebKit.WebsiteData}.
|
|
17928
18385
|
*
|
|
17929
|
-
* Note that currently the data size is only known for {@link WebKit.WebsiteDataTypes.DISK_CACHE}
|
|
17930
|
-
*
|
|
18386
|
+
* Note that currently the data size is only known for the {@link WebKit.WebsiteDataTypes.DISK_CACHE},
|
|
18387
|
+
* {@link WebKit.WebsiteDataTypes.LOCAL_STORAGE}, {@link WebKit.WebsiteDataTypes.INDEXEDDB_DATABASES} and
|
|
18388
|
+
* {@link WebKit.WebsiteDataTypes.DOM_CACHE} data types, so for all other types 0 will be returned.
|
|
17931
18389
|
* @param types a bitmask of {@link WebKit.WebsiteDataTypes}
|
|
17932
18390
|
* @returns the size of `website_data` for the given `types`.
|
|
17933
18391
|
* @since 2.16
|