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

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

Issue 1732953003: Fix VideoToolbox backgrounding issues (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: CR comments Created 4 years, 9 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
« no previous file with comments | « webrtc/base/base.gyp ('k') | webrtc/base/objc/RTCUIApplication.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/objc/RTCUIApplication.h
diff --git a/webrtc/base/objc/RTCMacros.h b/webrtc/base/objc/RTCUIApplication.h
similarity index 54%
copy from webrtc/base/objc/RTCMacros.h
copy to webrtc/base/objc/RTCUIApplication.h
index 9d4646bd2187cfd6990677ae77037bd7b6754a53..c06404f777b919f170edb9c24375508590b70815 100644
--- a/webrtc/base/objc/RTCMacros.h
+++ b/webrtc/base/objc/RTCUIApplication.h
@@ -8,8 +8,14 @@
* 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
+#ifndef WEBRTC_BASE_OBJC_RTC_UI_APPLICATION_H_
+#define WEBRTC_BASE_OBJC_RTC_UI_APPLICATION_H_
+
+#include "webrtc/base/objc/RTCMacros.h"
+
+#if defined(WEBRTC_IOS)
+/** Convenience function to get UIApplicationState from C++. */
+RTC_EXPORT bool RTCIsUIApplicationActive();
+#endif // WEBRTC_IOS
+
+#endif // WEBRTC_BASE_OBJC_RTC_UI_APPLICATION_H_
« no previous file with comments | « webrtc/base/base.gyp ('k') | webrtc/base/objc/RTCUIApplication.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698