aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphyBrowser.h
diff options
context:
space:
mode:
authorAdam Hooper <adamh@densi.com>2003-12-10 06:23:07 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-12-10 06:23:07 +0800
commit1a30aad2cd97319b1b66b14d7c9c2f3b20b05d80 (patch)
treea1de8c874fadd7e2ef3478de1f8a114554fa90e1 /embed/mozilla/EphyBrowser.h
parent8a7cfd5a9a6a2fe10c78199dd1a81c6a13118835 (diff)
downloadgsoc2013-epiphany-1a30aad2cd97319b1b66b14d7c9c2f3b20b05d80.tar
gsoc2013-epiphany-1a30aad2cd97319b1b66b14d7c9c2f3b20b05d80.tar.gz
gsoc2013-epiphany-1a30aad2cd97319b1b66b14d7c9c2f3b20b05d80.tar.bz2
gsoc2013-epiphany-1a30aad2cd97319b1b66b14d7c9c2f3b20b05d80.tar.lz
gsoc2013-epiphany-1a30aad2cd97319b1b66b14d7c9c2f3b20b05d80.tar.xz
gsoc2013-epiphany-1a30aad2cd97319b1b66b14d7c9c2f3b20b05d80.tar.zst
gsoc2013-epiphany-1a30aad2cd97319b1b66b14d7c9c2f3b20b05d80.zip
Move events code inside EphyBrowser.cpp and add an event for blocked
2003-12-09 Adam Hooper <adamh@densi.com> * embed/ephy-embed.c: (ephy_embed_base_init): * embed/ephy-embed.h: * embed/mozilla/EphyBrowser.cpp: * embed/mozilla/EphyBrowser.h: * embed/mozilla/Makefile.am: Move events code inside EphyBrowser.cpp and add an event for blocked popup. * embed/ephy-permission-manager.c: Some more docs * src/Makefile.am: * src/ephy-window.c: (ephy_window_get_statusbar): * src/ephy-window.h: Add a way to access the statusbar for plugins
Diffstat (limited to 'embed/mozilla/EphyBrowser.h')
-rw-r--r--embed/mozilla/EphyBrowser.h38
1 files changed, 36 insertions, 2 deletions
diff --git a/embed/mozilla/EphyBrowser.h b/embed/mozilla/EphyBrowser.h
index b2de36ff2..e5ed2e5f5 100644
--- a/embed/mozilla/EphyBrowser.h
+++ b/embed/mozilla/EphyBrowser.h
@@ -22,7 +22,9 @@
#define EPHY_BROWSER_H
#include "ephy-encodings.h"
+#include "ephy-embed.h"
+#include "nsIDOMEventListener.h"
#include "nsIDocShell.h"
#include "nsIWebNavigation.h"
#include "nsIWebPageDescriptor.h"
@@ -38,7 +40,38 @@
#include "nsIPrintSettings.h"
-class EphyEventListener;
+class EphyEventListener : public nsIDOMEventListener
+{
+public:
+ EphyEventListener();
+ virtual ~EphyEventListener();
+
+ nsresult Init(EphyEmbed *aOwner);
+
+ NS_DECL_ISUPPORTS
+
+ // nsIDOMEventListener
+
+ NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent) = 0;
+
+protected:
+ EphyEmbed *mOwner;
+};
+
+class EphyFaviconEventListener : public EphyEventListener
+{
+public:
+ NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent);
+
+private:
+ nsresult HandleFaviconLink (nsIDOMNode *node);
+};
+
+class EphyPopupEventListener : public EphyEventListener
+{
+public:
+ NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent);
+};
class EphyBrowser
{
@@ -93,7 +126,8 @@ private:
nsCOMPtr<nsIWebProgressListener> mProgress;
nsCOMPtr<nsIDOMEventReceiver> mEventReceiver;
nsCOMPtr<nsIDOMWindow> mDOMWindow;
- EphyEventListener *mEventListener;
+ EphyFaviconEventListener *mFaviconEventListener;
+ EphyPopupEventListener *mPopupEventListener;
nsresult GetListener (void);
nsresult AttachListeners (void);