OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 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 #import "RTCMediaConstraints.h" | 11 #import "RTCMediaConstraints.h" |
12 | 12 |
13 #include "webrtc/api/mediaconstraintsinterface.h" | 13 #include "webrtc/api/mediaconstraintsinterface.h" |
14 #include "webrtc/base/scoped_ptr.h" | 14 #include "webrtc/base/scoped_ptr.h" |
15 | 15 |
16 // TODO(hjon): Update nullability types. See http://crbug/webrtc/5592 | |
17 | |
18 namespace webrtc { | 16 namespace webrtc { |
19 | 17 |
20 class MediaConstraints : public MediaConstraintsInterface { | 18 class MediaConstraints : public MediaConstraintsInterface { |
21 public: | 19 public: |
22 virtual ~MediaConstraints(); | 20 virtual ~MediaConstraints(); |
23 MediaConstraints(); | 21 MediaConstraints(); |
24 MediaConstraints( | 22 MediaConstraints( |
25 const MediaConstraintsInterface::Constraints& mandatory, | 23 const MediaConstraintsInterface::Constraints& mandatory, |
26 const MediaConstraintsInterface::Constraints& optional); | 24 const MediaConstraintsInterface::Constraints& optional); |
27 virtual const Constraints& GetMandatory() const; | 25 virtual const Constraints& GetMandatory() const; |
(...skipping 13 matching lines...) Expand all Loading... |
41 | 39 |
42 /** | 40 /** |
43 * A MediaConstraints representation of this RTCMediaConstraints object. This is | 41 * A MediaConstraints representation of this RTCMediaConstraints object. This is |
44 * needed to pass to the underlying C++ APIs. | 42 * needed to pass to the underlying C++ APIs. |
45 */ | 43 */ |
46 - (rtc::scoped_ptr<webrtc::MediaConstraints>)nativeConstraints; | 44 - (rtc::scoped_ptr<webrtc::MediaConstraints>)nativeConstraints; |
47 | 45 |
48 /** Return a native Constraints object representing these constraints */ | 46 /** Return a native Constraints object representing these constraints */ |
49 + (webrtc::MediaConstraintsInterface::Constraints) | 47 + (webrtc::MediaConstraintsInterface::Constraints) |
50 nativeConstraintsForConstraints: | 48 nativeConstraintsForConstraints: |
51 (NSDictionary *)constraints; | 49 (NSDictionary<NSString *, NSString *> *)constraints; |
52 // (NSDictionary<NSString *, NSString *> *)constraints; | |
53 | 50 |
54 @end | 51 @end |
55 | 52 |
56 NS_ASSUME_NONNULL_END | 53 NS_ASSUME_NONNULL_END |
OLD | NEW |