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

Side by Side Diff: webrtc/sdk/objc/Framework/Classes/Common/helpers.mm

Issue 2862543002: Split iOS sdk in to separate targets (Closed)
Patch Set: Add required lib to metal target Created 3 years, 7 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
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 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 11
12 #import <AVFoundation/AVFoundation.h> 12 #import <AVFoundation/AVFoundation.h>
13 #import <Foundation/Foundation.h> 13 #import <Foundation/Foundation.h>
14 #import <sys/sysctl.h> 14 #import <sys/sysctl.h>
15 #if defined(WEBRTC_IOS) 15 #if defined(WEBRTC_IOS)
16 #import <UIKit/UIKit.h> 16 #import <UIKit/UIKit.h>
17 #endif 17 #endif
18 18
19 #include <memory> 19 #include <memory>
20 20
21 #include "webrtc/base/checks.h" 21 #include "webrtc/base/checks.h"
22 #include "webrtc/base/logging.h" 22 #include "webrtc/base/logging.h"
23 #include "webrtc/sdk/objc/Framework/Classes/helpers.h" 23 #include "webrtc/sdk/objc/Framework/Classes/Common/helpers.h"
24 24
25 namespace webrtc { 25 namespace webrtc {
26 namespace ios { 26 namespace ios {
27 27
28 #if defined(WEBRTC_IOS) 28 #if defined(WEBRTC_IOS)
29 bool isOperatingSystemAtLeastVersion(double version) { 29 bool isOperatingSystemAtLeastVersion(double version) {
30 return GetSystemVersion() >= version; 30 return GetSystemVersion() >= version;
31 } 31 }
32 #endif 32 #endif
33 33
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 } 132 }
133 LOG(LS_WARNING) << "webrtc::ios::GetLowPowerModeEnabled() is not " 133 LOG(LS_WARNING) << "webrtc::ios::GetLowPowerModeEnabled() is not "
134 "supported. Requires at least iOS 9.0"; 134 "supported. Requires at least iOS 9.0";
135 return false; 135 return false;
136 } 136 }
137 #endif 137 #endif
138 138
139 } // namespace ios 139 } // namespace ios
140 } // namespace webrtc 140 } // namespace webrtc
141 141
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698