aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/IWebViewMediator.hpp
blob: d20836a1ab260eb8e7e58853d99b387c622e1530 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

#include "WebViewData.hpp"

class IWebViewMediator {
public:
  IWebViewMediator() = default;

  virtual bool has_webview(WebViewId webview_id) = 0;

  virtual void open_url(const QUrl &url, OpenType open_type, WebViewId webview_id) = 0;
  virtual void set_html(const QString &html, WebViewId webview_id) = 0;
};