summaryrefslogtreecommitdiffstats
path: root/src/core/frontend/applets/web_browser.cpp
blob: a5d8f82acf803affb6da53a28ccc7d95f715019f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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::OpenLocalWebPage(
    std::string_view local_url, std::function<void()> extract_romfs_callback,
    std::function<void(Service::AM::Applets::WebExitReason, std::string)> 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/");
}

} // namespace Core::Frontend