aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphyBrowser.cpp
diff options
context:
space:
mode:
authorAdam Hooper <adamh@src.gnome.org>2004-03-26 03:09:44 +0800
committerAdam Hooper <adamh@src.gnome.org>2004-03-26 03:09:44 +0800
commit1a84ef9f76056a2805a837bb45209a3746cdb521 (patch)
treed0638c70653ae50d2ec4fae814d7fd4e2353e4f6 /embed/mozilla/EphyBrowser.cpp
parent867777faceb7b4eba5b58b4e8edb23edfeeb8287 (diff)
downloadgsoc2013-epiphany-1a84ef9f76056a2805a837bb45209a3746cdb521.tar
gsoc2013-epiphany-1a84ef9f76056a2805a837bb45209a3746cdb521.tar.gz
gsoc2013-epiphany-1a84ef9f76056a2805a837bb45209a3746cdb521.tar.bz2
gsoc2013-epiphany-1a84ef9f76056a2805a837bb45209a3746cdb521.tar.lz
gsoc2013-epiphany-1a84ef9f76056a2805a837bb45209a3746cdb521.tar.xz
gsoc2013-epiphany-1a84ef9f76056a2805a837bb45209a3746cdb521.tar.zst
gsoc2013-epiphany-1a84ef9f76056a2805a837bb45209a3746cdb521.zip
Documented EphyEmbed
Diffstat (limited to 'embed/mozilla/EphyBrowser.cpp')
-rw-r--r--embed/mozilla/EphyBrowser.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp
index c04183247..d09bfca5e 100644
--- a/embed/mozilla/EphyBrowser.cpp
+++ b/embed/mozilla/EphyBrowser.cpp
@@ -59,7 +59,6 @@
#include "nsIDOMEventTarget.h"
#include "nsIDOMNode.h"
#include "nsIDOMElement.h"
-#include "nsIDOMPopupBlockedEvent.h"
#include "nsIDocShellTreeItem.h"
#include "nsIDocShellTreeNode.h"
#include "nsIDocShellTreeOwner.h"
@@ -170,23 +169,9 @@ EphyFaviconEventListener::HandleEvent(nsIDOMEvent* aDOMEvent)
return NS_OK;
}
-NS_IMETHODIMP
-EphyPopupEventListener::HandleEvent(nsIDOMEvent* aDOMEvent)
-{
- nsCOMPtr<nsIDOMPopupBlockedEvent> popupEvent =
- do_QueryInterface(aDOMEvent);
- if (popupEvent)
- {
- g_signal_emit_by_name (mOwner, "ge_popup_blocked");
- }
-
- return NS_OK;
-}
-
EphyBrowser::EphyBrowser ()
{
mFaviconEventListener = nsnull;
- mPopupEventListener = nsnull;
mEventReceiver = nsnull;
mInitialized = PR_FALSE;
}
@@ -216,15 +201,9 @@ nsresult EphyBrowser::Init (GtkMozEmbed *mozembed)
mFaviconEventListener = new EphyFaviconEventListener();
if (!mFaviconEventListener) return NS_ERROR_OUT_OF_MEMORY;
- mPopupEventListener = new EphyPopupEventListener();
- if (!mPopupEventListener) return NS_ERROR_OUT_OF_MEMORY;
-
rv = mFaviconEventListener->Init (EPHY_EMBED (mozembed));
NS_ENSURE_SUCCESS (rv, NS_ERROR_FAILURE);
- rv = mPopupEventListener->Init (EPHY_EMBED (mozembed));
- NS_ENSURE_SUCCESS (rv, NS_ERROR_FAILURE);
-
rv = GetListener();
NS_ENSURE_SUCCESS (rv, NS_ERROR_FAILURE);
@@ -270,10 +249,6 @@ EphyBrowser::AttachListeners(void)
mFaviconEventListener, PR_FALSE);
NS_ENSURE_SUCCESS (rv, NS_ERROR_FAILURE);
- rv = target->AddEventListener(NS_LITERAL_STRING("DOMPopupBlocked"),
- mPopupEventListener, PR_FALSE);
- NS_ENSURE_SUCCESS (rv, NS_ERROR_FAILURE);
-
return NS_OK;
}
@@ -291,10 +266,6 @@ EphyBrowser::DetachListeners(void)
mFaviconEventListener, PR_FALSE);
NS_ENSURE_SUCCESS (rv, NS_ERROR_FAILURE);
- rv = target->RemoveEventListener(NS_LITERAL_STRING("DOMPopupBlocked"),
- mPopupEventListener, PR_FALSE);
- NS_ENSURE_SUCCESS (rv, NS_ERROR_FAILURE);
-
return NS_OK;
}