diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-04-26 20:01:39 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-04-26 20:01:39 +0800 |
commit | cf8d507e4c6272a5e3f1b2a65724f1938d7d246d (patch) | |
tree | 9e53ce6bfc5eab160d37fb094b99bb4df5bdd862 /embed/mozilla/GtkNSSKeyPairDialogs.cpp | |
parent | dbf352aded24013b511267d19c82fa017846ea73 (diff) | |
download | gsoc2013-epiphany-cf8d507e4c6272a5e3f1b2a65724f1938d7d246d.tar gsoc2013-epiphany-cf8d507e4c6272a5e3f1b2a65724f1938d7d246d.tar.gz gsoc2013-epiphany-cf8d507e4c6272a5e3f1b2a65724f1938d7d246d.tar.bz2 gsoc2013-epiphany-cf8d507e4c6272a5e3f1b2a65724f1938d7d246d.tar.lz gsoc2013-epiphany-cf8d507e4c6272a5e3f1b2a65724f1938d7d246d.tar.xz gsoc2013-epiphany-cf8d507e4c6272a5e3f1b2a65724f1938d7d246d.tar.zst gsoc2013-epiphany-cf8d507e4c6272a5e3f1b2a65724f1938d7d246d.zip |
Ged rid of all API checks which check for 1.8-only API, and introduce a
2005-04-26 Christian Persch <chpe@cvs.gnome.org>
* configure.ac:
Ged rid of all API checks which check for 1.8-only API, and introduce
a Gecko version check instead.
* embed/mozilla/ContentHandler.cpp:
* embed/mozilla/ContentHandler.h:
* embed/mozilla/EventContext.cpp:
* embed/mozilla/GlobalHistory.cpp:
* embed/mozilla/GtkNSSKeyPairDialogs.cpp:
* embed/mozilla/MozDownload.cpp:
* embed/mozilla/MozDownload.h:
* embed/mozilla/mozilla-download.cpp:
Fix for mozilla API change, and use the new HAVE_GECKO_1_8 define
where appropriate.
Diffstat (limited to 'embed/mozilla/GtkNSSKeyPairDialogs.cpp')
-rw-r--r-- | embed/mozilla/GtkNSSKeyPairDialogs.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/embed/mozilla/GtkNSSKeyPairDialogs.cpp b/embed/mozilla/GtkNSSKeyPairDialogs.cpp index 47d0eb840..83744ba6e 100644 --- a/embed/mozilla/GtkNSSKeyPairDialogs.cpp +++ b/embed/mozilla/GtkNSSKeyPairDialogs.cpp @@ -46,14 +46,14 @@ #include <nsIInterfaceRequestorUtils.h> #include <nsIKeygenThread.h> -#ifdef HAVE_NSIKEYGENTHREAD_NSIOBSERVER +#ifdef HAVE_GECKO_1_8 #include <nsIObserver.h> -#else /* !HAVE_NSIKEYGENTHREAD_NSIOBSERVER */ +#else /* !HAVE_GECKO_1_8 */ #include <nsIDOMWindow.h> #ifdef ALLOW_PRIVATE_API #include "nsIDOMWindowInternal.h" #endif /* ALLOW_PRIVATE_API */ -#endif /* HAVE_NSIKEYGENTHREAD_NSIOBSERVER */ +#endif /* HAVE_GECKO_1_8 */ #include <gtk/gtkdialog.h> #include <gtk/gtkprogressbar.h> @@ -82,7 +82,7 @@ GtkNSSKeyPairDialogs::~GtkNSSKeyPairDialogs () NS_IMPL_ISUPPORTS1 (GtkNSSKeyPairDialogs, nsIGeneratingKeypairInfoDialogs) -#ifdef HAVE_NSIKEYGENTHREAD_NSIOBSERVER +#ifdef HAVE_GECKO_1_8 class KeyPairObserver : public nsIObserver { @@ -105,7 +105,7 @@ NS_IMETHODIMP KeyPairObserver::Observe (nsISupports *aSubject, const char *aTopi return NS_OK; } -#else /* !HAVE_NSIKEYGENTHREAD_NSIOBSERVER */ +#else /* !HAVE_GECKO_1_8 */ /* ------------------------------------------------------------ * A dummy implementation of nsIDomWindowInternal so that @@ -140,7 +140,7 @@ NS_IMETHODIMP KeyPairHelperWindow::Close() return NS_OK; } -#endif /* HAVE_NSIKEYGENTHREAD_NSIOBSERVER */ +#endif /* HAVE_GECKO_1_8 */ /* ------------------------------------------------------------ */ static void @@ -167,11 +167,11 @@ struct KeyPairInfo { GtkWidget *progress; GtkWidget *dialog; -#ifdef HAVE_NSIKEYGENTHREAD_NSIOBSERVER +#ifdef HAVE_GECKO_1_8 KeyPairObserver *helper; #else KeyPairHelperWindow *helper; -#endif /* HAVE_NSIKEYGENTHREAD_NSIOBSERVER */ +#endif /* HAVE_GECKO_1_8 */ }; @@ -238,7 +238,7 @@ GtkNSSKeyPairDialogs::DisplayGeneratingKeypairInfo (nsIInterfaceRequestor *ctx, /* Create a helper class that just waits for close events * from the other thread */ -#ifdef HAVE_NSIKEYGENTHREAD_NSIOBSERVER +#ifdef HAVE_GECKO_1_8 nsCOMPtr<KeyPairObserver> helper = new KeyPairObserver; #else nsCOMPtr<KeyPairHelperWindow> helper = new KeyPairHelperWindow; @@ -268,7 +268,7 @@ GtkNSSKeyPairDialogs::DisplayGeneratingKeypairInfo (nsIInterfaceRequestor *ctx, return NS_OK; } -#ifndef HAVE_NSIKEYGENTHREAD_NSIOBSERVER +#ifndef HAVE_GECKO_1_8 /************************************************************* * Misc functions for the nsIDomWindowInternal implementation @@ -756,4 +756,4 @@ NS_IMETHODIMP KeyPairHelperWindow::GetWindowRoot(nsIDOMEventTarget * *aWindowRoo MOZ_NOT_IMPLEMENTED } -#endif /* !HAVE_NSIKEYGENTHREAD_NSIOBSERVER */ +#endif /* !HAVE_GECKO_1_8 */ |