From bf82ec299224ad7990300a0874e80b5f4feed48b Mon Sep 17 00:00:00 2001 From: Vasily Date: Wed, 2 Dec 2015 02:43:05 +0300 Subject: Added NaCl openBrowser function implementation --- src/utils/process.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/utils/process.cpp') 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 +#include +#include +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) { -- cgit v1.2.3-70-g09d2