diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-12-24 22:21:41 +0100 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-12-28 21:32:39 +0100 |
commit | 85a3368e6d73e84478b2a168227250769bf7168f (patch) | |
tree | f2e293ef5aa74db305863110c23bb3ba995f539f | |
parent | applets: Implement LibAppletOff (Web) applet (diff) | |
download | yuzu-85a3368e6d73e84478b2a168227250769bf7168f.tar yuzu-85a3368e6d73e84478b2a168227250769bf7168f.tar.gz yuzu-85a3368e6d73e84478b2a168227250769bf7168f.tar.bz2 yuzu-85a3368e6d73e84478b2a168227250769bf7168f.tar.lz yuzu-85a3368e6d73e84478b2a168227250769bf7168f.tar.xz yuzu-85a3368e6d73e84478b2a168227250769bf7168f.tar.zst yuzu-85a3368e6d73e84478b2a168227250769bf7168f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/frontend/applets/web_browser.cpp | 24 | ||||
-rw-r--r-- | src/core/frontend/applets/web_browser.h | 28 |
2 files changed, 52 insertions, 0 deletions
diff --git a/src/core/frontend/applets/web_browser.cpp b/src/core/frontend/applets/web_browser.cpp new file mode 100644 index 000000000..6a36b4b8f --- /dev/null +++ b/src/core/frontend/applets/web_browser.cpp @@ -0,0 +1,24 @@ +// Copyright 2018 yuzu emulator team +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#include "common/logging/log.h" +#include "core/frontend/applets/web_browser.h" + +namespace Core::Frontend { + +WebBrowserApplet::~WebBrowserApplet() = default; + +DefaultWebBrowserApplet::~DefaultWebBrowserApplet() = default; + +void DefaultWebBrowserApplet::OpenPage(std::string_view filename, + std::function<void()> unpack_romfs_callback, + std::function<void()> finished_callback) const { + LOG_INFO(Service_AM, + "(STUBBED) called - No suitable web browser implementation found to open website page " + "at '{}'!", + filename); + finished_callback(); +} + +} // namespace Core::Frontend diff --git a/src/core/frontend/applets/web_browser.h b/src/core/frontend/applets/web_browser.h new file mode 100644 index 000000000..41d272d26 --- /dev/null +++ b/src/core/frontend/applets/web_browser.h @@ -0,0 +1,28 @@ +// Copyright 2018 yuzu emulator team +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include <functional> +#include <string_view> + +namespace Core::Frontend { + +class WebBrowserApplet { +public: + virtual ~WebBrowserApplet(); + + virtual void OpenPage(std::string_view url, std::function<void()> unpack_romfs_callback, + std::function<void()> finished_callback) const = 0; +}; + +class DefaultWebBrowserApplet final : public WebBrowserApplet { +public: + ~DefaultWebBrowserApplet() override; + + void OpenPage(std::string_view url, std::function<void()> unpack_romfs_callback, + std::function<void()> finished_callback) const override; +}; + +} // namespace Core::Frontend |