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

Side by Side Diff: webrtc/examples/objc/AppRTCDemo/ios/ARDMainView.m

Issue 2211413003: GN: Add targets for AppRTCDemo on Mac+iOS (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 4 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/examples/BUILD.gn ('k') | webrtc/examples/objc/AppRTCDemo/mac/APPRTCViewController.h » ('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 "ARDMainView.h" 11 #import "ARDMainView.h"
12 12
13 #import "UIImage+ARDUtilities.h" 13 #import "UIImage+ARDUtilities.h"
14 14
15 // TODO(tkchin): retrieve status bar height dynamically. 15 // TODO(tkchin): retrieve status bar height dynamically.
16 static CGFloat const kStatusBarHeight = 20; 16 static CGFloat const kStatusBarHeight = 20;
17 17
18 static CGFloat const kRoomTextButtonSize = 40; 18 static CGFloat const kRoomTextButtonSize = 40;
19 static CGFloat const kRoomTextFieldHeight = 40; 19 static CGFloat const kRoomTextFieldHeight = 40;
20 static CGFloat const kRoomTextFieldMargin = 8; 20 static CGFloat const kRoomTextFieldMargin = 8;
21 static CGFloat const kCallControlMargin = 8; 21 static CGFloat const kCallControlMargin = 8;
22 static CGFloat const kAppLabelHeight = 20;
23 22
24 // Helper view that contains a text field and a clear button. 23 // Helper view that contains a text field and a clear button.
25 @interface ARDRoomTextField : UIView <UITextFieldDelegate> 24 @interface ARDRoomTextField : UIView <UITextFieldDelegate>
26 @property(nonatomic, readonly) NSString *roomText; 25 @property(nonatomic, readonly) NSString *roomText;
27 @end 26 @end
28 27
29 @implementation ARDRoomTextField { 28 @implementation ARDRoomTextField {
30 UITextField *_roomText; 29 UITextField *_roomText;
31 UIButton *_clearButton; 30 UIButton *_clearButton;
32 } 31 }
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 } 331 }
333 room = [room stringByReplacingOccurrencesOfString:@"-" withString:@""]; 332 room = [room stringByReplacingOccurrencesOfString:@"-" withString:@""];
334 [_delegate mainView:self 333 [_delegate mainView:self
335 didInputRoom:room 334 didInputRoom:room
336 isLoopback:_loopbackSwitch.isOn 335 isLoopback:_loopbackSwitch.isOn
337 isAudioOnly:_audioOnlySwitch.isOn 336 isAudioOnly:_audioOnlySwitch.isOn
338 useManualAudio:_useManualAudioSwitch.isOn]; 337 useManualAudio:_useManualAudioSwitch.isOn];
339 } 338 }
340 339
341 @end 340 @end
OLDNEW
« no previous file with comments | « webrtc/examples/BUILD.gn ('k') | webrtc/examples/objc/AppRTCDemo/mac/APPRTCViewController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698