diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2022-12-06 17:26:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-06 17:26:53 +0100 |
commit | d8534ea140a0e07fa010fe58fae068ed926c1dbc (patch) | |
tree | 176afc9e7d481b7b48f5a61a21b5184bf33cef62 /src/core/frontend/applets/web_browser.cpp | |
parent | Merge pull request #9389 from lioncash/emumove (diff) | |
parent | applets/controller: Use aliases for callbacks (diff) | |
download | yuzu-d8534ea140a0e07fa010fe58fae068ed926c1dbc.tar yuzu-d8534ea140a0e07fa010fe58fae068ed926c1dbc.tar.gz yuzu-d8534ea140a0e07fa010fe58fae068ed926c1dbc.tar.bz2 yuzu-d8534ea140a0e07fa010fe58fae068ed926c1dbc.tar.lz yuzu-d8534ea140a0e07fa010fe58fae068ed926c1dbc.tar.xz yuzu-d8534ea140a0e07fa010fe58fae068ed926c1dbc.tar.zst yuzu-d8534ea140a0e07fa010fe58fae068ed926c1dbc.zip |
Diffstat (limited to 'src/core/frontend/applets/web_browser.cpp')
-rw-r--r-- | src/core/frontend/applets/web_browser.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/core/frontend/applets/web_browser.cpp b/src/core/frontend/applets/web_browser.cpp index 27c7086be..b09cb7102 100644 --- a/src/core/frontend/applets/web_browser.cpp +++ b/src/core/frontend/applets/web_browser.cpp @@ -10,18 +10,17 @@ WebBrowserApplet::~WebBrowserApplet() = default; DefaultWebBrowserApplet::~DefaultWebBrowserApplet() = default; -void DefaultWebBrowserApplet::OpenLocalWebPage( - const std::string& local_url, std::function<void()> extract_romfs_callback, - std::function<void(Service::AM::Applets::WebExitReason, std::string)> callback) const { +void DefaultWebBrowserApplet::OpenLocalWebPage(const std::string& local_url, + ExtractROMFSCallback extract_romfs_callback, + OpenWebPageCallback callback) const { LOG_WARNING(Service_AM, "(STUBBED) called, backend requested to open local web page at {}", local_url); callback(Service::AM::Applets::WebExitReason::WindowClosed, "http://localhost/"); } -void DefaultWebBrowserApplet::OpenExternalWebPage( - const std::string& external_url, - std::function<void(Service::AM::Applets::WebExitReason, std::string)> callback) const { +void DefaultWebBrowserApplet::OpenExternalWebPage(const std::string& external_url, + OpenWebPageCallback callback) const { LOG_WARNING(Service_AM, "(STUBBED) called, backend requested to open external web page at {}", external_url); |