<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#c6">Comment # 6</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:mrajca&#64;apple.com" title="Matt Rajca &lt;mrajca&#64;apple.com&gt;"> <span class="fn">Matt Rajca</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=147588#c4">comment #4</a>)
<span class="quote">&gt; Comment on <span class="bz_obsolete"><a href="attachment.cgi?id=258134&amp;action=diff" name="attach_258134" title="Patch">attachment 258134</a> <a href="attachment.cgi?id=258134&amp;action=edit" title="Patch">[details]</a></span>
&gt; Patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=258134&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=258134&amp;action=review</a>
&gt; 
&gt; &gt; Source/WebKit2/WebProcess/WebPage/WebPage.cpp:4072
&gt; &gt; +    send(Messages::WebPageProxy::DidGetIsMediaElementPaused(callbackID, paused));
&gt; 
&gt; You could/should use the GenericCallback (specifically UnsignedCallback)
&gt; mechanism here. Look around for examples. And probably your API (which
&gt; oddly, I don't see here) should let people provide a block/function to call
&gt; back (look at WKPageForceRepaint for an example, though that one doesn't
&gt; return a value).</span >

I do use GenericCallback. I didn't realize I could just use UnsignedCallback instead of writing custom callbacks. Sending out a new revision.

<span class="quote">&gt; 
&gt; &gt; Source/WebKit2/WebProcess/WebPage/WebPage.h:753
&gt; &gt; +    void getIsMediaElementPaused(uint64_t, uint64_t);
&gt; 
&gt; No &quot;get&quot; here; we usually reserve that for functions with out arguments.</span >

Renamed.</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>