diff options
author | Christian Persch <chpe@src.gnome.org> | 2008-04-01 05:55:14 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2008-04-01 05:55:14 +0800 |
commit | 9cb19d94da1b42b1df5934fc69d8ef918e48fc85 (patch) | |
tree | 927e5a060efc5757d5a2c25e83a8dc84915cbc89 | |
parent | caab64170bf5b9c6ea545e84c68e649b92ac4064 (diff) | |
download | gsoc2013-epiphany-9cb19d94da1b42b1df5934fc69d8ef918e48fc85.tar gsoc2013-epiphany-9cb19d94da1b42b1df5934fc69d8ef918e48fc85.tar.gz gsoc2013-epiphany-9cb19d94da1b42b1df5934fc69d8ef918e48fc85.tar.bz2 gsoc2013-epiphany-9cb19d94da1b42b1df5934fc69d8ef918e48fc85.tar.lz gsoc2013-epiphany-9cb19d94da1b42b1df5934fc69d8ef918e48fc85.tar.xz gsoc2013-epiphany-9cb19d94da1b42b1df5934fc69d8ef918e48fc85.tar.zst gsoc2013-epiphany-9cb19d94da1b42b1df5934fc69d8ef918e48fc85.zip |
Try to fix the build with gecko 1.8
svn path=/branches/gnome-2-22/; revision=8176
-rw-r--r-- | embed/mozilla/EphyBrowser.cpp | 4 | ||||
-rw-r--r-- | embed/mozilla/EphyBrowser.h | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp index 1a7afc901..e9e732a65 100644 --- a/embed/mozilla/EphyBrowser.cpp +++ b/embed/mozilla/EphyBrowser.cpp @@ -629,6 +629,8 @@ EphyDOMScrollEventListener::HandleEvent (nsIDOMEvent * aEvent) return NS_OK; } +#ifdef HAVE_GECKO_1_9 + NS_IMETHODIMP EphyCommandEventListener::HandleEvent (nsIDOMEvent *aDOMEvent) { @@ -740,6 +742,8 @@ EphyCommandEventListener::HandleEvent (nsIDOMEvent *aDOMEvent) return NS_OK; } +#endif /* HAVE_GECKO_1_9 */ + NS_IMPL_ISUPPORTS1(EphyContextMenuListener, nsIDOMContextMenuListener) NS_IMETHODIMP diff --git a/embed/mozilla/EphyBrowser.h b/embed/mozilla/EphyBrowser.h index 68f41b0af..18520fc03 100644 --- a/embed/mozilla/EphyBrowser.h +++ b/embed/mozilla/EphyBrowser.h @@ -107,6 +107,7 @@ public: EphyDOMScrollEventListener(EphyBrowser *aOwner) : EphyEventListener(aOwner) { }; }; +#ifdef HAVE_GECKO_1_9 class EphyCommandEventListener : public EphyEventListener { public: @@ -114,6 +115,9 @@ public: EphyCommandEventListener(EphyBrowser *aOwner) : EphyEventListener(aOwner) { }; }; +#else +class EphyCommandEventListener; +#endif /* HAVE_GECKO_1_9 */ class EphyContextMenuListener : public nsIDOMContextMenuListener { @@ -213,7 +217,9 @@ private: EphyDOMScrollEventListener *mDOMScrollEventListener; EphyPopupBlockEventListener *mPopupBlockEventListener; EphyModalAlertEventListener *mModalAlertListener; +#ifdef HAVE_GECKO_1_9 EphyCommandEventListener *mCommandEventListener; +#endif EphyContextMenuListener *mContextMenuListener; PRBool mInitialized; #ifdef HAVE_MOZILLA_PSM |