summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/web-view.c7
-rw-r--r--src/web-view.h4
2 files changed, 11 insertions, 0 deletions
diff --git a/src/web-view.c b/src/web-view.c
index 27ca280..7d3df3b 100644
--- a/src/web-view.c
+++ b/src/web-view.c
@@ -36,6 +36,7 @@
struct _MqWebView {
WebKitWebView parent_instance;
MqTabPage *tab_page;
+ MqWebViewScheme scheme;
gchar *uri;
MqConfig *config;
WebKitHitTestResult *hit_test_result;
@@ -760,6 +761,12 @@ mq_web_view_new(MqTabPage *tab_page, const gchar *uri)
NULL);
}
+MqWebViewScheme *
+mq_web_view_get_scheme(MqWebView *web_view)
+{
+ return &web_view->scheme;
+}
+
MqConfig *
mq_web_view_get_config(MqWebView *web_view)
{
diff --git a/src/web-view.h b/src/web-view.h
index b073fb4..9bb8977 100644
--- a/src/web-view.h
+++ b/src/web-view.h
@@ -30,6 +30,7 @@ typedef struct _MqWebViewClass MqWebViewClass;
#include <webkit2/webkit2.h>
#include "tab-page.h"
+#include "web-view-schemes/schemes.h"
G_BEGIN_DECLS
@@ -51,6 +52,9 @@ mq_web_view_get_type(void);
MqWebView *
mq_web_view_new(MqTabPage *tab_page, const gchar *uri);
+MqWebViewScheme *
+mq_web_view_get_scheme(MqWebView *web_view);
+
MqConfig *
mq_web_view_get_config(MqWebView *web_view);