From 4f4141d49c35db2106fc8b84f08a03a4e416dc20 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Tue, 11 Jan 2005 19:15:27 +0000 Subject: Add "check-content" signal. 2005-01-11 Christian Persch * embed/ephy-embed-single.c: (ephy_embed_single_iface_init): * embed/ephy-embed-single.h: Add "check-content" signal. * embed/mozilla/EphyContentPolicy.cpp: * embed/mozilla/EphyContentPolicy.h: Emit from here. * lib/ephy-marshal.list: New marshal. --- embed/ephy-embed-single.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'embed/ephy-embed-single.h') diff --git a/embed/ephy-embed-single.h b/embed/ephy-embed-single.h index 7c3850b82..ceb2dcb19 100644 --- a/embed/ephy-embed-single.h +++ b/embed/ephy-embed-single.h @@ -35,6 +35,18 @@ G_BEGIN_DECLS typedef struct _EphyEmbedSingle EphyEmbedSingle; typedef struct _EphyEmbedSingleIface EphyEmbedSingleIface; +typedef enum +{ + EPHY_CONTENT_CHECK_TYPE_OTHER = 1U, + EPHY_CONTENT_CHECK_TYPE_SCRIPT = 2U, /* Indicates an executable script (such as JavaScript) */ + EPHY_CONTENT_CHECK_TYPE_IMAGE = 3U, /* Indicates an image (e.g., IMG elements) */ + EPHY_CONTENT_CHECK_TYPE_STYLESHEET = 4U, /* Indicates a stylesheet (e.g., STYLE elements) */ + EPHY_CONTENT_CHECK_TYPE_OBJECT = 5U, /* Indicates a generic object (plugin-handled content typically falls under this category) */ + EPHY_CONTENT_CHECK_TYPE_DOCUMENT = 6U, /* Indicates a document at the top-level (i.e., in a browser) */ + EPHY_CONTENT_CHECK_TYPE_SUBDOCUMENT = 7U, /* Indicates a document contained within another document (e.g., IFRAMEs, FRAMES, and OBJECTs) */ + EPHY_CONTENT_CHECK_TYPE_REFRESH = 8U /* Indicates a timed refresh */ +} EphyContentCheckType; + struct _EphyEmbedSingleIface { GTypeInterface base_iface; @@ -49,10 +61,15 @@ struct _EphyEmbedSingleIface gboolean offline); - gboolean (* add_sidebar) (EphyEmbedSingle *single, + gboolean (* add_sidebar) (EphyEmbedSingle *single, const char * url, const char * title); + gboolean (* check_content) (EphyEmbedSingle *single, + EphyContentCheckType type, + const char *address, + const char *requesting_address, + const char *mime_type_guess); /* Methods */ GtkWidget * (* open_window) (EphyEmbedSingle *single, -- cgit v1.2.3