mirror of
https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
synced 2025-03-21 01:53:15 +00:00

This is a function that definitely doesn't always have a non-modifying behavior across all implementations, so this should be made non-const. This gets rid of the need to mark data members as mutable to work around the fact mutating data members needs to occur.
29 lines
752 B
C++
29 lines
752 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 OpenPage(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 OpenPage(std::string_view url, std::function<void()> unpack_romfs_callback,
|
|
std::function<void()> finished_callback) override;
|
|
};
|
|
|
|
} // namespace Core::Frontend
|