-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop captureHandle() from the event #57
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jan-ivar
requested changes
May 3, 2022
identity/index.html
Outdated
Comment on lines
369
to
372
[Exposed=Window] | ||
interface CaptureHandleChangeEvent : Event { | ||
constructor(optional CaptureHandleChangeEventInit init = {}); | ||
[SameObject] CaptureHandle captureHandle(); | ||
constructor(); | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A new interface is only necessary to add custom members, so we should remove it entirely, or it is JS-observable. E.g. WebRTC has several events that are plain.
Co-authored-by: Jan-Ivar Bruaroey <[email protected]>
aarongable
pushed a commit
to chromium/chromium
that referenced
this pull request
May 3, 2022
Because the event is fired synchronously, rather than from a queued task, there is no need to make a distinction between the value of track.getCaptureHandle() and the value at the time the event was fired. Therefore, this CL removes the momentary value of the Capture Handle at the time the event was fired. Applications can instead read that value through calls to `event.target.getCaptureHandle()`. PR: w3c/mediacapture-handle#57 Bug: 1322174 Change-Id: Iffe4bdafb3900fe4f1ccac83aaee5e5a06f9ffaf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3625272 Commit-Queue: Yoav Weiss <[email protected]> Reviewed-by: Fr <[email protected]> Commit-Queue: Elad Alon <[email protected]> Auto-Submit: Elad Alon <[email protected]> Reviewed-by: Yoav Weiss <[email protected]> Cr-Commit-Position: refs/heads/main@{#999143}
beaufortfrancois
suggested changes
May 4, 2022
Editor's can integrate once all CaptureHandleChangeEvent WebIDL is removed. |
darinwf
pushed a commit
to neevaco/chromium
that referenced
this pull request
Jun 2, 2022
Because the event is fired synchronously, rather than from a queued task, there is no need to make a distinction between the value of track.getCaptureHandle() and the value at the time the event was fired. Therefore, this CL removes the momentary value of the Capture Handle at the time the event was fired. Applications can instead read that value through calls to `event.target.getCaptureHandle()`. PR: w3c/mediacapture-handle#57 (cherry picked from commit 2646271) Bug: 1322174 Change-Id: Iffe4bdafb3900fe4f1ccac83aaee5e5a06f9ffaf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3625272 Commit-Queue: Yoav Weiss <[email protected]> Reviewed-by: Fr <[email protected]> Commit-Queue: Elad Alon <[email protected]> Auto-Submit: Elad Alon <[email protected]> Reviewed-by: Yoav Weiss <[email protected]> Cr-Original-Commit-Position: refs/heads/main@{#999143} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3629197 Owners-Override: Srinivas Sista <[email protected]> Commit-Queue: Srinivas Sista <[email protected]> Reviewed-by: Srinivas Sista <[email protected]> Cr-Commit-Position: refs/branch-heads/5005@{#466} Cr-Branched-From: 5b4d945-refs/heads/main@{#992738}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #50.