diff options
author | Thierry Crozat | 2016-09-09 23:51:40 +0100 |
---|---|---|
committer | Thierry Crozat | 2016-09-10 01:12:42 +0100 |
commit | 1f2a50bcd354e3aae80ce4f99e50f618a7b83e3c (patch) | |
tree | 872c1e77f3264360936c029e20a9ebc6bea6d1da /common | |
parent | dff88b105885e0ed3766f5e86c0d7f606348634a (diff) | |
download | scummvm-rg350-1f2a50bcd354e3aae80ce4f99e50f618a7b83e3c.tar.gz scummvm-rg350-1f2a50bcd354e3aae80ce4f99e50f618a7b83e3c.tar.bz2 scummvm-rg350-1f2a50bcd354e3aae80ce4f99e50f618a7b83e3c.zip |
CLOUD: Move openUrl to OSystem
Diffstat (limited to 'common')
-rw-r--r-- | common/system.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/common/system.h b/common/system.h index 8a05a9664b..eb9a39bbdf 100644 --- a/common/system.h +++ b/common/system.h @@ -322,7 +322,15 @@ public: * * This feature has no associated state. */ - kFeatureClipboardSupport + kFeatureClipboardSupport, + + /** + * The presence of this feature indicates whether the openUrl() + * call is supported. + * + * This feature has no associated state. + */ + kFeatureOpenUrl }; /** @@ -1269,6 +1277,20 @@ public: virtual Common::String getTextFromClipboard() { return ""; } /** + * Open the given Url in the default browser (if available on the target + * system). + * + * @return true on success, false otherwise. + * + * @note It is up to the backend to ensure that the system is in a state + * that allows the user to actually see the web page. This might for + * example require leaving fullscreen mode. + * + * @parem url the URL to open + */ + virtual bool openUrl(const Common::String &url) {return false; } + + /** * Returns the locale of the system. * * This returns the currently set up locale of the system, on which |