<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:mitz&#64;webkit.org" title="mitz&#64;webkit.org &lt;mitz&#64;webkit.org&gt;"> <span class="fn">mitz&#64;webkit.org</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Implement WebPlaybackControlsManager"
   href="https://bugs.webkit.org/show_bug.cgi?id=164789">bug 164789</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Attachment #294876 Flags</td>
           <td>review?
           </td>
           <td>review+
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Implement WebPlaybackControlsManager"
   href="https://bugs.webkit.org/show_bug.cgi?id=164789#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Implement WebPlaybackControlsManager"
   href="https://bugs.webkit.org/show_bug.cgi?id=164789">bug 164789</a>
              from <span class="vcard"><a class="email" href="mailto:mitz&#64;webkit.org" title="mitz&#64;webkit.org &lt;mitz&#64;webkit.org&gt;"> <span class="fn">mitz&#64;webkit.org</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=294876&amp;action=diff" name="attach_294876" title="Patch">attachment 294876</a> <a href="attachment.cgi?id=294876&amp;action=edit" title="Patch">[details]</a></span>
Patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=294876&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=294876&amp;action=review</a>

<span class="quote">&gt; Source/WebCore/platform/mac/WebPlaybackControlsManager.h:29
&gt; +#import &quot;AVKitSPI.h&quot;</span >

Since this is a framework header, it should import other WebCore headers using &lt;WebCore/ syntax.

<span class="quote">&gt; Source/WebCore/platform/mac/WebPlaybackControlsManager.h:42
&gt; +&#64;interface WebPlaybackControlsManager : NSObject&lt;AVFunctionBarPlaybackControlsControlling&gt; {</span >

Missing space before the &lt;.

<span class="quote">&gt; Source/WebCore/platform/mac/WebPlaybackControlsManager.h:65
&gt; +&#64;property NSTimeInterval seekToTime;</span >

This could probably be nonatomic (as could may other properties here).

<span class="quote">&gt; Source/WebCore/platform/mac/WebPlaybackControlsManager.h:68
&gt; +&#64;property BOOL hasEnabledAudio;
&gt; +&#64;property BOOL hasEnabledVideo;</span >

Can be nonatomic.

<span class="quote">&gt; Source/WebCore/platform/mac/WebPlaybackControlsManager.h:70
&gt; +&#64;property (nonatomic, retain, readwrite) NSArray&lt;AVFunctionBarMediaSelectionOption *&gt; *audioFunctionBarMediaSelectionOptions;
&gt; +&#64;property (nonatomic, retain, readwrite) NSArray&lt;AVFunctionBarMediaSelectionOption *&gt; *legibleFunctionBarMediaSelectionOptions;</span >

We normally omit “readwrite” when possible. It’s a little unusual for a property whose value is NSArray to be “retain” rather than “copy”.

<span class="quote">&gt; Source/WebCore/platform/mac/WebPlaybackControlsManager.mm:98
&gt; +    completionHandler(&#64;[], nil);</span >

Missing space between the brackets.

<span class="quote">&gt; Source/WebCore/platform/mac/WebPlaybackControlsManager.mm:104
&gt; +    completionHandler(&#64;[], nil);</span >

Ditto.

<span class="quote">&gt; Source/WebCore/platform/mac/WebPlaybackControlsManager.mm:132
&gt; +    _audioFunctionBarMediaSelectionOptions = audioOptions;</span >

I’d make a copy of audioOptions here (and change the property from “retain” to “copy”.

<span class="quote">&gt; Source/WebCore/platform/mac/WebPlaybackControlsManager.mm:149
&gt; +    if (audioMediaSelectionOption &amp;&amp; self.audioFunctionBarMediaSelectionOptions)</span >

We normally don’t use trivial accessors from within a class’s own implementation, but just use the ivar directly.

<span class="quote">&gt; Source/WebCore/platform/mac/WebPlaybackControlsManager.mm:162
&gt; +    _legibleFunctionBarMediaSelectionOptions = legibleOptions;</span >

I’d make a copy of legibleOptions here (and change the property from “retain” to “copy”.</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>