summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/process.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/utils/process.cpp b/src/utils/process.cpp
index ced374d49..74ac20b53 100644
--- a/src/utils/process.cpp
+++ b/src/utils/process.cpp
@@ -268,6 +268,16 @@ bool openBrowser(std::string url)
{
return execFile("/usr/bin/xdg-open", "/usr/bin/xdg-open", url, "");
}
+#elif defined __native_client__
+#include <ppapi_simple/ps.h>
+#include <ppapi/cpp/instance.h>
+#include <ppapi/cpp/var.h>
+bool openBrowser(std::string url)
+{
+ pp::Var msgVar = pp::Var(std::string("open-browser: ").append(url));
+ pp::Instance(PSGetInstanceId()).PostMessage(msgVar);
+ return true;
+}
#else
bool openBrowser(std::string url)
{