32 lines
582 B
C++
32 lines
582 B
C++
#pragma once
|
|
#include <AppCore/AppCore.h>
|
|
#include <memory>
|
|
#ifdef UL_EMBED_FILES
|
|
#include "platform/EmbeddedFileSystem.h"
|
|
#endif
|
|
|
|
using namespace ultralight;
|
|
|
|
class UI;
|
|
|
|
class Browser {
|
|
public:
|
|
Browser(bool use_gpu, bool force_repaint, bool show_stats);
|
|
~Browser();
|
|
|
|
void Run();
|
|
|
|
void SetTitle(const String& title);
|
|
|
|
RefPtr<App> app() { return app_; }
|
|
RefPtr<Window> window() { return window_; }
|
|
|
|
protected:
|
|
RefPtr<App> app_;
|
|
RefPtr<Window> window_;
|
|
std::unique_ptr<UI> ui_;
|
|
#ifdef UL_EMBED_FILES
|
|
std::unique_ptr<EmbeddedFileSystem> file_system_;
|
|
#endif
|
|
};
|