aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed.h
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-01-04 02:07:19 +0800
committerChristian Persch <chpe@src.gnome.org>2005-01-04 02:07:19 +0800
commitc4b9c39ec588430681b25d52a1cd5f57dab716d4 (patch)
tree6b35647c1ea93b1b6b9a185dbe7a043d0a631a46 /embed/ephy-embed.h
parent3c97a9bf4a384a76c51e4684b2d9a02266cf458f (diff)
downloadgsoc2013-epiphany-c4b9c39ec588430681b25d52a1cd5f57dab716d4.tar.gz
gsoc2013-epiphany-c4b9c39ec588430681b25d52a1cd5f57dab716d4.tar.zst
gsoc2013-epiphany-c4b9c39ec588430681b25d52a1cd5f57dab716d4.zip
Add types for some enums and flags.
2005-01-03 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-embed-event.c: (ephy_embed_event_context_get_type), (ephy_embed_event_type_get_type): * embed/ephy-embed-event.h: * embed/ephy-embed.c: (ephy_embed_net_state_get_type), (ephy_embed_ppv_navigation_get_type), (ephy_embed_security_level_get_type), (ephy_embed_base_init): * embed/ephy-embed.h: * embed/mozilla/mozilla-embed.cpp: * lib/ephy-marshal.list: * src/ephy-tab.c: (update_net_state_message), (build_progress_from_requests), (ephy_tab_net_state_cb): Add types for some enums and flags.
Diffstat (limited to 'embed/ephy-embed.h')
-rw-r--r--embed/ephy-embed.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/embed/ephy-embed.h b/embed/ephy-embed.h
index 5da274649..7540999de 100644
--- a/embed/ephy-embed.h
+++ b/embed/ephy-embed.h
@@ -36,7 +36,10 @@ G_BEGIN_DECLS
#define EPHY_IS_EMBED_IFACE(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_EMBED))
#define EPHY_EMBED_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EPHY_TYPE_EMBED, EphyEmbedIface))
+#define EPHY_TYPE_EMBED_NET_STATE (ephy_embed_net_state_get_type ())
#define EPHY_TYPE_EMBED_CHROME_MASK (ephy_embed_chrome_get_type ())
+#define EPHY_TYPE_EMBED_PPV_NAVIGATION (ephy_embed_ppv_navigation_get_type ())
+#define EPHY_TYPE_EMBED_SECURITY_LEVEL (ephy_embed_security_level_get_type ())
#define EPHY_TYPE_EMBED_DOCUMENT_TYPE (ephy_embed_document_type_get_type ())
typedef struct _EphyEmbed EphyEmbed;
@@ -55,7 +58,7 @@ typedef enum
EMBED_STATE_IS_DOCUMENT = 1 << 6,
EMBED_STATE_IS_NETWORK = 1 << 7,
EMBED_STATE_IS_WINDOW = 1 << 8
-} EmbedState;
+} EmbedNetState;
typedef enum
{
@@ -84,8 +87,8 @@ typedef enum
STATE_IS_UNKNOWN,
STATE_IS_INSECURE,
STATE_IS_BROKEN,
- STATE_IS_SECURE_MED,
STATE_IS_SECURE_LOW,
+ STATE_IS_SECURE_MED,
STATE_IS_SECURE_HIGH
} EmbedSecurityLevel;
@@ -123,7 +126,7 @@ struct _EphyEmbedIface
const char *location);
void (* net_state) (EphyEmbed *embed,
const char *uri,
- EmbedState state);
+ EmbedNetState state);
gboolean (* dom_mouse_click) (EphyEmbed *embed,
EphyEmbedEvent *event);
gboolean (* dom_mouse_down) (EphyEmbed *embed,
@@ -200,8 +203,14 @@ struct _EphyEmbedIface
gboolean (* has_modified_forms) (EphyEmbed *embed);
};
+GType ephy_embed_net_state_get_type (void);
+
GType ephy_embed_chrome_get_type (void);
+GType ephy_embed_ppv_navigation_get_type (void);
+
+GType ephy_embed_security_level_get_type (void);
+
GType ephy_embed_document_type_get_type (void);
GType ephy_embed_get_type (void);