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

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

Issue 1554163002: iOS stability improvement for device switching (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | webrtc/modules/audio_device/ios/audio_device_ios.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 "ARDMainViewController.h" 11 #import "ARDMainViewController.h"
12 12
13 #import "ARDAppClient.h" 13 #import "ARDAppClient.h"
14 #import "ARDMainView.h" 14 #import "ARDMainView.h"
15 #import "ARDVideoCallViewController.h" 15 #import "ARDVideoCallViewController.h"
16 16
17 @interface ARDMainViewController () <ARDMainViewDelegate> 17 @interface ARDMainViewController () <ARDMainViewDelegate>
18 @end 18 @end
19 19
20 @implementation ARDMainViewController 20 @implementation ARDMainViewController
21 21
22 - (void)loadView { 22 - (void)loadView {
23 ARDMainView *mainView = [[ARDMainView alloc] initWithFrame:CGRectZero]; 23 ARDMainView *mainView = [[ARDMainView alloc] initWithFrame:CGRectZero];
24 mainView.delegate = self; 24 mainView.delegate = self;
25 self.view = mainView; 25 self.view = mainView;
26 } 26 }
27 27
28 - (void)applicationWillResignActive:(UIApplication *)application { 28 - (void)applicationWillResignActive:(UIApplication *)application {
29 // Terminate any calls when we aren't active. 29 // Terminate any calls when we aren't active.
30 [self dismissViewControllerAnimated:NO completion:nil]; 30 // [self dismissViewControllerAnimated:NO completion:nil];
henrika_webrtc 2016/01/04 15:58:51 This part will not be part of the final CL, hence
31 } 31 }
32 32
33 #pragma mark - ARDMainViewDelegate 33 #pragma mark - ARDMainViewDelegate
34 34
35 - (void)mainView:(ARDMainView *)mainView 35 - (void)mainView:(ARDMainView *)mainView
36 didInputRoom:(NSString *)room 36 didInputRoom:(NSString *)room
37 isLoopback:(BOOL)isLoopback 37 isLoopback:(BOOL)isLoopback
38 isAudioOnly:(BOOL)isAudioOnly { 38 isAudioOnly:(BOOL)isAudioOnly {
39 if (!room.length) { 39 if (!room.length) {
40 [self showAlertWithMessage:@"Missing room name."]; 40 [self showAlertWithMessage:@"Missing room name."];
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 - (void)showAlertWithMessage:(NSString*)message { 82 - (void)showAlertWithMessage:(NSString*)message {
83 UIAlertView* alertView = [[UIAlertView alloc] initWithTitle:nil 83 UIAlertView* alertView = [[UIAlertView alloc] initWithTitle:nil
84 message:message 84 message:message
85 delegate:nil 85 delegate:nil
86 cancelButtonTitle:@"OK" 86 cancelButtonTitle:@"OK"
87 otherButtonTitles:nil]; 87 otherButtonTitles:nil];
88 [alertView show]; 88 [alertView show];
89 } 89 }
90 90
91 @end 91 @end
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_device/ios/audio_device_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698