[Webkit-unassigned] [Bug 147802] Media Session: notify the UI process when media controls are enabled/disabled

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 12 11:39:54 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=147802

Eric Carlson <eric.carlson at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #258684|review?                     |review+
              Flags|                            |

--- Comment #14 from Eric Carlson <eric.carlson at apple.com> ---
Comment on attachment 258684
  --> https://bugs.webkit.org/attachment.cgi?id=258684
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=258684&action=review

>>> Source/WebCore/Modules/mediasession/MediaSession.cpp:74
>>> +        m_controls = adoptRef(*new MediaRemoteControls(context, this));
>> 
>> Why doesn't this use MediaRemoteControls::create() (which would need an extra parameter)?
> 
> The bindings generator expects only one parameter (the ScriptExecutionContext) so I can't add another one. Since the only case where we need to store a backpointer to the media session is this one, I just create the object directly.

Can't you make a second MediaRemoteControls::create method and use it here? That will also allow you to make the MediaRemoteControls constructor private, which is the preferred pattern when possible in WebKit.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150812/1181b470/attachment.html>


More information about the webkit-unassigned mailing list