diff options
Diffstat (limited to 'embed/mozilla/EphyBrowser.cpp')
-rw-r--r-- | embed/mozilla/EphyBrowser.cpp | 29 |
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; } |