mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
new popupblocked domevent. bug 199705 r=jaggernaut,jst
This commit is contained in:
parent
2d8fc2dad9
commit
c8a9092ebc
@ -41,6 +41,7 @@
|
||||
|
||||
#include "nsIDOMKeyEvent.h"
|
||||
#include "nsIDOMMouseEvent.h"
|
||||
#include "nsIDOMPopupBlockedEvent.h"
|
||||
#include "nsIDOMNSUIEvent.h"
|
||||
#include "nsIDOMNSEvent.h"
|
||||
#include "nsISupports.h"
|
||||
@ -61,6 +62,7 @@ class nsIScrollableView;
|
||||
class nsDOMEvent : public nsIDOMKeyEvent,
|
||||
public nsIDOMNSEvent,
|
||||
public nsIDOMMouseEvent,
|
||||
public nsIDOMPopupBlockedEvent,
|
||||
public nsIDOMNSUIEvent,
|
||||
public nsIPrivateDOMEvent,
|
||||
public nsIPrivateTextEvent,
|
||||
@ -118,7 +120,8 @@ public:
|
||||
eDOMEvents_noderemovedfromdocument,
|
||||
eDOMEvents_nodeinsertedintodocument,
|
||||
eDOMEvents_attrmodified,
|
||||
eDOMEvents_characterdatamodified
|
||||
eDOMEvents_characterdatamodified,
|
||||
eDOMEvents_popupBlocked
|
||||
};
|
||||
|
||||
nsDOMEvent(nsIPresContext* aPresContext, nsEvent* aEvent,
|
||||
@ -136,6 +139,8 @@ public:
|
||||
// nsIDOMUIEvent Interface
|
||||
NS_DECL_NSIDOMUIEVENT
|
||||
|
||||
NS_DECL_NSIDOMPOPUPBLOCKEDEVENT
|
||||
|
||||
// nsIDOMMouseEvent Interface and nsIDOMKeyEvent Interface
|
||||
NS_IMETHOD GetScreenX(PRInt32* aScreenX);
|
||||
NS_IMETHOD GetScreenY(PRInt32* aScreenY);
|
||||
|
@ -2327,9 +2327,13 @@ nsEventListenerManager::CreateEvent(nsIPresContext* aPresContext,
|
||||
*aDOMEvent = nsnull;
|
||||
|
||||
nsAutoString str(aEventType);
|
||||
if (!aEvent && !str.EqualsIgnoreCase("MouseEvents") && !str.EqualsIgnoreCase("KeyEvents") &&
|
||||
!str.EqualsIgnoreCase("HTMLEvents") && !str.EqualsIgnoreCase("MutationEvents") &&
|
||||
!str.EqualsIgnoreCase("MouseScrollEvents") && !str.EqualsIgnoreCase("Events")) {
|
||||
if (!aEvent && !str.EqualsIgnoreCase("MouseEvents") &&
|
||||
!str.EqualsIgnoreCase("KeyEvents") &&
|
||||
!str.EqualsIgnoreCase("HTMLEvents") &&
|
||||
!str.EqualsIgnoreCase("MutationEvents") &&
|
||||
!str.EqualsIgnoreCase("MouseScrollEvents") &&
|
||||
!str.EqualsIgnoreCase("PopupBlockedEvents") &&
|
||||
!str.EqualsIgnoreCase("Events")) {
|
||||
return NS_ERROR_DOM_NOT_SUPPORTED_ERR;
|
||||
}
|
||||
|
||||
|
@ -184,6 +184,7 @@
|
||||
#include "nsIDOMEntityReference.h"
|
||||
#include "nsIDOMNotation.h"
|
||||
#include "nsIDOMMouseEvent.h"
|
||||
#include "nsIDOMPopupBlockedEvent.h"
|
||||
#include "nsIDOMMutationEvent.h"
|
||||
#include "nsIDOMDocumentStyle.h"
|
||||
#include "nsIDOMDocumentRange.h"
|
||||
@ -1456,6 +1457,7 @@ nsDOMClassInfo::Init()
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMNSEvent)
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMKeyEvent)
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMMouseEvent)
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMPopupBlockedEvent)
|
||||
DOM_CLASSINFO_MAP_ENTRY(nsIDOMNSUIEvent)
|
||||
DOM_CLASSINFO_MAP_END
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user