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 |
11 #if !defined(__has_feature) || !__has_feature(objc_arc) | |
12 #error "This file requires ARC support." | |
13 #endif | |
14 | |
15 #import "APPRTCAppDelegate.h" | 11 #import "APPRTCAppDelegate.h" |
16 #import "APPRTCViewController.h" | 12 #import "APPRTCViewController.h" |
17 #import "WebRTC/RTCSSLAdapter.h" | 13 #import "WebRTC/RTCSSLAdapter.h" |
18 | 14 |
19 @interface APPRTCAppDelegate () <NSWindowDelegate> | 15 @interface APPRTCAppDelegate () <NSWindowDelegate> |
20 @end | 16 @end |
21 | 17 |
22 @implementation APPRTCAppDelegate { | 18 @implementation APPRTCAppDelegate { |
23 APPRTCViewController* _viewController; | 19 APPRTCViewController* _viewController; |
24 NSWindow* _window; | 20 NSWindow* _window; |
(...skipping 25 matching lines...) Expand all Loading... |
50 #pragma mark - NSWindow | 46 #pragma mark - NSWindow |
51 | 47 |
52 - (void)windowWillClose:(NSNotification*)notification { | 48 - (void)windowWillClose:(NSNotification*)notification { |
53 [_viewController windowWillClose:notification]; | 49 [_viewController windowWillClose:notification]; |
54 RTCCleanupSSL(); | 50 RTCCleanupSSL(); |
55 [NSApp terminate:self]; | 51 [NSApp terminate:self]; |
56 } | 52 } |
57 | 53 |
58 @end | 54 @end |
59 | 55 |
OLD | NEW |