@@ -5581,6 +5581,25 @@ HTMLMeterElement.prototype.optimum;
5581
5581
HTMLMeterElement . prototype . labels ;
5582
5582
5583
5583
5584
+ /**
5585
+ * @interface
5586
+ * @see https://www.w3.org/TR/badging/
5587
+ */
5588
+ function NavigatorBadge ( ) { } ;
5589
+
5590
+ /**
5591
+ * @see https://www.w3.org/TR/badging/#setappbadge-method
5592
+ * @param {number= } contents
5593
+ * @return {Promise<undefined> }
5594
+ */
5595
+ NavigatorBadge . prototype . setAppBadge = function ( contents ) { } ;
5596
+
5597
+ /**
5598
+ * @see https://www.w3.org/TR/badging/#clearappbadge-method
5599
+ * @return {Promise<undefined> }
5600
+ */
5601
+ NavigatorBadge . prototype . clearAppBadge = function ( ) { } ;
5602
+
5584
5603
/**
5585
5604
* @interface
5586
5605
* @see https://storage.spec.whatwg.org/#api
@@ -5594,6 +5613,7 @@ NavigatorStorage.prototype.storage;
5594
5613
5595
5614
/**
5596
5615
* @constructor
5616
+ * @implements NavigatorBadge
5597
5617
* @implements NavigatorStorage
5598
5618
* @see https://www.w3.org/TR/html5/webappapis.html#navigator
5599
5619
*/
@@ -5759,8 +5779,24 @@ Navigator.prototype.userActivation;
5759
5779
*/
5760
5780
Navigator . prototype . webdriver ;
5761
5781
5782
+ /**
5783
+ * @see https://www.w3.org/TR/badging/#setappbadge-method
5784
+ * @param {number= } contents
5785
+ * @return {Promise<undefined> }
5786
+ * @override
5787
+ */
5788
+ Navigator . prototype . setAppBadge = function ( contents ) { } ;
5789
+
5790
+ /**
5791
+ * @see https://www.w3.org/TR/badging/#clearappbadge-method
5792
+ * @return {Promise<undefined> }
5793
+ * @override
5794
+ */
5795
+ Navigator . prototype . clearAppBadge = function ( ) { } ;
5796
+
5762
5797
/**
5763
5798
* @constructor
5799
+ * @implements NavigatorBadge
5764
5800
* @implements NavigatorStorage
5765
5801
* @see https://html.spec.whatwg.org/multipage/workers.html#the-workernavigator-object
5766
5802
*/
@@ -5785,6 +5821,21 @@ WorkerNavigator.prototype.hardwareConcurrency;
5785
5821
*/
5786
5822
WorkerNavigator . prototype . storage ;
5787
5823
5824
+ /**
5825
+ * @see https://www.w3.org/TR/badging/#setappbadge-method
5826
+ * @param {number= } contents
5827
+ * @return {Promise<undefined> }
5828
+ * @override
5829
+ */
5830
+ WorkerNavigator . prototype . setAppBadge = function ( contents ) { } ;
5831
+
5832
+ /**
5833
+ * @see https://www.w3.org/TR/badging/#clearappbadge-method
5834
+ * @return {Promise<undefined> }
5835
+ * @override
5836
+ */
5837
+ WorkerNavigator . prototype . clearAppBadge = function ( ) { } ;
5838
+
5788
5839
/**
5789
5840
* @record
5790
5841
* @see https://wicg.github.io/web-share/#sharedata-dictionary
0 commit comments