| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2014 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 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 @end | 41 @end |
| 42 | 42 |
| 43 @interface APPRTCMainView () <NSTextFieldDelegate, RTCNSGLVideoViewDelegate> | 43 @interface APPRTCMainView () <NSTextFieldDelegate, RTCNSGLVideoViewDelegate> |
| 44 @end | 44 @end |
| 45 @implementation APPRTCMainView { | 45 @implementation APPRTCMainView { |
| 46 NSScrollView* _scrollView; | 46 NSScrollView* _scrollView; |
| 47 NSTextField* _roomLabel; | 47 NSTextField* _roomLabel; |
| 48 NSTextField* _roomField; | 48 NSTextField* _roomField; |
| 49 NSTextView* _logView; | 49 NSTextView* _logView; |
| 50 RTCNSGLVideoView* _localVideoView; | |
| 51 RTCNSGLVideoView* _remoteVideoView; | |
| 52 CGSize _localVideoSize; | 50 CGSize _localVideoSize; |
| 53 CGSize _remoteVideoSize; | 51 CGSize _remoteVideoSize; |
| 54 } | 52 } |
| 55 | 53 |
| 54 @synthesize delegate = _delegate; |
| 55 @synthesize localVideoView = _localVideoView; |
| 56 @synthesize remoteVideoView = _remoteVideoView; |
| 57 |
| 56 + (BOOL)requiresConstraintBasedLayout { | 58 + (BOOL)requiresConstraintBasedLayout { |
| 57 return YES; | 59 return YES; |
| 58 } | 60 } |
| 59 | 61 |
| 60 - (instancetype)initWithFrame:(NSRect)frame { | 62 - (instancetype)initWithFrame:(NSRect)frame { |
| 61 if (self = [super initWithFrame:frame]) { | 63 if (self = [super initWithFrame:frame]) { |
| 62 [self setupViews]; | 64 [self setupViews]; |
| 63 } | 65 } |
| 64 return self; | 66 return self; |
| 65 } | 67 } |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 _remoteVideoTrack = nil; | 305 _remoteVideoTrack = nil; |
| 304 [self.mainView.remoteVideoView renderFrame:nil]; | 306 [self.mainView.remoteVideoView renderFrame:nil]; |
| 305 } | 307 } |
| 306 | 308 |
| 307 - (void)disconnect { | 309 - (void)disconnect { |
| 308 [self resetUI]; | 310 [self resetUI]; |
| 309 [_client disconnect]; | 311 [_client disconnect]; |
| 310 } | 312 } |
| 311 | 313 |
| 312 @end | 314 @end |
| OLD | NEW |