Chromium Code Reviews| Index: media/base/mac/avfoundation_glue.h |
| diff --git a/media/base/mac/avfoundation_glue.h b/media/base/mac/avfoundation_glue.h |
| index c1b8aa8f0edb05f11a6aac2c3a56e892c4acb3ae..df54ae0aed96229efafd6a808de9d4f3d6ca3b45 100644 |
| --- a/media/base/mac/avfoundation_glue.h |
| +++ b/media/base/mac/avfoundation_glue.h |
| @@ -12,7 +12,9 @@ |
| #ifndef MEDIA_BASE_MAC_AVFOUNDATION_GLUE_H_ |
| #define MEDIA_BASE_MAC_AVFOUNDATION_GLUE_H_ |
| +#if defined(__OBJC__) |
|
jam
2015/05/26 23:13:47
why are all these changes needed in this file? sho
tommi (sloooow) - chröme
2015/05/27 09:11:02
It's only defined when building .mm files, not whe
|
| #import <Foundation/Foundation.h> |
| +#endif // defined(__OBJC__) |
| #include "base/basictypes.h" |
| #include "media/base/mac/coremedia_glue.h" |
| @@ -20,10 +22,15 @@ |
| class MEDIA_EXPORT AVFoundationGlue { |
| public: |
| + // Must be called on the UI thread prior to attempting to use any other |
| + // AVFoundation methods. |
| + static void InitializeAVFoundation(); |
| + |
| // This method returns true if the OS version supports AVFoundation and the |
| // AVFoundation bundle could be loaded correctly, or false otherwise. |
| static bool IsAVFoundationSupported(); |
| +#if defined(__OBJC__) |
| static NSBundle const* AVFoundationBundle(); |
| // Originally coming from AVCaptureDevice.h but in global namespace. |
| @@ -46,11 +53,14 @@ class MEDIA_EXPORT AVFoundationGlue { |
| static Class AVCaptureSessionClass(); |
| static Class AVCaptureVideoDataOutputClass(); |
| +#endif // defined(__OBJC__) |
| private: |
| DISALLOW_IMPLICIT_CONSTRUCTORS(AVFoundationGlue); |
| }; |
| +#if defined(__OBJC__) |
| + |
| // Originally AVCaptureDevice and coming from AVCaptureDevice.h |
| MEDIA_EXPORT |
| @interface CrAVCaptureDevice : NSObject |
| @@ -167,4 +177,6 @@ MEDIA_EXPORT |
| @end |
| +#endif // defined(__OBJC__) |
| + |
| #endif // MEDIA_BASE_MAC_AVFOUNDATION_GLUE_H_ |