summaryrefslogtreecommitdiff
path: root/src/yuzu/applets/web_browser.h
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-12-28 18:20:29 -0500
committerZach Hilman <zachhilman@gmail.com>2018-12-28 18:20:29 -0500
commitcb930c4b5a3f8f3931ba93ef35d4000558ffa79e (patch)
treeb897717a33fc0ba28134be25a9ba52e84b21d122 /src/yuzu/applets/web_browser.h
parentef4c4e239da8e5771f61bf079eae25b28cbd0318 (diff)
web_browser: Add bounds checking to applet interface
Diffstat (limited to 'src/yuzu/applets/web_browser.h')
-rw-r--r--src/yuzu/applets/web_browser.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/yuzu/applets/web_browser.h b/src/yuzu/applets/web_browser.h
index 74f6698be..bba273767 100644
--- a/src/yuzu/applets/web_browser.h
+++ b/src/yuzu/applets/web_browser.h
@@ -6,22 +6,30 @@
#include <functional>
#include <QObject>
+
+#ifdef YUZU_USE_QT_WEB_ENGINE
#include <QWebEngineView>
+#endif
+
#include "core/frontend/applets/web_browser.h"
class GMainWindow;
+#ifdef YUZU_USE_QT_WEB_ENGINE
+
QString GetNXShimInjectionScript();
class NXInputWebEngineView : public QWebEngineView {
public:
- NXInputWebEngineView(QWidget* parent = nullptr);
+ explicit NXInputWebEngineView(QWidget* parent = nullptr);
protected:
void keyPressEvent(QKeyEvent* event) override;
void keyReleaseEvent(QKeyEvent* event) override;
};
+#endif
+
class QtWebBrowser final : public QObject, public Core::Frontend::WebBrowserApplet {
Q_OBJECT