summaryrefslogtreecommitdiff
path: root/lib/ephy-web-app-utils.h
diff options
context:
space:
mode:
authorJan-Michael Brummer <jan.brummer@tabos.org>2020-02-28 22:01:48 +0100
committerJan-Michael Brummer <jan.brummer@tabos.org>2020-03-10 21:09:59 +0100
commit91f81b1c292c003d53c15137fa129abac5ab1e26 (patch)
tree8353508fa2059bdb107180913aadcbeebe16857c /lib/ephy-web-app-utils.h
parent87ff5beb5a5525cd361500d6055971692a79342e (diff)
downloadepiphany-91f81b1c292c003d53c15137fa129abac5ab1e26.tar.gz
Hide navigation buttons if webapp supports apple-mobile-web-app-capable
Fixes: https://gitlab.gnome.org/GNOME/epiphany/issues/212
Diffstat (limited to 'lib/ephy-web-app-utils.h')
-rw-r--r--lib/ephy-web-app-utils.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/ephy-web-app-utils.h b/lib/ephy-web-app-utils.h
index 1d436858c..b51fdaf41 100644
--- a/lib/ephy-web-app-utils.h
+++ b/lib/ephy-web-app-utils.h
@@ -35,13 +35,18 @@ typedef struct {
char install_date[128];
} EphyWebApplication;
+typedef enum {
+ EPHY_WEB_APPLICATION_NONE,
+ EPHY_WEB_APPLICATION_MOBILE_CAPABLE,
+} EphyWebApplicationOptions;
+
#define EPHY_WEB_APP_ICON_NAME "app-icon.png"
char *ephy_web_application_get_app_id_from_name (const char *name);
const char *ephy_web_application_get_program_name_from_profile_directory (const char *profile_dir);
-char *ephy_web_application_create (const char *id, const char *address, const char *name, GdkPixbuf *icon);
+char *ephy_web_application_create (const char *id, const char *address, const char *name, GdkPixbuf *icon, EphyWebApplicationOptions options);
char *ephy_web_application_ensure_for_app_info (GAppInfo *app_info);
@@ -65,7 +70,7 @@ GList *ephy_web_application_get_legacy_application_list (void);
void ephy_web_application_free_application_list (GList *list);
-void ephy_web_application_initialize_settings (const char *profile_directory);
+void ephy_web_application_initialize_settings (const char *profile_directory, EphyWebApplicationOptions options);
gboolean ephy_web_application_is_uri_allowed (const char *uri);