[Webkit-unassigned] [Bug 147629] Media Session: add a focus manager that WebKit clients can use to access the focused media element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 4 16:29:18 PDT 2015


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

--- Comment #7 from Tim Horton <thorton at apple.com> ---
Comment on attachment 258191
  --> https://bugs.webkit.org/attachment.cgi?id=258191
Patch

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

> Source/WebKit2/UIProcess/WebMediaSessionFocusManager.cpp:67
> +    ASSERT(proxy);

No real need for this assert if you're just going to go ahead and dereference the null pointer two lines away.

> Source/WebKit2/UIProcess/WebMediaSessionFocusManager.h:38
> +typedef std::tuple<WebPageProxy*, uint64_t> FocusedMediaElement;

might be clearer if this is a std::pair? then you don't have the fairly surprising std::get in the impl. Unless you're planning to add more components.

> Source/WebKit2/UIProcess/WebMediaSessionFocusManager.h:40
> +class WebMediaSessionFocusManager: public API::ObjectImpl<API::Object::Type::MediaSessionFocusManager>, public WebContextSupplement {

space before the colon

> Source/WebKit2/WebKit2.xcodeproj/project.pbxproj:-7626
> -				15739BBD1B42042D00D258C1 /* WebUserMediaClient.h in Headers */,

This patch is doing a surprising about of xcodeproj reordering.

-- 
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/20150804/42d14afd/attachment.html>


More information about the webkit-unassigned mailing list