Summary: | Add MediaSession.callActionHandler | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Jean-Yves Avenard [:jya] <jean-yves.avenard> | ||||||||
Component: | Media | Assignee: | Jean-Yves Avenard [:jya] <jean-yves.avenard> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | cdumez, eric.carlson, esprehn+autocc, ews-watchlist, glenn, jer.noble, kondapallykalyan, peng.liu6, philipj, sergio, webkit-bug-importer | ||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||
Version: | WebKit Nightly Build | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Attachments: |
|
Description
Jean-Yves Avenard [:jya]
2021-05-21 04:31:11 PDT
Created attachment 429283 [details]
Patch
Comment on attachment 429283 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=429283&action=review > Source/WebCore/Modules/mediasession/MediaSession.cpp:288 > +bool MediaSession::callActionHandler(const MediaSessionActionDetails& actionDetails, TriggerGestureIndicator triggerGestureIndicator ) Nit. An extra space. > Source/WebCore/Modules/mediasession/MediaSession.h:94 > + Yes, Normally we define `No` as the first value in an enum class. Comment on attachment 429283 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=429283&action=review > Source/WebCore/Modules/mediasession/MediaSession.cpp:291 > + Optional<UserGestureIndicator> maybeGestureIndicator; The existing pattern in WebKit seems to be: UserGestureIndicator gestureIndicator(triggerGestureIndicator == TriggerGestureIndicator::Yes ? makeOptional(ProcessingUserGesture) : WTF::nullopt); >> Source/WebCore/Modules/mediasession/MediaSession.h:94 >> + Yes, > > Normally we define `No` as the first value in an enum class. +1 (so that No = 0, Yes = 1) Created attachment 429877 [details]
Patch
Apply comments
Comment on attachment 429877 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=429877&action=review > Source/WebCore/ChangeLog:6 > + It would be good to have a description of why we are making this change. Created attachment 429985 [details]
Patch
Committed r278222 (238260@main): <https://commits.webkit.org/238260@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 429985 [details]. |