2018-12-24 21:21:41 +00: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();
|
|
|
|
|
|
|
|
virtual void OpenPage(std::string_view url, std::function<void()> unpack_romfs_callback,
|
2019-01-17 16:19:44 +00:00
|
|
|
std::function<void()> finished_callback) = 0;
|
2018-12-24 21:21:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class DefaultWebBrowserApplet final : public WebBrowserApplet {
|
|
|
|
public:
|
|
|
|
~DefaultWebBrowserApplet() override;
|
|
|
|
|
|
|
|
void OpenPage(std::string_view url, std::function<void()> unpack_romfs_callback,
|
2019-01-17 16:19:44 +00:00
|
|
|
std::function<void()> finished_callback) override;
|
2018-12-24 21:21:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Core::Frontend
|