2018-12-24 16:21:41 -05:00
|
|
|
// 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();
|
|
|
|
|
2019-06-05 12:13:15 -04:00
|
|
|
virtual void OpenPageLocal(std::string_view url, std::function<void()> unpack_romfs_callback,
|
|
|
|
std::function<void()> finished_callback) = 0;
|
2018-12-24 16:21:41 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
class DefaultWebBrowserApplet final : public WebBrowserApplet {
|
|
|
|
public:
|
|
|
|
~DefaultWebBrowserApplet() override;
|
|
|
|
|
2019-06-05 12:13:15 -04:00
|
|
|
void OpenPageLocal(std::string_view url, std::function<void()> unpack_romfs_callback,
|
|
|
|
std::function<void()> finished_callback) override;
|
2018-12-24 16:21:41 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Core::Frontend
|