aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphyPromptService.h
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2008-03-17 05:00:39 +0800
committerChristian Persch <chpe@src.gnome.org>2008-03-17 05:00:39 +0800
commitf1a1ce1cc271bda70164adcc7465e96a3c774fdb (patch)
treea14d4bf3420f1a4696e45700b2897dd3ebb945e0 /embed/mozilla/EphyPromptService.h
parent37aa29f5c43a29c7ad0a56181409877686578435 (diff)
downloadgsoc2013-epiphany-f1a1ce1cc271bda70164adcc7465e96a3c774fdb.tar
gsoc2013-epiphany-f1a1ce1cc271bda70164adcc7465e96a3c774fdb.tar.gz
gsoc2013-epiphany-f1a1ce1cc271bda70164adcc7465e96a3c774fdb.tar.bz2
gsoc2013-epiphany-f1a1ce1cc271bda70164adcc7465e96a3c774fdb.tar.lz
gsoc2013-epiphany-f1a1ce1cc271bda70164adcc7465e96a3c774fdb.tar.xz
gsoc2013-epiphany-f1a1ce1cc271bda70164adcc7465e96a3c774fdb.tar.zst
gsoc2013-epiphany-f1a1ce1cc271bda70164adcc7465e96a3c774fdb.zip
Try to fix the build on 1.8.
svn path=/trunk/; revision=8114
Diffstat (limited to 'embed/mozilla/EphyPromptService.h')
-rw-r--r--embed/mozilla/EphyPromptService.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/embed/mozilla/EphyPromptService.h b/embed/mozilla/EphyPromptService.h
index ffde73164..0c2b1fa02 100644
--- a/embed/mozilla/EphyPromptService.h
+++ b/embed/mozilla/EphyPromptService.h
@@ -22,12 +22,15 @@
#define EPHY_PROMPT_SERVICE_H
#include <nsIPromptService.h>
-#include <nsIPromptService2.h>
#if HAVE_NSINONBLOCKINGALERTSERVICE_H
#include <nsINonBlockingAlertService.h>
#endif
+#ifdef ENABLE_AUTHPROMPT2
+#include <nsIPromptService2.h>
+#endif
+
#define EPHY_PROMPT_SERVICE_IID \
{ /* 6e8b90d4-78a6-41c5-98da-b1559a40d30d */ \
0x6e8b90d4, 0x78a6, 0x41c5, \
@@ -35,7 +38,12 @@
#define EPHY_PROMPT_SERVICE_CLASSNAME "Epiphany Prompt Service"
-class EphyPromptService : public nsIPromptService2
+class EphyPromptService :
+#ifdef ENABLE_AUTHPROMPT2
+ public nsIPromptService2
+#else
+ public nsIPromptService
+#endif
#if HAVE_NSINONBLOCKINGALERTSERVICE_H
, public nsINonBlockingAlertService
#endif
@@ -43,7 +51,9 @@ class EphyPromptService : public nsIPromptService2
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIPROMPTSERVICE
+#ifdef ENABLE_AUTHPROMPT2
NS_DECL_NSIPROMPTSERVICE2
+#endif
#if HAVE_NSINONBLOCKINGALERTSERVICE_H
NS_DECL_NSINONBLOCKINGALERTSERVICE
#endif
@@ -52,6 +62,7 @@ public:
virtual ~EphyPromptService();
protected:
+#ifdef ENABLE_AUTHPROMPT2
static nsresult PromptPasswordAdapter(nsIPromptService* aService,
nsIDOMWindow* aParent,
nsIChannel* aChannel,
@@ -60,6 +71,7 @@ public:
const PRUnichar* aCheckLabel,
PRBool* aCheckValue,
PRBool* retval);
+#endif /* ENABLE_AUTHPROMPT2 */
};
#endif /* EPHY_PROMPT_SERVICE_H */