Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(586)

Side by Side Diff: webrtc/modules/video_capture/objc/device_info.h

Issue 2309253005: Unify the macOS and iOS capturer implementations (Closed)
Patch Set: apple -> objc Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_MODULES_VIDEO_CAPTURE_IOS_DEVICE_INFO_IOS_H_ 11 #ifndef WEBRTC_MODULES_VIDEO_CAPTURE_OBJC_DEVICE_INFO_H_
12 #define WEBRTC_MODULES_VIDEO_CAPTURE_IOS_DEVICE_INFO_IOS_H_ 12 #define WEBRTC_MODULES_VIDEO_CAPTURE_OBJC_DEVICE_INFO_H_
13 13
14 #include "webrtc/modules/video_capture/device_info_impl.h" 14 #include "webrtc/modules/video_capture/device_info_impl.h"
15 15
16 #include <map> 16 #include <map>
17 #include <string>
17 18
18 namespace webrtc { 19 namespace webrtc {
19 namespace videocapturemodule { 20 namespace videocapturemodule {
20 class DeviceInfoIos : public DeviceInfoImpl { 21 class DeviceInfoIos : public DeviceInfoImpl {
tkchin_webrtc 2016/09/28 09:21:06 typically file name = class name not as familiar w
kthelgason 2016/09/28 11:01:43 I can't find any specific mention of this in the s
21 public: 22 public:
22 explicit DeviceInfoIos(const int32_t device_id); 23 explicit DeviceInfoIos(const int32_t device_id);
23 virtual ~DeviceInfoIos(); 24 virtual ~DeviceInfoIos();
24 25
25 // Implementation of DeviceInfoImpl. 26 // Implementation of DeviceInfoImpl.
26 int32_t Init() override; 27 int32_t Init() override;
27 uint32_t NumberOfDevices() override; 28 uint32_t NumberOfDevices() override;
28 int32_t GetDeviceName(uint32_t deviceNumber, 29 int32_t GetDeviceName(uint32_t deviceNumber,
29 char* deviceNameUTF8, 30 char* deviceNameUTF8,
30 uint32_t deviceNameLength, 31 uint32_t deviceNameLength,
(...skipping 19 matching lines...) Expand all
50 51
51 int32_t CreateCapabilityMap(const char* device_unique_id_utf8) override; 52 int32_t CreateCapabilityMap(const char* device_unique_id_utf8) override;
52 53
53 private: 54 private:
54 std::map<std::string, VideoCaptureCapabilities> _capabilitiesMap; 55 std::map<std::string, VideoCaptureCapabilities> _capabilitiesMap;
55 }; 56 };
56 57
57 } // namespace videocapturemodule 58 } // namespace videocapturemodule
58 } // namespace webrtc 59 } // namespace webrtc
59 60
60 #endif // WEBRTC_MODULES_VIDEO_CAPTURE_IOS_DEVICE_INFO_IOS_H_ 61 #endif // WEBRTC_MODULES_VIDEO_CAPTURE_OBJC_DEVICE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698