| 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 [self addSubview:_localVideoView]; | 235 [self addSubview:_localVideoView]; |
| 236 } | 236 } |
| 237 | 237 |
| 238 - (void)setupActionItemsView { | 238 - (void)setupActionItemsView { |
| 239 _actionItemsView = [[NSView alloc] initWithFrame:NSZeroRect]; | 239 _actionItemsView = [[NSView alloc] initWithFrame:NSZeroRect]; |
| 240 [_actionItemsView setTranslatesAutoresizingMaskIntoConstraints:NO]; | 240 [_actionItemsView setTranslatesAutoresizingMaskIntoConstraints:NO]; |
| 241 [self addSubview:_actionItemsView]; | 241 [self addSubview:_actionItemsView]; |
| 242 | 242 |
| 243 _roomField = [[NSTextField alloc] initWithFrame:NSZeroRect]; | 243 _roomField = [[NSTextField alloc] initWithFrame:NSZeroRect]; |
| 244 [_roomField setTranslatesAutoresizingMaskIntoConstraints:NO]; | 244 [_roomField setTranslatesAutoresizingMaskIntoConstraints:NO]; |
| 245 _roomField.placeholderString = @"Enter AppRTC room id"; | 245 [[_roomField cell] setPlaceholderString: @"Enter AppRTC room id"]; |
| 246 [_actionItemsView addSubview:_roomField]; | 246 [_actionItemsView addSubview:_roomField]; |
| 247 [_roomField setEditable:YES]; | 247 [_roomField setEditable:YES]; |
| 248 | 248 |
| 249 _connectButton = [[NSButton alloc] initWithFrame:NSZeroRect]; | 249 _connectButton = [[NSButton alloc] initWithFrame:NSZeroRect]; |
| 250 [_connectButton setTranslatesAutoresizingMaskIntoConstraints:NO]; | 250 [_connectButton setTranslatesAutoresizingMaskIntoConstraints:NO]; |
| 251 _connectButton.title = @"Start call"; | 251 _connectButton.title = @"Start call"; |
| 252 _connectButton.bezelStyle = NSRoundedBezelStyle; | 252 _connectButton.bezelStyle = NSRoundedBezelStyle; |
| 253 _connectButton.target = self; | 253 _connectButton.target = self; |
| 254 _connectButton.action = @selector(startCall:); | 254 _connectButton.action = @selector(startCall:); |
| 255 [_actionItemsView addSubview:_connectButton]; | 255 [_actionItemsView addSubview:_connectButton]; |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 [self.mainView.remoteVideoView renderFrame:nil]; | 398 [self.mainView.remoteVideoView renderFrame:nil]; |
| 399 [self.mainView.localVideoView renderFrame:nil]; | 399 [self.mainView.localVideoView renderFrame:nil]; |
| 400 } | 400 } |
| 401 | 401 |
| 402 - (void)disconnect { | 402 - (void)disconnect { |
| 403 [self resetUI]; | 403 [self resetUI]; |
| 404 [_client disconnect]; | 404 [_client disconnect]; |
| 405 } | 405 } |
| 406 | 406 |
| 407 @end | 407 @end |
| OLD | NEW |