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

Unified Diff: webrtc/base/objc/RTCUIApplication.mm

Issue 1732953003: Fix VideoToolbox backgrounding issues (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Update gyp Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/base/objc/RTCUIApplication.mm
diff --git a/webrtc/base/objc/RTCMacros.h b/webrtc/base/objc/RTCUIApplication.mm
similarity index 59%
copy from webrtc/base/objc/RTCMacros.h
copy to webrtc/base/objc/RTCUIApplication.mm
index 9d4646bd2187cfd6990677ae77037bd7b6754a53..85376b4e0e7fe914e924cff28fc7d03c5a04c87f 100644
--- a/webrtc/base/objc/RTCMacros.h
+++ b/webrtc/base/objc/RTCUIApplication.mm
@@ -8,8 +8,15 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#if defined(__cplusplus)
- #define RTC_EXPORT extern "C"
-#else
- #define RTC_EXPORT extern
-#endif
+#include "webrtc/base/objc/RTCUIApplication.h"
+
+#if defined(WEBRTC_IOS)
+
+#import <UIKit/UIKit.h>
+
+bool RTCIsUIApplicationActive() {
+ UIApplicationState state = [UIApplication sharedApplication].applicationState;
+ return state == UIApplicationStateActive;
+}
+
+#endif // WEBRTC_IOS

Powered by Google App Engine
This is Rietveld 408576698