diff options
author | bunnei <bunneidev@gmail.com> | 2020-12-22 08:47:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-22 08:47:10 +0100 |
commit | 29ccc7673fc10dee39880fd7bad0ff264765dd56 (patch) | |
tree | 234c2a3fca543e580480ed72e37c1ee9f201aa93 /src/core/frontend/applets/web_browser.h | |
parent | Merge pull request #5131 from bunnei/scheduler-rewrite (diff) | |
parent | applets/web: Implement the online web browser applet (diff) | |
download | yuzu-29ccc7673fc10dee39880fd7bad0ff264765dd56.tar yuzu-29ccc7673fc10dee39880fd7bad0ff264765dd56.tar.gz yuzu-29ccc7673fc10dee39880fd7bad0ff264765dd56.tar.bz2 yuzu-29ccc7673fc10dee39880fd7bad0ff264765dd56.tar.lz yuzu-29ccc7673fc10dee39880fd7bad0ff264765dd56.tar.xz yuzu-29ccc7673fc10dee39880fd7bad0ff264765dd56.tar.zst yuzu-29ccc7673fc10dee39880fd7bad0ff264765dd56.zip |
Diffstat (limited to 'src/core/frontend/applets/web_browser.h')
-rw-r--r-- | src/core/frontend/applets/web_browser.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/src/core/frontend/applets/web_browser.h b/src/core/frontend/applets/web_browser.h index 110e33bc4..1c5ef19a9 100644 --- a/src/core/frontend/applets/web_browser.h +++ b/src/core/frontend/applets/web_browser.h @@ -7,22 +7,34 @@ #include <functional> #include <string_view> +#include "core/hle/service/am/applets/web_types.h" + namespace Core::Frontend { class WebBrowserApplet { public: virtual ~WebBrowserApplet(); - virtual void OpenPageLocal(std::string_view url, std::function<void()> unpack_romfs_callback, - std::function<void()> finished_callback) = 0; + virtual void OpenLocalWebPage( + std::string_view local_url, std::function<void()> extract_romfs_callback, + std::function<void(Service::AM::Applets::WebExitReason, std::string)> callback) const = 0; + + virtual void OpenExternalWebPage( + std::string_view external_url, + std::function<void(Service::AM::Applets::WebExitReason, std::string)> callback) const = 0; }; class DefaultWebBrowserApplet final : public WebBrowserApplet { public: ~DefaultWebBrowserApplet() override; - void OpenPageLocal(std::string_view url, std::function<void()> unpack_romfs_callback, - std::function<void()> finished_callback) override; + void OpenLocalWebPage(std::string_view local_url, std::function<void()> extract_romfs_callback, + std::function<void(Service::AM::Applets::WebExitReason, std::string)> + callback) const override; + + void OpenExternalWebPage(std::string_view external_url, + std::function<void(Service::AM::Applets::WebExitReason, std::string)> + callback) const override; }; } // namespace Core::Frontend |