OLD | NEW |
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 <Foundation/Foundation.h> | 12 #import <Foundation/Foundation.h> |
13 #import <sys/sysctl.h> | 13 #import <sys/sysctl.h> |
14 #if defined(WEBRTC_IOS) | 14 #if defined(WEBRTC_IOS) |
15 #import <UIKit/UIKit.h> | 15 #import <UIKit/UIKit.h> |
16 #endif | 16 #endif |
17 | 17 |
18 #include <memory> | 18 #include <memory> |
19 | 19 |
20 #include "webrtc/base/checks.h" | 20 #include "webrtc/rtc_base/checks.h" |
21 #include "webrtc/base/logging.h" | 21 #include "webrtc/rtc_base/logging.h" |
22 #include "webrtc/sdk/objc/Framework/Classes/Common/helpers.h" | 22 #include "webrtc/sdk/objc/Framework/Classes/Common/helpers.h" |
23 | 23 |
24 namespace webrtc { | 24 namespace webrtc { |
25 namespace ios { | 25 namespace ios { |
26 | 26 |
27 #if defined(WEBRTC_IOS) | 27 #if defined(WEBRTC_IOS) |
28 bool isOperatingSystemAtLeastVersion(double version) { | 28 bool isOperatingSystemAtLeastVersion(double version) { |
29 return GetSystemVersion() >= version; | 29 return GetSystemVersion() >= version; |
30 } | 30 } |
31 #endif | 31 #endif |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 } | 126 } |
127 LOG(LS_WARNING) << "webrtc::ios::GetLowPowerModeEnabled() is not " | 127 LOG(LS_WARNING) << "webrtc::ios::GetLowPowerModeEnabled() is not " |
128 "supported. Requires at least iOS 9.0"; | 128 "supported. Requires at least iOS 9.0"; |
129 return false; | 129 return false; |
130 } | 130 } |
131 #endif | 131 #endif |
132 | 132 |
133 } // namespace ios | 133 } // namespace ios |
134 } // namespace webrtc | 134 } // namespace webrtc |
135 | 135 |
OLD | NEW |