summaryrefslogblamecommitdiffstats
path: root/src/core/frontend/applets/web_browser.h
blob: f952856af186c827075ce95b4337fe057a46bed4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                                            
                                                                       






                                                                                    
                                                                    


                             
// 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