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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 [_logView setEditable:NO]; | 208 [_logView setEditable:NO]; |
209 | 209 |
210 [self setupActionItemsView]; | 210 [self setupActionItemsView]; |
211 | 211 |
212 _scrollView = [[NSScrollView alloc] initWithFrame:NSZeroRect]; | 212 _scrollView = [[NSScrollView alloc] initWithFrame:NSZeroRect]; |
213 [_scrollView setTranslatesAutoresizingMaskIntoConstraints:NO]; | 213 [_scrollView setTranslatesAutoresizingMaskIntoConstraints:NO]; |
214 [_scrollView setHasVerticalScroller:YES]; | 214 [_scrollView setHasVerticalScroller:YES]; |
215 [_scrollView setDocumentView:_logView]; | 215 [_scrollView setDocumentView:_logView]; |
216 [self addSubview:_scrollView]; | 216 [self addSubview:_scrollView]; |
217 | 217 |
218 | |
219 // NOTE (daniela): Ignoring Clang diagonstic here. | 218 // NOTE (daniela): Ignoring Clang diagonstic here. |
220 // We're performing run time check to make sure class is available on runtime. | 219 // We're performing run time check to make sure class is available on runtime. |
221 // If not we're providing sensible default. | 220 // If not we're providing sensible default. |
222 #pragma clang diagnostic push | 221 #pragma clang diagnostic push |
223 #pragma clang diagnostic ignored "-Wpartial-availability" | 222 #pragma clang diagnostic ignored "-Wpartial-availability" |
224 if ([RTCMTLNSVideoView class]) { | 223 if ([RTCMTLNSVideoView class]) { |
225 _remoteVideoView = [[RTCMTLNSVideoView alloc] initWithFrame:NSZeroRect]; | 224 _remoteVideoView = [[RTCMTLNSVideoView alloc] initWithFrame:NSZeroRect]; |
226 _localVideoView = [[RTCMTLNSVideoView alloc] initWithFrame:NSZeroRect]; | 225 _localVideoView = [[RTCMTLNSVideoView alloc] initWithFrame:NSZeroRect]; |
227 } else { | 226 } else { |
228 NSOpenGLPixelFormatAttribute attributes[] = { | 227 NSOpenGLPixelFormatAttribute attributes[] = { |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 [self.mainView.remoteVideoView renderFrame:nil]; | 416 [self.mainView.remoteVideoView renderFrame:nil]; |
418 [self.mainView.localVideoView renderFrame:nil]; | 417 [self.mainView.localVideoView renderFrame:nil]; |
419 } | 418 } |
420 | 419 |
421 - (void)disconnect { | 420 - (void)disconnect { |
422 [self resetUI]; | 421 [self resetUI]; |
423 [_client disconnect]; | 422 [_client disconnect]; |
424 } | 423 } |
425 | 424 |
426 @end | 425 @end |
OLD | NEW |