[Mac] Fix build breakage caused by API deprecation
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 May 2015 20:36:13 +0000 (20:36 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 May 2015 20:36:13 +0000 (20:36 +0000)
https://bugs.webkit.org/show_bug.cgi?id=144593

* platform/graphics/avfoundation/objc/MediaPlaybackTargetPickerMac.mm:
(WebCore::MediaPlaybackTargetPickerMac::showPlaybackTargetPicker): Suppress warnings.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@183767 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/avfoundation/objc/MediaPlaybackTargetPickerMac.mm

index 18df65a..d080389 100644 (file)
@@ -1,3 +1,11 @@
+2015-05-04  Eric Carlson  <eric.carlson@apple.com>
+
+        [Mac] Fix build breakage caused by API deprecation
+        https://bugs.webkit.org/show_bug.cgi?id=144593
+
+        * platform/graphics/avfoundation/objc/MediaPlaybackTargetPickerMac.mm:
+        (WebCore::MediaPlaybackTargetPickerMac::showPlaybackTargetPicker): Suppress warnings.
+
 2015-05-04  Chris Dumez  <cdumez@apple.com>
 
         REGRESSION (r178156): CSS Parser incorrectly rejects valid calc() in padding-right property
index 00e66c2..5afe56c 100644 (file)
@@ -130,6 +130,8 @@ AVOutputDeviceMenuControllerType *MediaPlaybackTargetPickerMac::devicePicker()
     return m_outputDeviceMenuController.get();
 }
 
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
 void MediaPlaybackTargetPickerMac::showPlaybackTargetPicker(const FloatRect& location, bool checkActiveRoute)
 {
     if (!m_client)
@@ -140,8 +142,9 @@ void MediaPlaybackTargetPickerMac::showPlaybackTargetPicker(const FloatRect& loc
         if ([picker showMenuForRect:location appearanceName:NSAppearanceNameVibrantLight allowReselectionOfSelectedOutputDevice:!checkActiveRoute])
             currentDeviceDidChange();
     } else
-        [picker showMenuForRect:location appearanceName:NSAppearanceNameVibrantLight allowReselectionOfSelectedOutputDevice:NO];
+        [picker showMenuForRect:location appearanceName:NSAppearanceNameVibrantLight];
 }
+#pragma clang diagnostic pop
 
 void MediaPlaybackTargetPickerMac::addPendingAction(PendingActionFlags action)
 {