aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphyBrowser.h
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-05-15 04:19:51 +0800
committerChristian Persch <chpe@src.gnome.org>2005-05-15 04:19:51 +0800
commit26c0657a5dbb31e1e380645dffef2f71adcfe566 (patch)
tree007e5763a82701c0d1755597e4850597b35085aa /embed/mozilla/EphyBrowser.h
parent4a770ac2d3e35cfc5a32333001ebef8d45bce77f (diff)
downloadgsoc2013-epiphany-26c0657a5dbb31e1e380645dffef2f71adcfe566.tar
gsoc2013-epiphany-26c0657a5dbb31e1e380645dffef2f71adcfe566.tar.gz
gsoc2013-epiphany-26c0657a5dbb31e1e380645dffef2f71adcfe566.tar.bz2
gsoc2013-epiphany-26c0657a5dbb31e1e380645dffef2f71adcfe566.tar.lz
gsoc2013-epiphany-26c0657a5dbb31e1e380645dffef2f71adcfe566.tar.xz
gsoc2013-epiphany-26c0657a5dbb31e1e380645dffef2f71adcfe566.tar.zst
gsoc2013-epiphany-26c0657a5dbb31e1e380645dffef2f71adcfe566.zip
No need to have Init on the event listener classes, move that
2005-05-14 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyBrowser.h: No need to have Init on the event listener classes, move that
Diffstat (limited to 'embed/mozilla/EphyBrowser.h')
-rw-r--r--embed/mozilla/EphyBrowser.h26
1 files changed, 14 insertions, 12 deletions
diff --git a/embed/mozilla/EphyBrowser.h b/embed/mozilla/EphyBrowser.h
index 31c2699e1..55b02e942 100644
--- a/embed/mozilla/EphyBrowser.h
+++ b/embed/mozilla/EphyBrowser.h
@@ -52,17 +52,14 @@ class EphyBrowser;
class EphyEventListener : public nsIDOMEventListener
{
public:
- EphyEventListener();
- virtual ~EphyEventListener();
-
- nsresult Init (EphyBrowser *aOwner);
-
NS_DECL_ISUPPORTS
// nsIDOMEventListener
-
NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent) = 0;
+ EphyEventListener(EphyBrowser *aOwner) : mOwner(aOwner) { };
+ virtual ~EphyEventListener() { };
+
protected:
EphyBrowser *mOwner;
};
@@ -71,6 +68,8 @@ class EphyDOMLinkEventListener : public EphyEventListener
{
public:
NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent);
+
+ EphyDOMLinkEventListener(EphyBrowser *aOwner) : EphyEventListener(aOwner) { };
private:
nsresult GetDocURI (nsIDOMElement *aElement,
nsIURI **aDocURI);
@@ -81,18 +80,24 @@ class EphyPopupBlockEventListener : public EphyEventListener
{
public:
NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent);
+
+ EphyPopupBlockEventListener(EphyBrowser *aOwner) : EphyEventListener(aOwner) { };
};
class EphyModalAlertEventListener : public EphyEventListener
{
public:
NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent);
+
+ EphyModalAlertEventListener(EphyBrowser *aOwner) : EphyEventListener(aOwner) { };
};
class EphyDOMContentLoadedEventListener : public EphyEventListener
{
public:
NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent);
+
+ EphyDOMContentLoadedEventListener(EphyBrowser *aOwner) : EphyEventListener(aOwner) { };
};
class EphyContextMenuListener : public nsIDOMContextMenuListener
@@ -100,16 +105,13 @@ class EphyContextMenuListener : public nsIDOMContextMenuListener
public:
NS_DECL_ISUPPORTS
- EphyContextMenuListener();
- virtual ~EphyContextMenuListener();
-
- nsresult Init(EphyBrowser *aOwner);
-
// nsIDOMContextMenuListener
-
NS_IMETHOD ContextMenu(nsIDOMEvent *aEvent);
NS_IMETHOD HandleEvent(nsIDOMEvent *aEvent);
+ EphyContextMenuListener(EphyBrowser *aOwner) : mOwner(aOwner) { };
+ virtual ~EphyContextMenuListener() { };
+
protected:
EphyBrowser *mOwner;
};