2019-09-03 16:08:48 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "window-dock.hpp"
|
|
|
|
#include <QScopedPointer>
|
|
|
|
|
|
|
|
#include <browser-panel.hpp>
|
|
|
|
extern QCef *cef;
|
|
|
|
extern QCefCookieManager *panel_cookies;
|
|
|
|
|
|
|
|
class BrowserDock : public OBSDock {
|
|
|
|
public:
|
2020-11-30 05:18:27 -08:00
|
|
|
inline BrowserDock() : OBSDock() { setAttribute(Qt::WA_NativeWindow); }
|
2019-09-03 16:08:48 -07:00
|
|
|
|
|
|
|
QScopedPointer<QCefWidget> cefWidget;
|
|
|
|
|
|
|
|
inline void SetWidget(QCefWidget *widget_)
|
|
|
|
{
|
|
|
|
setWidget(widget_);
|
|
|
|
cefWidget.reset(widget_);
|
|
|
|
}
|
2019-09-03 19:11:14 -07:00
|
|
|
|
|
|
|
void closeEvent(QCloseEvent *event) override;
|
2019-09-03 16:08:48 -07:00
|
|
|
};
|