aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-web-view.h
diff options
context:
space:
mode:
authorXan Lopez <xlopez@igalia.com>2011-07-14 06:47:33 +0800
committerXan Lopez <xlopez@igalia.com>2011-08-29 03:23:26 +0800
commitebac66a05be1e71bd978f070fb842fd8b457e7e8 (patch)
tree549cd1797c49a39cf20be47b5567441f208a5fa5 /embed/ephy-web-view.h
parentbebb9f4299f4a86439ed04b335b6852234af0622 (diff)
downloadgsoc2013-epiphany-ebac66a05be1e71bd978f070fb842fd8b457e7e8.tar
gsoc2013-epiphany-ebac66a05be1e71bd978f070fb842fd8b457e7e8.tar.gz
gsoc2013-epiphany-ebac66a05be1e71bd978f070fb842fd8b457e7e8.tar.bz2
gsoc2013-epiphany-ebac66a05be1e71bd978f070fb842fd8b457e7e8.tar.lz
gsoc2013-epiphany-ebac66a05be1e71bd978f070fb842fd8b457e7e8.tar.xz
gsoc2013-epiphany-ebac66a05be1e71bd978f070fb842fd8b457e7e8.tar.zst
gsoc2013-epiphany-ebac66a05be1e71bd978f070fb842fd8b457e7e8.zip
Add basic support for Web Applications
Allow to save any page as a "Web Application". A new .desktop file will be created, and added to the Shell as a new application. It will launch epiphany in application mode, with its own private profile (inheriting some data from the main profile, like the relevant domain cookies) and in a new process.
Diffstat (limited to 'embed/ephy-web-view.h')
-rw-r--r--embed/ephy-web-view.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/embed/ephy-web-view.h b/embed/ephy-web-view.h
index 508ed2c99..bf865d3d9 100644
--- a/embed/ephy-web-view.h
+++ b/embed/ephy-web-view.h
@@ -88,6 +88,8 @@ typedef enum {
EPHY_WEB_VIEW_ERROR_PAGE_CRASH
} EphyWebViewErrorPage;
+#define EPHY_WEB_APP_PREFIX "app-"
+
struct _EphyWebView
{
WebKitWebView parent;
@@ -194,6 +196,12 @@ void ephy_web_view_save (EphyWebView
const char *uri);
gboolean ephy_web_view_load_homepage (EphyWebView *view);
+char *
+ephy_web_view_create_web_application (EphyWebView *view, const char *title, GdkPixbuf *icon);
+
+GdkPixbuf *
+ephy_web_view_get_snapshot (EphyWebView *view, int x, int y, int width, int height);
+
G_END_DECLS
#endif