aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed-single.h
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-01-12 03:15:27 +0800
committerChristian Persch <chpe@src.gnome.org>2005-01-12 03:15:27 +0800
commit4f4141d49c35db2106fc8b84f08a03a4e416dc20 (patch)
tree889188d66ca9d0c93440fc954cef5ce609266031 /embed/ephy-embed-single.h
parentfa0d7a25b665db353b859e3785271d02dfb2be36 (diff)
downloadgsoc2013-epiphany-4f4141d49c35db2106fc8b84f08a03a4e416dc20.tar
gsoc2013-epiphany-4f4141d49c35db2106fc8b84f08a03a4e416dc20.tar.gz
gsoc2013-epiphany-4f4141d49c35db2106fc8b84f08a03a4e416dc20.tar.bz2
gsoc2013-epiphany-4f4141d49c35db2106fc8b84f08a03a4e416dc20.tar.lz
gsoc2013-epiphany-4f4141d49c35db2106fc8b84f08a03a4e416dc20.tar.xz
gsoc2013-epiphany-4f4141d49c35db2106fc8b84f08a03a4e416dc20.tar.zst
gsoc2013-epiphany-4f4141d49c35db2106fc8b84f08a03a4e416dc20.zip
Add "check-content" signal.
2005-01-11 Christian Persch <chpe@cvs.gnome.org> * 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.
Diffstat (limited to 'embed/ephy-embed-single.h')
-rw-r--r--embed/ephy-embed-single.h19
1 files changed, 18 insertions, 1 deletions
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,