mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-27 13:56:27 -05:00
6ff9008230
This is more representative of what actually occurs, as web does support remote URLs which wouldn't need a romfs callback. This paves for easy future support of this with a call like 'OpenPageRemote' or similar.
28 lines
772 B
C++
28 lines
772 B
C++
// 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 OpenPageLocal(std::string_view url, std::function<void()> unpack_romfs_callback,
|
|
std::function<void()> finished_callback) = 0;
|
|
};
|
|
|
|
class DefaultWebBrowserApplet final : public WebBrowserApplet {
|
|
public:
|
|
~DefaultWebBrowserApplet() override;
|
|
|
|
void OpenPageLocal(std::string_view url, std::function<void()> unpack_romfs_callback,
|
|
std::function<void()> finished_callback) override;
|
|
};
|
|
|
|
} // namespace Core::Frontend
|