Index: webrtc/base/macutils.h |
diff --git a/webrtc/base/macutils.h b/webrtc/base/macutils.h |
index fdcb3eee5b7162e82f8eaf04284da9126c513631..78c442f0e9a4bd9ddd8ee39e93cd3a044cfe2dc2 100644 |
--- a/webrtc/base/macutils.h |
+++ b/webrtc/base/macutils.h |
@@ -12,6 +12,9 @@ |
#define WEBRTC_BASE_MACUTILS_H__ |
#include <CoreFoundation/CoreFoundation.h> |
+#if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS) |
+#include <Carbon/Carbon.h> |
+#endif |
#include <string> |
namespace rtc { |
@@ -41,6 +44,10 @@ |
}; |
MacOSVersionName GetOSVersionName(); |
+ |
+// Runs the given apple script. Only supports scripts that does not |
+// require user interaction. |
+bool RunAppleScript(const std::string& script); |
#endif |
/////////////////////////////////////////////////////////////////////////////// |