[Webkit-unassigned] [Bug 145530] Add stub implementation of MediaSession, part of Media Session spec
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jun 1 17:06:10 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=145530
Darin Adler <darin at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #254028|review? |review-
Flags| |
--- Comment #3 from Darin Adler <darin at apple.com> ---
Comment on attachment 254028
--> https://bugs.webkit.org/attachment.cgi?id=254028
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=254028&action=review
If we have MediaSession.idl we need to have JSMediaSession.cpp and JSMediaSession.h.
> Source/WebCore/Modules/mediasession/MediaSession.h:32
> +#include <wtf/RefCounted.h>
If we include "MediaRemoteControls.h" it seems unlikely we need to include this also.
> Source/WebCore/Modules/mediasession/MediaSession.h:33
> +#include <wtf/RefPtr.h>
Ditto.
> Source/WebCore/Modules/mediasession/MediaSession.h:37
> +class MediaSession : public RefCounted<MediaSession> {
I suggest marking this class final.
> Source/WebCore/Modules/mediasession/MediaSession.h:46
> + MediaSession(ScriptExecutionContext&, Kind);
Does this compile? Does the bindings generator really turn those strings into MediaSession::Kind values?
> Source/WebCore/Modules/mediasession/MediaSession.h:47
> + virtual ~MediaSession();
Why virtual? There doesnât seem to be any polymorphism in this class, so it seems we should avoid marking it virtual.
> Source/WebCore/Modules/mediasession/MediaSession.h:50
> + MediaRemoteControls *controls() const { return m_controls.get(); }
Wrong position of the * character here.
--
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/20150602/c08e89fa/attachment-0001.html>
More information about the webkit-unassigned
mailing list