From 18c79bae028c53dac2da1983e8eb650f125eb0b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Ba=C5=A1i=C4=87?= Date: Wed, 31 Aug 2022 10:58:48 +0200 Subject: [PATCH 1/7] feat(mediaquerylist): updates MediaQueryList to extend EventTarget --- .../org/scalajs/dom/MediaQueryList.scala | 30 ++++++++++++++----- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/dom/src/main/scala/org/scalajs/dom/MediaQueryList.scala b/dom/src/main/scala/org/scalajs/dom/MediaQueryList.scala index ddf389133..0ccab4b46 100644 --- a/dom/src/main/scala/org/scalajs/dom/MediaQueryList.scala +++ b/dom/src/main/scala/org/scalajs/dom/MediaQueryList.scala @@ -8,23 +8,37 @@ package org.scalajs.dom import scala.scalajs.js -/** A MediaQueryList object maintains a list of media queries on a document, and handles sending notifications to - * listeners when the media queries on the document change. +/** A MediaQueryList object stores information on a media query applied to a document, + * with support for both immediate and event-driven matching against the state of the document. */ @js.native -trait MediaQueryList extends js.Object { +trait MediaQueryList extends EventTarget { - /** true if the document currently matches the media query list; otherwise false. Read only. */ + /** A boolean value that returns true if the document currently matches the media query list, or false if not. */ def matches: Boolean = js.native - /** The serialized media query list */ + /** A string representing a serialized media query. */ var media: String = js.native - /** Adds a new listener to the media query list. If the specified listener is already in the list, this method has no - * effect. + /** Adds to the MediaQueryList a callback which is invoked whenever the media query status—whether or + * not the document matches the media queries in the list—changes. + * + * This method exists primarily for backward compatibility; + * if possible, you should instead use addEventListener() to watch for the change event. + * @deprecated */ + @deprecated("Use addEventListener() instead") def addListener(listener: MediaQueryListListener): Unit = js.native - /** Removes a listener from the media query list. Does nothing if the specified listener isn't already in the list. */ + /** Removes the specified listener callback from the callbacks to be invoked when the MediaQueryList + * changes media query status, which happens any time the document switches between matching and + * not matching the media queries listed in the MediaQueryList. + * + * This method has been kept for backward compatibility; + * if possible, you should generally use removeEventListener() to remove change notification callbacks + * (which should have previously been added using addEventListener()). + * @deprecated + */ + @deprecated("Use removeEventListener() instead") def removeListener(listener: MediaQueryListListener): Unit = js.native } From d7e4942cd7cf7b7d5a7772ce7b81a2b5e8088e33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Ba=C5=A1i=C4=87?= Date: Wed, 31 Aug 2022 11:23:57 +0200 Subject: [PATCH 2/7] fix(mediaquerylist): fixes deprecated version --- .../org/scalajs/dom/MediaQueryList.scala | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/dom/src/main/scala/org/scalajs/dom/MediaQueryList.scala b/dom/src/main/scala/org/scalajs/dom/MediaQueryList.scala index 0ccab4b46..bafcd3e47 100644 --- a/dom/src/main/scala/org/scalajs/dom/MediaQueryList.scala +++ b/dom/src/main/scala/org/scalajs/dom/MediaQueryList.scala @@ -8,8 +8,8 @@ package org.scalajs.dom import scala.scalajs.js -/** A MediaQueryList object stores information on a media query applied to a document, - * with support for both immediate and event-driven matching against the state of the document. +/** A MediaQueryList object stores information on a media query applied to a document, with support for both immediate + * and event-driven matching against the state of the document. */ @js.native trait MediaQueryList extends EventTarget { @@ -20,25 +20,24 @@ trait MediaQueryList extends EventTarget { /** A string representing a serialized media query. */ var media: String = js.native - /** Adds to the MediaQueryList a callback which is invoked whenever the media query status—whether or - * not the document matches the media queries in the list—changes. + /** Adds to the MediaQueryList a callback which is invoked whenever the media query status—whether or not the document + * matches the media queries in the list—changes. * - * This method exists primarily for backward compatibility; - * if possible, you should instead use addEventListener() to watch for the change event. + * This method exists primarily for backward compatibility; if possible, you should instead use addEventListener() to + * watch for the change event. * @deprecated */ - @deprecated("Use addEventListener() instead") + @deprecated("Use addEventListener() instead", "2.3.0") def addListener(listener: MediaQueryListListener): Unit = js.native - /** Removes the specified listener callback from the callbacks to be invoked when the MediaQueryList - * changes media query status, which happens any time the document switches between matching and - * not matching the media queries listed in the MediaQueryList. + /** Removes the specified listener callback from the callbacks to be invoked when the MediaQueryList changes media + * query status, which happens any time the document switches between matching and not matching the media queries + * listed in the MediaQueryList. * - * This method has been kept for backward compatibility; - * if possible, you should generally use removeEventListener() to remove change notification callbacks - * (which should have previously been added using addEventListener()). + * This method has been kept for backward compatibility; if possible, you should generally use removeEventListener() + * to remove change notification callbacks (which should have previously been added using addEventListener()). * @deprecated */ - @deprecated("Use removeEventListener() instead") + @deprecated("Use removeEventListener() instead", "2.3.0") def removeListener(listener: MediaQueryListListener): Unit = js.native } From f4938eed2d59200ae94971da244337331939f961 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Ba=C5=A1i=C4=87?= Date: Wed, 31 Aug 2022 12:20:29 +0200 Subject: [PATCH 3/7] fix(mediaquerylist): added 2_12.txt --- api-reports/2_12.txt | 49 ++++++++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index 9a4935c94..8cf56f5e9 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -1,16 +1,16 @@ -scala-js-dom API -================ - -This is generated automatically on compile via custom Scalafix rule 'GenerateApiReport'. - -Flags: - [J-] = JavaScript type - [S-] = Scala type - [-C] = Class - [-T] = Trait - [-O] = Object - - +scala-js-dom API +================ + +This is generated automatically on compile via custom Scalafix rule 'GenerateApiReport'. + +Flags: + [J-] = JavaScript type + [S-] = Scala type + [-C] = Class + [-T] = Trait + [-O] = Object + + AbortController[JC] def abort(): Unit AbortController[JC] val signal: AbortSignal AbortSignal[JT] def aborted: Boolean @@ -15401,7 +15401,7 @@ Location[JT] def reload(flag: Boolean?): Unit Location[JT] def replace(url: String): Unit Location[JT] var search: String MIMEType[JT] -MIMEType[SO] val `application/xhtml+xml` = "application/xhtml+xml".asInstanceOf[MIMEType] +MIMEType[SO] val `application/xhtml+xml` = "application/xhtml+xml".asInstanceOf[MIMEType] MIMEType[SO] val `application/xml` = "application/xml".asInstanceOf[MIMEType] MIMEType[SO] val `image/svg+xml` = "image/svg+xml".asInstanceOf[MIMEType] MIMEType[SO] val `text/html` = "text/html".asInstanceOf[MIMEType] @@ -15450,10 +15450,15 @@ MediaList[JC] def item(index: Int): String MediaList[JC] def length: Int MediaList[JC] def mediaText: String MediaList[JC] @scala.scalajs.js.annotation.JSBracketAccess def update(index: Int, v: String): Unit -MediaQueryList[JT] def addListener(listener: MediaQueryListListener): Unit +MediaQueryList[JT] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit +MediaQueryList[JT] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit +MediaQueryList[JT] def addListener(listener: MediaQueryListListener): Unit (@deprecated in 2.3.0) +MediaQueryList[JT] def dispatchEvent(evt: Event): Boolean MediaQueryList[JT] def matches: Boolean MediaQueryList[JT] var media: String -MediaQueryList[JT] def removeListener(listener: MediaQueryListListener): Unit +MediaQueryList[JT] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit +MediaQueryList[JT] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit +MediaQueryList[JT] def removeListener(listener: MediaQueryListListener): Unit (@deprecated in 2.3.0) MediaQueryListListener[JT] def apply(mql: MediaQueryList): Unit MediaSource[JC] def activeSourceBuffers: SourceBufferList MediaSource[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit @@ -16111,7 +16116,7 @@ PermissionName[JT] PermissionName[SO] val geolocation: PermissionName PermissionName[SO] val midi: PermissionName PermissionName[SO] val notifications: PermissionName -PermissionName[SO] val `persistent-storage` = "persistent-storage".asInstanceOf[PermissionName] +PermissionName[SO] val `persistent-storage` = "persistent-storage".asInstanceOf[PermissionName] PermissionName[SO] val push: PermissionName PermissionState[JT] PermissionState[SO] val denied: PermissionState @@ -16497,9 +16502,9 @@ RTCSessionDescriptionInit[SO] def apply(`type`: js.UndefOr[RTCSdpType]?, sdp: js RTCSignalingState[JT] RTCSignalingState[SO] val closed: RTCSignalingState RTCSignalingState[SO] val `have-local-offer` = "have-local-offer".asInstanceOf[RTCSignalingState] -RTCSignalingState[SO] val `have-local-pranswer` = "have-local-pranswer".asInstanceOf[RTCSignalingState] +RTCSignalingState[SO] val `have-local-pranswer` = "have-local-pranswer".asInstanceOf[RTCSignalingState] RTCSignalingState[SO] val `have-remote-offer` = "have-remote-offer".asInstanceOf[RTCSignalingState] -RTCSignalingState[SO] val `have-remote-pranswer` = "have-remote-pranswer".asInstanceOf[RTCSignalingState] +RTCSignalingState[SO] val `have-remote-pranswer` = "have-remote-pranswer".asInstanceOf[RTCSignalingState] RTCSignalingState[SO] val stable: RTCSignalingState RTCStats[JT] val id: String RTCStats[JT] val timestamp: Double @@ -16569,9 +16574,9 @@ ReadableStreamUnderlyingSource[JT] var `type`: js.UndefOr[ReadableStreamType] ReferrerPolicy[JT] ReferrerPolicy[SO] val empty: ReferrerPolicy ReferrerPolicy[SO] val `no-referrer` = "no-referrer".asInstanceOf[ReferrerPolicy] -ReferrerPolicy[SO] val `no-referrer-when-downgrade` = "no-referrer-when-downgrade".asInstanceOf[ReferrerPolicy] +ReferrerPolicy[SO] val `no-referrer-when-downgrade` = "no-referrer-when-downgrade".asInstanceOf[ReferrerPolicy] ReferrerPolicy[SO] val `origin-only` = "origin-only".asInstanceOf[ReferrerPolicy] -ReferrerPolicy[SO] val `origin-when-cross-origin` = "origin-when-cross-origin".asInstanceOf[ReferrerPolicy] +ReferrerPolicy[SO] val `origin-when-cross-origin` = "origin-when-cross-origin".asInstanceOf[ReferrerPolicy] ReferrerPolicy[SO] val `unsafe-url` = "unsafe-url".asInstanceOf[ReferrerPolicy] Request[JC] def arrayBuffer(): js.Promise[ArrayBuffer] Request[JC] def blob(): js.Promise[Blob] @@ -27550,4 +27555,4 @@ webworkers[SO] type WorkerGlobalScope = dom.WorkerGlobalScope (@deprecated in 2 webworkers[SO] type WorkerLocation = dom.WorkerLocation (@deprecated in 2.0.0) webworkers[SO] type WorkerNavigator = dom.WorkerNavigator (@deprecated in 2.0.0) webworkers[SO] def self: DedicatedWorkerGlobalScope (@deprecated in 2.0.0) -webworkers.DedicatedWorkerGlobalScope[JO] def self: DedicatedWorkerGlobalScope (@deprecated in 2.0.0) +webworkers.DedicatedWorkerGlobalScope[JO] def self: DedicatedWorkerGlobalScope (@deprecated in 2.0.0) From 9c98f2331fc8afaa02700be5b74334605bcb47bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Ba=C5=A1i=C4=87?= Date: Wed, 31 Aug 2022 22:23:40 +0200 Subject: [PATCH 4/7] Apply suggestions from code review Co-authored-by: Arman Bilge --- dom/src/main/scala/org/scalajs/dom/MediaQueryList.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dom/src/main/scala/org/scalajs/dom/MediaQueryList.scala b/dom/src/main/scala/org/scalajs/dom/MediaQueryList.scala index bafcd3e47..79fc3a9c3 100644 --- a/dom/src/main/scala/org/scalajs/dom/MediaQueryList.scala +++ b/dom/src/main/scala/org/scalajs/dom/MediaQueryList.scala @@ -18,7 +18,7 @@ trait MediaQueryList extends EventTarget { def matches: Boolean = js.native /** A string representing a serialized media query. */ - var media: String = js.native + def media: String = js.native /** Adds to the MediaQueryList a callback which is invoked whenever the media query status—whether or not the document * matches the media queries in the list—changes. @@ -27,7 +27,7 @@ trait MediaQueryList extends EventTarget { * watch for the change event. * @deprecated */ - @deprecated("Use addEventListener() instead", "2.3.0") + @deprecated("Use addEventListener() instead", "2.4.0") def addListener(listener: MediaQueryListListener): Unit = js.native /** Removes the specified listener callback from the callbacks to be invoked when the MediaQueryList changes media @@ -38,6 +38,6 @@ trait MediaQueryList extends EventTarget { * to remove change notification callbacks (which should have previously been added using addEventListener()). * @deprecated */ - @deprecated("Use removeEventListener() instead", "2.3.0") + @deprecated("Use removeEventListener() instead", "2.4.0") def removeListener(listener: MediaQueryListListener): Unit = js.native } From f8ea2a1ca58bf2f2279757ec5b16aab64e277eff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Ba=C5=A1i=C4=87?= Date: Wed, 31 Aug 2022 22:40:04 +0200 Subject: [PATCH 5/7] Revert "fix(mediaquerylist): added 2_12.txt" This reverts commit f4938eed2d59200ae94971da244337331939f961. --- api-reports/2_12.txt | 49 ++++++++++++++++++++------------------------ 1 file changed, 22 insertions(+), 27 deletions(-) diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index 8cf56f5e9..9a4935c94 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -1,16 +1,16 @@ -scala-js-dom API -================ - -This is generated automatically on compile via custom Scalafix rule 'GenerateApiReport'. - -Flags: - [J-] = JavaScript type - [S-] = Scala type - [-C] = Class - [-T] = Trait - [-O] = Object - - +scala-js-dom API +================ + +This is generated automatically on compile via custom Scalafix rule 'GenerateApiReport'. + +Flags: + [J-] = JavaScript type + [S-] = Scala type + [-C] = Class + [-T] = Trait + [-O] = Object + + AbortController[JC] def abort(): Unit AbortController[JC] val signal: AbortSignal AbortSignal[JT] def aborted: Boolean @@ -15401,7 +15401,7 @@ Location[JT] def reload(flag: Boolean?): Unit Location[JT] def replace(url: String): Unit Location[JT] var search: String MIMEType[JT] -MIMEType[SO] val `application/xhtml+xml` = "application/xhtml+xml".asInstanceOf[MIMEType] +MIMEType[SO] val `application/xhtml+xml` = "application/xhtml+xml".asInstanceOf[MIMEType] MIMEType[SO] val `application/xml` = "application/xml".asInstanceOf[MIMEType] MIMEType[SO] val `image/svg+xml` = "image/svg+xml".asInstanceOf[MIMEType] MIMEType[SO] val `text/html` = "text/html".asInstanceOf[MIMEType] @@ -15450,15 +15450,10 @@ MediaList[JC] def item(index: Int): String MediaList[JC] def length: Int MediaList[JC] def mediaText: String MediaList[JC] @scala.scalajs.js.annotation.JSBracketAccess def update(index: Int, v: String): Unit -MediaQueryList[JT] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit -MediaQueryList[JT] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit -MediaQueryList[JT] def addListener(listener: MediaQueryListListener): Unit (@deprecated in 2.3.0) -MediaQueryList[JT] def dispatchEvent(evt: Event): Boolean +MediaQueryList[JT] def addListener(listener: MediaQueryListListener): Unit MediaQueryList[JT] def matches: Boolean MediaQueryList[JT] var media: String -MediaQueryList[JT] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit -MediaQueryList[JT] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit -MediaQueryList[JT] def removeListener(listener: MediaQueryListListener): Unit (@deprecated in 2.3.0) +MediaQueryList[JT] def removeListener(listener: MediaQueryListListener): Unit MediaQueryListListener[JT] def apply(mql: MediaQueryList): Unit MediaSource[JC] def activeSourceBuffers: SourceBufferList MediaSource[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit @@ -16116,7 +16111,7 @@ PermissionName[JT] PermissionName[SO] val geolocation: PermissionName PermissionName[SO] val midi: PermissionName PermissionName[SO] val notifications: PermissionName -PermissionName[SO] val `persistent-storage` = "persistent-storage".asInstanceOf[PermissionName] +PermissionName[SO] val `persistent-storage` = "persistent-storage".asInstanceOf[PermissionName] PermissionName[SO] val push: PermissionName PermissionState[JT] PermissionState[SO] val denied: PermissionState @@ -16502,9 +16497,9 @@ RTCSessionDescriptionInit[SO] def apply(`type`: js.UndefOr[RTCSdpType]?, sdp: js RTCSignalingState[JT] RTCSignalingState[SO] val closed: RTCSignalingState RTCSignalingState[SO] val `have-local-offer` = "have-local-offer".asInstanceOf[RTCSignalingState] -RTCSignalingState[SO] val `have-local-pranswer` = "have-local-pranswer".asInstanceOf[RTCSignalingState] +RTCSignalingState[SO] val `have-local-pranswer` = "have-local-pranswer".asInstanceOf[RTCSignalingState] RTCSignalingState[SO] val `have-remote-offer` = "have-remote-offer".asInstanceOf[RTCSignalingState] -RTCSignalingState[SO] val `have-remote-pranswer` = "have-remote-pranswer".asInstanceOf[RTCSignalingState] +RTCSignalingState[SO] val `have-remote-pranswer` = "have-remote-pranswer".asInstanceOf[RTCSignalingState] RTCSignalingState[SO] val stable: RTCSignalingState RTCStats[JT] val id: String RTCStats[JT] val timestamp: Double @@ -16574,9 +16569,9 @@ ReadableStreamUnderlyingSource[JT] var `type`: js.UndefOr[ReadableStreamType] ReferrerPolicy[JT] ReferrerPolicy[SO] val empty: ReferrerPolicy ReferrerPolicy[SO] val `no-referrer` = "no-referrer".asInstanceOf[ReferrerPolicy] -ReferrerPolicy[SO] val `no-referrer-when-downgrade` = "no-referrer-when-downgrade".asInstanceOf[ReferrerPolicy] +ReferrerPolicy[SO] val `no-referrer-when-downgrade` = "no-referrer-when-downgrade".asInstanceOf[ReferrerPolicy] ReferrerPolicy[SO] val `origin-only` = "origin-only".asInstanceOf[ReferrerPolicy] -ReferrerPolicy[SO] val `origin-when-cross-origin` = "origin-when-cross-origin".asInstanceOf[ReferrerPolicy] +ReferrerPolicy[SO] val `origin-when-cross-origin` = "origin-when-cross-origin".asInstanceOf[ReferrerPolicy] ReferrerPolicy[SO] val `unsafe-url` = "unsafe-url".asInstanceOf[ReferrerPolicy] Request[JC] def arrayBuffer(): js.Promise[ArrayBuffer] Request[JC] def blob(): js.Promise[Blob] @@ -27555,4 +27550,4 @@ webworkers[SO] type WorkerGlobalScope = dom.WorkerGlobalScope (@deprecated in 2 webworkers[SO] type WorkerLocation = dom.WorkerLocation (@deprecated in 2.0.0) webworkers[SO] type WorkerNavigator = dom.WorkerNavigator (@deprecated in 2.0.0) webworkers[SO] def self: DedicatedWorkerGlobalScope (@deprecated in 2.0.0) -webworkers.DedicatedWorkerGlobalScope[JO] def self: DedicatedWorkerGlobalScope (@deprecated in 2.0.0) +webworkers.DedicatedWorkerGlobalScope[JO] def self: DedicatedWorkerGlobalScope (@deprecated in 2.0.0) From f4f76dae47f1b3308d36399a2775a88ffb043cf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Ba=C5=A1i=C4=87?= Date: Wed, 31 Aug 2022 23:04:04 +0200 Subject: [PATCH 6/7] feat(mediaquerylist): deprecates MediaQueryListListener --- .../main/scala/org/scalajs/dom/MediaQueryListListener.scala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dom/src/main/scala/org/scalajs/dom/MediaQueryListListener.scala b/dom/src/main/scala/org/scalajs/dom/MediaQueryListListener.scala index c46867533..0914c4c91 100644 --- a/dom/src/main/scala/org/scalajs/dom/MediaQueryListListener.scala +++ b/dom/src/main/scala/org/scalajs/dom/MediaQueryListListener.scala @@ -8,10 +8,8 @@ package org.scalajs.dom import scala.scalajs.js -/** A MediaQueryList object maintains a list of media queries on a document, and handles sending notifications to - * listeners when the media queries on the document change. - */ @js.native +@deprecated("See MediaQueryList for more info", "2.4.0") trait MediaQueryListListener extends js.Object { def apply(mql: MediaQueryList): Unit = js.native } From 3b55eeb3b21b08a5562c9bb2bcb7cce253cf514c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Ba=C5=A1i=C4=87?= Date: Thu, 1 Sep 2022 00:01:01 +0200 Subject: [PATCH 7/7] feat(mediaquerylist): adds api-reports --- api-reports/2_12.txt | 13 +++++++++---- api-reports/2_13.txt | 13 +++++++++---- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index 9a4935c94..6d633f76b 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -15450,11 +15450,16 @@ MediaList[JC] def item(index: Int): String MediaList[JC] def length: Int MediaList[JC] def mediaText: String MediaList[JC] @scala.scalajs.js.annotation.JSBracketAccess def update(index: Int, v: String): Unit -MediaQueryList[JT] def addListener(listener: MediaQueryListListener): Unit +MediaQueryList[JT] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit +MediaQueryList[JT] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit +MediaQueryList[JT] def addListener(listener: MediaQueryListListener): Unit (@deprecated in 2.4.0) +MediaQueryList[JT] def dispatchEvent(evt: Event): Boolean MediaQueryList[JT] def matches: Boolean -MediaQueryList[JT] var media: String -MediaQueryList[JT] def removeListener(listener: MediaQueryListListener): Unit -MediaQueryListListener[JT] def apply(mql: MediaQueryList): Unit +MediaQueryList[JT] def media: String +MediaQueryList[JT] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit +MediaQueryList[JT] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit +MediaQueryList[JT] def removeListener(listener: MediaQueryListListener): Unit (@deprecated in 2.4.0) +MediaQueryListListener[JT] def apply(mql: MediaQueryList): Unit (@deprecated in 2.4.0) MediaSource[JC] def activeSourceBuffers: SourceBufferList MediaSource[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit MediaSource[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit diff --git a/api-reports/2_13.txt b/api-reports/2_13.txt index 9a4935c94..6d633f76b 100644 --- a/api-reports/2_13.txt +++ b/api-reports/2_13.txt @@ -15450,11 +15450,16 @@ MediaList[JC] def item(index: Int): String MediaList[JC] def length: Int MediaList[JC] def mediaText: String MediaList[JC] @scala.scalajs.js.annotation.JSBracketAccess def update(index: Int, v: String): Unit -MediaQueryList[JT] def addListener(listener: MediaQueryListListener): Unit +MediaQueryList[JT] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit +MediaQueryList[JT] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit +MediaQueryList[JT] def addListener(listener: MediaQueryListListener): Unit (@deprecated in 2.4.0) +MediaQueryList[JT] def dispatchEvent(evt: Event): Boolean MediaQueryList[JT] def matches: Boolean -MediaQueryList[JT] var media: String -MediaQueryList[JT] def removeListener(listener: MediaQueryListListener): Unit -MediaQueryListListener[JT] def apply(mql: MediaQueryList): Unit +MediaQueryList[JT] def media: String +MediaQueryList[JT] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit +MediaQueryList[JT] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit +MediaQueryList[JT] def removeListener(listener: MediaQueryListListener): Unit (@deprecated in 2.4.0) +MediaQueryListListener[JT] def apply(mql: MediaQueryList): Unit (@deprecated in 2.4.0) MediaSource[JC] def activeSourceBuffers: SourceBufferList MediaSource[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit MediaSource[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit