1 /* 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 #ifndef WEBRTC_MODULES_VIDEO_CAPTURE_IOS_DEVICE_INFO_IOS_H_ 12 #define WEBRTC_MODULES_VIDEO_CAPTURE_IOS_DEVICE_INFO_IOS_H_ 13 14 #include "webrtc/modules/video_capture/device_info_impl.h" 15 16 namespace webrtc { 17 namespace videocapturemodule { 18 class DeviceInfoIos : public DeviceInfoImpl { 19 public: 20 explicit DeviceInfoIos(const int32_t device_id); 21 virtual ~DeviceInfoIos(); 22 23 // Implementation of DeviceInfoImpl. 24 virtual int32_t Init() OVERRIDE; 25 virtual uint32_t NumberOfDevices() OVERRIDE; 26 virtual int32_t GetDeviceName( 27 uint32_t deviceNumber, 28 char* deviceNameUTF8, 29 uint32_t deviceNameLength, 30 char* deviceUniqueIdUTF8, 31 uint32_t deviceUniqueIdUTF8Length, 32 char* productUniqueIdUTF8 = 0, 33 uint32_t productUniqueIdUTF8Length = 0) OVERRIDE; 34 35 virtual int32_t NumberOfCapabilities(const char* deviceUniqueIdUTF8) OVERRIDE; 36 37 virtual int32_t GetCapability(const char* deviceUniqueIdUTF8, 38 const uint32_t deviceCapabilityNumber, 39 VideoCaptureCapability& capability) OVERRIDE; 40 41 virtual int32_t GetBestMatchedCapability( 42 const char* deviceUniqueIdUTF8, 43 const VideoCaptureCapability& requested, 44 VideoCaptureCapability& resulting) OVERRIDE; 45 46 virtual int32_t DisplayCaptureSettingsDialogBox( 47 const char* deviceUniqueIdUTF8, 48 const char* dialogTitleUTF8, 49 void* parentWindow, 50 uint32_t positionX, 51 uint32_t positionY) OVERRIDE; 52 53 virtual int32_t GetOrientation(const char* deviceUniqueIdUTF8, 54 VideoCaptureRotation& orientation) OVERRIDE; 55 56 virtual int32_t CreateCapabilityMap( 57 const char* device_unique_id_utf8) OVERRIDE; 58 }; 59 60 } // namespace videocapturemodule 61 } // namespace webrtc 62 63 #endif // WEBRTC_MODULES_VIDEO_CAPTURE_IOS_DEVICE_INFO_IOS_H_ 64