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

Side by Side Diff: webrtc/api/objc/RTCMediaStream.h

Issue 1773743002: Restore type attributes and remove extraneous nullability annotations for Objective-C Mac build (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « webrtc/api/objc/RTCMediaConstraints+Private.h ('k') | webrtc/api/objc/RTCMediaStream.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <Foundation/Foundation.h> 11 #import <Foundation/Foundation.h>
12 12
13 NS_ASSUME_NONNULL_BEGIN 13 NS_ASSUME_NONNULL_BEGIN
14 // TODO(hjon): Update nullability types. See http://crbug/webrtc/5592
15 14
16 @class RTCAudioTrack; 15 @class RTCAudioTrack;
17 @class RTCPeerConnectionFactory; 16 @class RTCPeerConnectionFactory;
18 @class RTCVideoTrack; 17 @class RTCVideoTrack;
19 18
20 @interface RTCMediaStream : NSObject 19 @interface RTCMediaStream : NSObject
21 20
22 /** The audio tracks in this stream. */ 21 /** The audio tracks in this stream. */
23 @property(nonatomic, strong, readonly) NSArray *audioTracks; 22 @property(nonatomic, strong, readonly) NSArray<RTCAudioTrack *> *audioTracks;
24 // @property(nonatomic, strong, readonly) NSArray<RTCAudioTrack *> *audioTracks;
25 23
26 /** The video tracks in this stream. */ 24 /** The video tracks in this stream. */
27 @property(nonatomic, strong, readonly) NSArray *videoTracks; 25 @property(nonatomic, strong, readonly) NSArray<RTCVideoTrack *> *videoTracks;
28 // @property(nonatomic, strong, readonly) NSArray<RTCVideoTrack *> *videoTracks;
29 26
30 /** An identifier for this media stream. */ 27 /** An identifier for this media stream. */
31 @property(nonatomic, readonly) NSString *streamId; 28 @property(nonatomic, readonly) NSString *streamId;
32 29
33 - (instancetype)init NS_UNAVAILABLE; 30 - (instancetype)init NS_UNAVAILABLE;
34 31
35 /** Initialize an RTCMediaStream with an id. */ 32 /** Initialize an RTCMediaStream with an id. */
36 - (instancetype)initWithFactory:(RTCPeerConnectionFactory *)factory 33 - (instancetype)initWithFactory:(RTCPeerConnectionFactory *)factory
37 streamId:(NSString *)streamId; 34 streamId:(NSString *)streamId;
38 35
39 /** Adds the given audio track to this media stream. */ 36 /** Adds the given audio track to this media stream. */
40 - (void)addAudioTrack:(RTCAudioTrack *)audioTrack; 37 - (void)addAudioTrack:(RTCAudioTrack *)audioTrack;
41 38
42 /** Adds the given video track to this media stream. */ 39 /** Adds the given video track to this media stream. */
43 - (void)addVideoTrack:(RTCVideoTrack *)videoTrack; 40 - (void)addVideoTrack:(RTCVideoTrack *)videoTrack;
44 41
45 /** Removes the given audio track to this media stream. */ 42 /** Removes the given audio track to this media stream. */
46 - (void)removeAudioTrack:(RTCAudioTrack *)audioTrack; 43 - (void)removeAudioTrack:(RTCAudioTrack *)audioTrack;
47 44
48 /** Removes the given video track to this media stream. */ 45 /** Removes the given video track to this media stream. */
49 - (void)removeVideoTrack:(RTCVideoTrack *)videoTrack; 46 - (void)removeVideoTrack:(RTCVideoTrack *)videoTrack;
50 47
51 @end 48 @end
52 49
53 NS_ASSUME_NONNULL_END 50 NS_ASSUME_NONNULL_END
OLDNEW
« no previous file with comments | « webrtc/api/objc/RTCMediaConstraints+Private.h ('k') | webrtc/api/objc/RTCMediaStream.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698