RESOLVED FIXED 144392
[Mac] Use new device picker menu API
https://bugs.webkit.org/show_bug.cgi?id=144392
Summary [Mac] Use new device picker menu API
Eric Carlson
Reported 2015-04-29 09:35:50 PDT
Use the new API.
Attachments
Proposed patch. (10.79 KB, patch)
2015-04-29 10:55 PDT, Eric Carlson
no flags
Eric Carlson
Comment 1 2015-04-29 09:36:24 PDT
Eric Carlson
Comment 2 2015-04-29 10:55:00 PDT
Created attachment 251967 [details] Proposed patch.
WebKit Commit Bot
Comment 3 2015-04-29 10:56:41 PDT
Attachment 251967 [details] did not pass style-queue: ERROR: Source/WebCore/platform/graphics/avfoundation/objc/MediaPlaybackTargetPickerMac.mm:53: Should have a space between // and comment [whitespace/comments] [4] Total errors found: 1 in 6 files If any of these errors are false positives, please file a bug against check-webkit-style.
Jer Noble
Comment 4 2015-04-29 11:02:44 PDT
Comment on attachment 251967 [details] Proposed patch. View in context: https://bugs.webkit.org/attachment.cgi?id=251967&action=review r=me, with nits > Source/WebCore/platform/graphics/MediaPlaybackTargetPicker.h:53 > - virtual void showPlaybackTargetPicker(const FloatRect&, bool); > + virtual void showPlaybackTargetPicker(const FloatRect&, bool /*checkActiveRoute*/); nit: We should either not add a comment, or add the parameter name without a comment. > Source/WebCore/platform/graphics/avfoundation/objc/MediaPlaybackTargetPickerMac.h:47 > - virtual void showPlaybackTargetPicker(const FloatRect&, bool) override; > + virtual void showPlaybackTargetPicker(const FloatRect&, bool /*checkActiveRoute*/) override; Ditto. > Source/WebCore/platform/graphics/avfoundation/objc/MediaPlaybackTargetPickerMac.h:60 > + OutputeDeviceAvailabilityChanged = 1 << 0, Nit: Outpute > Source/WebCore/platform/graphics/avfoundation/objc/MediaPlaybackTargetPickerMac.mm:150 > + m_pendingActionTimer.stop(); > + m_pendingActionTimer.startOneShot(0); The .stop() isn't necessary. startOneShot() will stop the timer before re-targetting.
Eric Carlson
Comment 5 2015-04-29 11:10:00 PDT
Note You need to log in before you can comment on or make changes to this bug.