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

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

Issue 1235563006: Move talk/examples/* to webrtc/examples. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 201507141427 Created 5 years, 5 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
OLDNEW
(Empty)
1 /*
2 * Copyright 2013 The WebRTC Project Authors. All rights reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #import "ARDAppDelegate.h"
12
13 #import "ARDLogging.h"
14 #import "ARDMainViewController.h"
15 #import "RTCPeerConnectionFactory.h"
16
17 @implementation ARDAppDelegate {
18 UIWindow *_window;
19 }
20
21 #pragma mark - UIApplicationDelegate methods
22
23 - (BOOL)application:(UIApplication *)application
24 didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
25 [RTCPeerConnectionFactory initializeSSL];
26 _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
27 [_window makeKeyAndVisible];
28 ARDMainViewController *viewController = [[ARDMainViewController alloc] init];
29 _window.rootViewController = viewController;
30 ARDLogInit();
31 return YES;
32 }
33
34 - (void)applicationWillResignActive:(UIApplication *)application {
35 ARDMainViewController *viewController =
36 (ARDMainViewController *)_window.rootViewController;
37 [viewController applicationWillResignActive:application];
38 }
39
40 - (void)applicationWillTerminate:(UIApplication *)application {
41 [RTCPeerConnectionFactory deinitializeSSL];
42 }
43
44 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698