aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-embed-event.c2
-rw-r--r--embed/ephy-embed-event.h6
-rw-r--r--embed/ephy-embed-persist.c18
-rw-r--r--embed/ephy-embed-persist.h6
-rw-r--r--embed/ephy-embed.c10
-rw-r--r--embed/ephy-embed.h26
-rw-r--r--embed/mozilla/EphyBrowser.cpp4
-rw-r--r--embed/mozilla/EphyBrowser.h2
-rw-r--r--embed/mozilla/EphyHeaderSniffer.cpp2
-rw-r--r--embed/mozilla/MozDownload.cpp4
-rw-r--r--embed/mozilla/mozilla-embed-event.cpp4
-rw-r--r--embed/mozilla/mozilla-embed-persist.cpp4
-rw-r--r--embed/mozilla/mozilla-embed.cpp16
13 files changed, 52 insertions, 52 deletions
diff --git a/embed/ephy-embed-event.c b/embed/ephy-embed-event.c
index a0ea523ea..aba3af6c0 100644
--- a/embed/ephy-embed-event.c
+++ b/embed/ephy-embed-event.c
@@ -113,7 +113,7 @@ ephy_embed_event_get_event_type (EphyEmbedEvent *event)
return iface->get_type (event);
}
-EmbedEventContext
+EphyEmbedEventContext
ephy_embed_event_get_context (EphyEmbedEvent *event)
{
EphyEmbedEventIface *iface = EPHY_EMBED_EVENT_GET_IFACE (event);
diff --git a/embed/ephy-embed-event.h b/embed/ephy-embed-event.h
index f3e342baf..19e9a770d 100644
--- a/embed/ephy-embed-event.h
+++ b/embed/ephy-embed-event.h
@@ -50,7 +50,7 @@ typedef enum
EMBED_CONTEXT_INPUT = 1 << 5,
EMBED_CONTEXT_XUL = 1 << 7,
EMBED_CONTEXT_EMAIL_LINK = 1 << 8
-} EmbedEventContext;
+} EphyEmbedEventContext;
typedef enum
{
@@ -66,7 +66,7 @@ struct _EphyEmbedEventIface
/* Methods */
EphyEmbedEventType (* get_type) (EphyEmbedEvent *event);
- EmbedEventContext (* get_context) (EphyEmbedEvent *event);
+ EphyEmbedEventContext (* get_context) (EphyEmbedEvent *event);
guint (* get_modifier) (EphyEmbedEvent *event);
void (* get_coordinates) (EphyEmbedEvent *event,
guint *x,
@@ -87,7 +87,7 @@ GType ephy_embed_event_type_get_type (void);
EphyEmbedEventType ephy_embed_event_get_event_type (EphyEmbedEvent *event);
-EmbedEventContext ephy_embed_event_get_context (EphyEmbedEvent *event);
+EphyEmbedEventContext ephy_embed_event_get_context (EphyEmbedEvent *event);
guint ephy_embed_event_get_modifier (EphyEmbedEvent *event);
diff --git a/embed/ephy-embed-persist.c b/embed/ephy-embed-persist.c
index 27f48026d..baa6a781c 100644
--- a/embed/ephy-embed-persist.c
+++ b/embed/ephy-embed-persist.c
@@ -49,7 +49,7 @@ struct EphyEmbedPersistPrivate
char *persist_key;
EphyEmbed *embed;
long max_size;
- EmbedPersistFlags flags;
+ EphyEmbedPersistFlags flags;
GtkWindow *fc_parent;
};
@@ -110,7 +110,7 @@ ephy_embed_persist_set_dest (EphyEmbedPersist *persist,
* Sets the #EphyEmbed from which @persist will download data.
*
* An #EphyEmbed is absolutely required to download if @persist's
- * #EmbedPersistFlags include %EMBED_PERSIST_COPY_PAGE. Regardless, an
+ * #EphyEmbedPersistFlags include %EMBED_PERSIST_COPY_PAGE. Regardless, an
* #EphyEmbed should be set for <emphasis>every</emphasis> #EphyEmbedPersist,
* since it determines request information such as the referring page.
**/
@@ -162,13 +162,13 @@ ephy_embed_persist_set_fc_parent (EphyEmbedPersist *persist,
/**
* ephy_embed_persist_set_flags:
* @persist: an #EphyEmbedPersist
- * @value: the desired #EmbedPersistFlags
+ * @value: the desired #EphyEmbedPersistFlags
*
* Sets the flags to be used for @persist's download.
**/
void
ephy_embed_persist_set_flags (EphyEmbedPersist *persist,
- EmbedPersistFlags value)
+ EphyEmbedPersistFlags value)
{
g_return_if_fail (EPHY_IS_EMBED_PERSIST (persist));
@@ -299,11 +299,11 @@ ephy_embed_persist_get_fc_parent (EphyEmbedPersist *persist)
* ephy_embed_persist_get_flags:
* @persist: an #EphyEmbedPersist
*
- * Returns @persist's #EmbedPersistFlags.
+ * Returns @persist's #EphyEmbedPersistFlags.
*
- * Return value: @persist's #EmbedPersistFlags
+ * Return value: @persist's #EphyEmbedPersistFlags
**/
-EmbedPersistFlags
+EphyEmbedPersistFlags
ephy_embed_persist_get_flags (EphyEmbedPersist *persist)
{
g_return_val_if_fail (EPHY_IS_EMBED_PERSIST (persist), 0);
@@ -591,7 +591,7 @@ ephy_embed_persist_cancel (EphyEmbedPersist *persist)
*
* Begins saving the file specified in @persist.
*
- * If @persist's #EmbedPersistFlags include %EMBED_PERSIST_ASK_DESTINATION, a
+ * If @persist's #EphyEmbedPersistFlags include %EMBED_PERSIST_ASK_DESTINATION, a
* filechooser dialog will be shown first.
*
* The file will continue to download in the background until either the
@@ -615,7 +615,7 @@ ephy_embed_persist_save (EphyEmbedPersist *persist)
*
* The download is synchronous. An #EphyEmbed must be specified with
* ephy_embed_persist_set_embed(). The function implicitly assumes that
- * @persist's #EmbedPersistFlags include %EMBED_PERSIST_COPY_PAGE. If @persist's
+ * @persist's #EphyEmbedPersistFlags include %EMBED_PERSIST_COPY_PAGE. If @persist's
* #EphyEmbed has not finished downloading, this function will only return the
* portion of data which has already been downloaded.
*
diff --git a/embed/ephy-embed-persist.h b/embed/ephy-embed-persist.h
index 0c0c45fde..cb312a6d2 100644
--- a/embed/ephy-embed-persist.h
+++ b/embed/ephy-embed-persist.h
@@ -49,7 +49,7 @@ typedef enum
EMBED_PERSIST_NO_VIEW = 1 << 2,
EMBED_PERSIST_ASK_DESTINATION = 1 << 3,
EMBED_PERSIST_DO_CONVERSION = 1 << 4
-} EmbedPersistFlags;
+} EphyEmbedPersistFlags;
struct _EphyEmbedPersist
{
@@ -93,7 +93,7 @@ void ephy_embed_persist_set_fc_parent (EphyEmbedPersist *persist,
GtkWindow *value);
void ephy_embed_persist_set_flags (EphyEmbedPersist *persist,
- EmbedPersistFlags value);
+ EphyEmbedPersistFlags value);
void ephy_embed_persist_set_max_size (EphyEmbedPersist *persist,
long value);
@@ -112,7 +112,7 @@ const char *ephy_embed_persist_get_fc_title (EphyEmbedPersist *persist);
GtkWindow *ephy_embed_persist_get_fc_parent (EphyEmbedPersist *persist);
-EmbedPersistFlags ephy_embed_persist_get_flags (EphyEmbedPersist *persist);
+EphyEmbedPersistFlags ephy_embed_persist_get_flags (EphyEmbedPersist *persist);
long ephy_embed_persist_get_max_size (EphyEmbedPersist *persist);
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index 4c2a2c0b4..7fccf6cc4 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -194,7 +194,7 @@ ephy_embed_base_init (gpointer g_class)
ephy_marshal_OBJECT__FLAGS,
G_TYPE_OBJECT,
1,
- EPHY_TYPE_EMBED_CHROME_MASK);
+ EPHY_TYPE_EMBED_CHROME);
/**
* EphyEmbed::ge-popup-blocked:
* @embed:
@@ -326,7 +326,7 @@ ephy_embed_base_init (gpointer g_class)
/**
* EphyEmbed::ge-security-change:
* @embed:
- * @level: @embed's new #EmbedSecurityLevel
+ * @level: @embed's new #EphyEmbedSecurityLevel
*
* The ::ge_security_change signal is emitted when the security level of @embed
* changes. For example, this will happen when the user browses from an
@@ -770,12 +770,12 @@ ephy_embed_shistory_go_nth (EphyEmbed *embed,
* @level: return value of security level
* @description: return value of the description of the security level
*
- * Fetches the #EmbedSecurityLevel and a newly-allocated string description
+ * Fetches the #EphyEmbedSecurityLevel and a newly-allocated string description
* of the security state of @embed.
**/
void
ephy_embed_get_security_level (EphyEmbed *embed,
- EmbedSecurityLevel *level,
+ EphyEmbedSecurityLevel *level,
char **description)
{
EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed);
@@ -945,7 +945,7 @@ ephy_embed_print_preview_n_pages (EphyEmbed *embed)
**/
void
ephy_embed_print_preview_navigate (EphyEmbed *embed,
- EmbedPrintPreviewNavType type,
+ EphyEmbedPrintPreviewNavType type,
int page)
{
EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed);
diff --git a/embed/ephy-embed.h b/embed/ephy-embed.h
index 7540999de..5bd97253c 100644
--- a/embed/ephy-embed.h
+++ b/embed/ephy-embed.h
@@ -37,10 +37,10 @@ G_BEGIN_DECLS
#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_CHROME (ephy_embed_chrome_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 ())
+#define EPHY_TYPE_EMBED_PRINT_PREVIEW_NAV_TYPE (ephy_embed_ppv_navigation_get_type ())
typedef struct _EphyEmbed EphyEmbed;
typedef struct _EphyEmbedIface EphyEmbedIface;
@@ -58,7 +58,7 @@ typedef enum
EMBED_STATE_IS_DOCUMENT = 1 << 6,
EMBED_STATE_IS_NETWORK = 1 << 7,
EMBED_STATE_IS_WINDOW = 1 << 8
-} EmbedNetState;
+} EphyEmbedNetState;
typedef enum
{
@@ -80,7 +80,7 @@ typedef enum
PRINTPREVIEW_NEXT_PAGE = 2,
PRINTPREVIEW_HOME = 3,
PRINTPREVIEW_END = 4
-} EmbedPrintPreviewNavType;
+} EphyEmbedPrintPreviewNavType;
typedef enum
{
@@ -90,7 +90,7 @@ typedef enum
STATE_IS_SECURE_LOW,
STATE_IS_SECURE_MED,
STATE_IS_SECURE_HIGH
-} EmbedSecurityLevel;
+} EphyEmbedSecurityLevel;
typedef enum
{
@@ -98,7 +98,7 @@ typedef enum
EMBED_DOCUMENT_XML,
EMBED_DOCUMENT_IMAGE,
EMBED_DOCUMENT_OTHER
-} EmbedDocumentType;
+} EphyEmbedDocumentType;
struct _EphyEmbedIface
{
@@ -126,7 +126,7 @@ struct _EphyEmbedIface
const char *location);
void (* net_state) (EphyEmbed *embed,
const char *uri,
- EmbedNetState state);
+ EphyEmbedNetState state);
gboolean (* dom_mouse_click) (EphyEmbed *embed,
EphyEmbedEvent *event);
gboolean (* dom_mouse_down) (EphyEmbed *embed,
@@ -135,7 +135,7 @@ struct _EphyEmbedIface
const char *address,
const char *features);
void (* security_change) (EphyEmbed *embed,
- EmbedSecurityLevel level);
+ EphyEmbedSecurityLevel level);
void (* zoom_change) (EphyEmbed *embed,
float new_zoom);
void (* content_change) (EphyEmbed *embed,
@@ -143,7 +143,7 @@ struct _EphyEmbedIface
gboolean (* modal_alert) (EphyEmbed *embed);
void (* modal_alert_closed) (EphyEmbed *embed);
void (* document_type) (EphyEmbed *embed,
- EmbedDocumentType type);
+ EphyEmbedDocumentType type);
EphyEmbed * (* new_window) (EphyEmbed *embed,
EphyEmbedChrome chromemask);
@@ -176,7 +176,7 @@ struct _EphyEmbedIface
void (* shistory_go_nth) (EphyEmbed *embed,
int nth);
void (* get_security_level) (EphyEmbed *embed,
- EmbedSecurityLevel *level,
+ EphyEmbedSecurityLevel *level,
char **description);
void (* show_page_certificate) (EphyEmbed *embed);
void (* set_zoom) (EphyEmbed *embed,
@@ -197,7 +197,7 @@ struct _EphyEmbedIface
gboolean mode);
int (* print_preview_n_pages) (EphyEmbed *embed);
void (* print_preview_navigate) (EphyEmbed *embed,
- EmbedPrintPreviewNavType type,
+ EphyEmbedPrintPreviewNavType type,
int page);
void (* activate) (EphyEmbed *embed);
gboolean (* has_modified_forms) (EphyEmbed *embed);
@@ -262,7 +262,7 @@ void ephy_embed_shistory_go_nth (EphyEmbed *embed,
int nth);
void ephy_embed_get_security_level (EphyEmbed *embed,
- EmbedSecurityLevel *level,
+ EphyEmbedSecurityLevel *level,
char **description);
void ephy_embed_show_page_certificate (EphyEmbed *embed);
@@ -299,7 +299,7 @@ void ephy_embed_set_print_preview_mode (EphyEmbed *embed,
int ephy_embed_print_preview_n_pages (EphyEmbed *embed);
void ephy_embed_print_preview_navigate (EphyEmbed *embed,
- EmbedPrintPreviewNavType type,
+ EphyEmbedPrintPreviewNavType type,
int page);
/* Misc. utility */
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp
index 9da900f57..1b31ac383 100644
--- a/embed/mozilla/EphyBrowser.cpp
+++ b/embed/mozilla/EphyBrowser.cpp
@@ -1133,10 +1133,10 @@ EphyBrowser::ShowCertificate ()
#endif
}
-EmbedDocumentType
+EphyEmbedDocumentType
EphyBrowser::GetDocumentType ()
{
- EmbedDocumentType type = EMBED_DOCUMENT_OTHER;
+ EphyEmbedDocumentType type = EMBED_DOCUMENT_OTHER;
NS_ENSURE_TRUE (mDOMWindow, type);
diff --git a/embed/mozilla/EphyBrowser.h b/embed/mozilla/EphyBrowser.h
index c2d583417..3b4f4ce06 100644
--- a/embed/mozilla/EphyBrowser.h
+++ b/embed/mozilla/EphyBrowser.h
@@ -147,7 +147,7 @@ public:
nsresult GetSecurityInfo (PRUint32 *aState, nsACString &aDescription);
nsresult ShowCertificate ();
- EmbedDocumentType GetDocumentType ();
+ EphyEmbedDocumentType GetDocumentType ();
nsCOMPtr<nsIWebBrowser> mWebBrowser;
private:
diff --git a/embed/mozilla/EphyHeaderSniffer.cpp b/embed/mozilla/EphyHeaderSniffer.cpp
index d65e13901..88700e850 100644
--- a/embed/mozilla/EphyHeaderSniffer.cpp
+++ b/embed/mozilla/EphyHeaderSniffer.cpp
@@ -237,7 +237,7 @@ filechooser_response_cb (EphyFileChooser *dialog, gint response, EphyHeaderSniff
nsresult EphyHeaderSniffer::PerformSave (nsIURI* inOriginalURI)
{
nsresult rv;
- EmbedPersistFlags flags;
+ EphyEmbedPersistFlags flags;
PRBool askDownloadDest;
mOriginalURI = inOriginalURI;
diff --git a/embed/mozilla/MozDownload.cpp b/embed/mozilla/MozDownload.cpp
index 103301425..ced33dc71 100644
--- a/embed/mozilla/MozDownload.cpp
+++ b/embed/mozilla/MozDownload.cpp
@@ -100,7 +100,7 @@ MozDownload::Init(nsIURI *aSource, nsIURI *aTarget, const PRUnichar *aDisplayNam
if (mEmbedPersist)
{
- EmbedPersistFlags flags;
+ EphyEmbedPersistFlags flags;
flags = ephy_embed_persist_get_flags (EPHY_EMBED_PERSIST (mEmbedPersist));
@@ -523,7 +523,7 @@ nsresult InitiateMozillaDownload (nsIDOMDocument *domDocument, nsIURI *sourceURI
{
nsresult rv = NS_OK;
- EmbedPersistFlags ephy_flags;
+ EphyEmbedPersistFlags ephy_flags;
ephy_flags = ephy_embed_persist_get_flags (EPHY_EMBED_PERSIST (embedPersist));
PRBool isHTML = (contentType &&
diff --git a/embed/mozilla/mozilla-embed-event.cpp b/embed/mozilla/mozilla-embed-event.cpp
index 3eda0aa45..6e37313d4 100644
--- a/embed/mozilla/mozilla-embed-event.cpp
+++ b/embed/mozilla/mozilla-embed-event.cpp
@@ -118,10 +118,10 @@ impl_get_type (EphyEmbedEvent *event)
return ((MozillaEmbedEvent *) event)->type;
}
-static EmbedEventContext
+static EphyEmbedEventContext
impl_get_context (EphyEmbedEvent *event)
{
- return (EmbedEventContext) ((MozillaEmbedEvent *) event)->context;
+ return (EphyEmbedEventContext) ((MozillaEmbedEvent *) event)->context;
}
static guint
diff --git a/embed/mozilla/mozilla-embed-persist.cpp b/embed/mozilla/mozilla-embed-persist.cpp
index 4e6b08efd..5d8f9dc6c 100644
--- a/embed/mozilla/mozilla-embed-persist.cpp
+++ b/embed/mozilla/mozilla-embed-persist.cpp
@@ -138,7 +138,7 @@ impl_save (EphyEmbedPersist *persist)
char *uri;
long max_size;
EphyEmbed *embed;
- EmbedPersistFlags flags;
+ EphyEmbedPersistFlags flags;
EphyEmbedSingle *single;
single = EPHY_EMBED_SINGLE (ephy_embed_shell_get_embed_single (embed_shell));
@@ -284,7 +284,7 @@ impl_to_string (EphyEmbedPersist *persist)
{
EphyEmbed *embed;
nsCOMPtr<nsIDOMDocument> DOMDocument;
- EmbedPersistFlags flags;
+ EphyEmbedPersistFlags flags;
EphyBrowser *browser;
nsresult rv = NS_OK;
diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp
index 8019e7fbe..15ef2311c 100644
--- a/embed/mozilla/mozilla-embed.cpp
+++ b/embed/mozilla/mozilla-embed.cpp
@@ -74,7 +74,7 @@ static void mozilla_embed_security_change_cb (GtkMozEmbed *embed,
gpointer request,
PRUint32 state,
MozillaEmbed *membed);
-static EmbedSecurityLevel mozilla_embed_security_level (PRUint32 state);
+static EphyEmbedSecurityLevel mozilla_embed_security_level (PRUint32 state);
#define MOZILLA_EMBED_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), MOZILLA_TYPE_EMBED, MozillaEmbedPrivate))
@@ -632,7 +632,7 @@ impl_shistory_go_nth (EphyEmbed *embed,
static void
impl_get_security_level (EphyEmbed *embed,
- EmbedSecurityLevel *level,
+ EphyEmbedSecurityLevel *level,
char **description)
{
MozillaEmbedPrivate *mpriv = MOZILLA_EMBED (embed)->priv;
@@ -688,7 +688,7 @@ impl_print_preview_n_pages (EphyEmbed *embed)
static void
impl_print_preview_navigate (EphyEmbed *embed,
- EmbedPrintPreviewNavType type,
+ EphyEmbedPrintPreviewNavType type,
int page)
{
MozillaEmbedPrivate *mpriv = MOZILLA_EMBED(embed)->priv;
@@ -836,13 +836,13 @@ mozilla_embed_net_state_all_cb (GtkMozEmbed *embed, const char *aURI,
gint state, guint status,
MozillaEmbed *membed)
{
- EmbedNetState estate = EMBED_STATE_UNKNOWN;
+ EphyEmbedNetState estate = EMBED_STATE_UNKNOWN;
int i;
struct
{
guint state;
- EmbedNetState embed_state;
+ EphyEmbedNetState embed_state;
}
conversion_map [] =
{
@@ -861,7 +861,7 @@ mozilla_embed_net_state_all_cb (GtkMozEmbed *embed, const char *aURI,
{
if (state & conversion_map[i].state)
{
- estate = (EmbedNetState) (estate | conversion_map[i].embed_state);
+ estate = (EphyEmbedNetState) (estate | conversion_map[i].embed_state);
}
}
@@ -1097,10 +1097,10 @@ mozilla_embed_security_change_cb (GtkMozEmbed *embed,
mozilla_embed_security_level (state));
}
-static EmbedSecurityLevel
+static EphyEmbedSecurityLevel
mozilla_embed_security_level (PRUint32 state)
{
- EmbedSecurityLevel level;
+ EphyEmbedSecurityLevel level;
switch (state)
{