<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Media Session: let UI clients query whether a media element is paused"
href="https://bugs.webkit.org/show_bug.cgi?id=147588#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Media Session: let UI clients query whether a media element is paused"
href="https://bugs.webkit.org/show_bug.cgi?id=147588">bug 147588</a>
from <span class="vcard"><a class="email" href="mailto:thorton@apple.com" title="Tim Horton <thorton@apple.com>"> <span class="fn">Tim Horton</span></a>
</span></b>
<pre>Comment on <span class=""><a href="attachment.cgi?id=258134&action=diff" name="attach_258134" title="Patch">attachment 258134</a> <a href="attachment.cgi?id=258134&action=edit" title="Patch">[details]</a></span>
Patch
View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=258134&action=review">https://bugs.webkit.org/attachment.cgi?id=258134&action=review</a>
<span class="quote">> Source/WebKit2/WebProcess/WebPage/WebPage.cpp:4072
> + send(Messages::WebPageProxy::DidGetIsMediaElementPaused(callbackID, paused));</span >
You could/should use the GenericCallback (specifically UnsignedCallback) mechanism here. Look around for examples. And probably your API (which oddly, I don't see here) should let people provide a block/function to call back (look at WKPageForceRepaint for an example, though that one doesn't return a value).
<span class="quote">> Source/WebKit2/WebProcess/WebPage/WebPage.h:753
> + void getIsMediaElementPaused(uint64_t, uint64_t);</span >
No "get" here; we usually reserve that for functions with out arguments.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>