<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <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#c4">Comment # 4</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:bdakin&#64;apple.com" title="Beth Dakin &lt;bdakin&#64;apple.com&gt;"> <span class="fn">Beth Dakin</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=164789#c3">comment #3</a>)
<span class="quote">&gt; 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>
&gt; Patch
&gt; 
&gt; View in context:
&gt; <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>
&gt; 
&gt; &gt; Source/WebCore/platform/mac/WebPlaybackControlsManager.h:29
&gt; &gt; +#import &quot;AVKitSPI.h&quot;
&gt; 
&gt; Since this is a framework header, it should import other WebCore headers
&gt; using &lt;WebCore/ syntax.
&gt; </span >
Okay!

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

Fixed!

<span class="quote">&gt; &gt; Source/WebCore/platform/mac/WebPlaybackControlsManager.h:65
&gt; &gt; +&#64;property NSTimeInterval seekToTime;
&gt; 
&gt; This could probably be nonatomic (as could may other properties here).
&gt; 
&gt; &gt; Source/WebCore/platform/mac/WebPlaybackControlsManager.h:68
&gt; &gt; +&#64;property BOOL hasEnabledAudio;
&gt; &gt; +&#64;property BOOL hasEnabledVideo;
&gt; 
&gt; Can be nonatomic.
&gt; </span >

Added nonatomic.

<span class="quote">&gt; &gt; Source/WebCore/platform/mac/WebPlaybackControlsManager.h:70
&gt; &gt; +&#64;property (nonatomic, retain, readwrite) NSArray&lt;AVFunctionBarMediaSelectionOption *&gt; *audioFunctionBarMediaSelectionOptions;
&gt; &gt; +&#64;property (nonatomic, retain, readwrite) NSArray&lt;AVFunctionBarMediaSelectionOption *&gt; *legibleFunctionBarMediaSelectionOptions;
&gt; 
&gt; We normally omit “readwrite” when possible. It’s a little unusual for a
&gt; property whose value is NSArray to be “retain” rather than “copy”.
&gt; </span >

We discussed this on irc and agreed that this can be removed from the header because it's a part of the protocol.

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

Fixed.

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

Fixed.

<span class="quote">&gt; &gt; Source/WebCore/platform/mac/WebPlaybackControlsManager.mm:132
&gt; &gt; +    _audioFunctionBarMediaSelectionOptions = audioOptions;
&gt; 
&gt; I’d make a copy of audioOptions here (and change the property from “retain”
&gt; to “copy”.
&gt; </span >

See above.

<span class="quote">&gt; &gt; Source/WebCore/platform/mac/WebPlaybackControlsManager.mm:149
&gt; &gt; +    if (audioMediaSelectionOption &amp;&amp; self.audioFunctionBarMediaSelectionOptions)
&gt; 
&gt; We normally don’t use trivial accessors from within a class’s own
&gt; implementation, but just use the ivar directly.
&gt; </span >

Fixed.

<span class="quote">&gt; &gt; Source/WebCore/platform/mac/WebPlaybackControlsManager.mm:162
&gt; &gt; +    _legibleFunctionBarMediaSelectionOptions = legibleOptions;
&gt; 
&gt; I’d make a copy of legibleOptions here (and change the property from
&gt; “retain” to “copy”.</span >


See above.

Thank you!!</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>