mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 12:55:46 +00:00
Bug 523569 - remove initXXXEventNS methods, r=sicking
--HG-- extra : rebase_source : fa251f645567f0bc63c1debbc64062d7145c5374
This commit is contained in:
parent
3ff2200833
commit
06825d0f17
@ -100,21 +100,6 @@ nsDOMDragEvent::InitDragEvent(const nsAString & aType,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMDragEvent::InitDragEventNS(const nsAString & aNamespaceURIArg,
|
||||
const nsAString & aType,
|
||||
PRBool aCanBubble, PRBool aCancelable,
|
||||
nsIDOMAbstractView* aView, PRInt32 aDetail,
|
||||
PRInt32 aScreenX, PRInt32 aScreenY,
|
||||
PRInt32 aClientX, PRInt32 aClientY,
|
||||
PRBool aCtrlKey, PRBool aAltKey, PRBool aShiftKey,
|
||||
PRBool aMetaKey, PRUint16 aButton,
|
||||
nsIDOMEventTarget *aRelatedTarget,
|
||||
nsIDOMDataTransfer* aDataTransfer)
|
||||
{
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMDragEvent::GetDataTransfer(nsIDOMDataTransfer** aDataTransfer)
|
||||
{
|
||||
|
@ -105,19 +105,6 @@ nsDOMMessageEvent::InitMessageEvent(const nsAString& aType,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMMessageEvent::InitMessageEventNS(const nsAString& aNamespaceURI,
|
||||
const nsAString& aType,
|
||||
PRBool aCanBubble,
|
||||
PRBool aCancelable,
|
||||
const nsAString& aData,
|
||||
const nsAString& aOrigin,
|
||||
const nsAString& aLastEventId,
|
||||
nsIDOMWindow* aSource)
|
||||
{
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
nsresult
|
||||
NS_NewDOMMessageEvent(nsIDOMEvent** aInstancePtrResult,
|
||||
nsPresContext* aPresContext,
|
||||
|
@ -41,7 +41,7 @@
|
||||
interface nsIDOMAbstractView;
|
||||
interface nsIDOMDataTransfer;
|
||||
|
||||
[scriptable, uuid(D52CF140-FB90-44DF-8D69-4B2BAB4D461F)]
|
||||
[scriptable, uuid(98351627-62d7-4b07-bbf3-78009b20764b)]
|
||||
interface nsIDOMDragEvent : nsIDOMMouseEvent
|
||||
{
|
||||
readonly attribute nsIDOMDataTransfer dataTransfer;
|
||||
@ -62,22 +62,4 @@ interface nsIDOMDragEvent : nsIDOMMouseEvent
|
||||
in unsigned short aButton,
|
||||
in nsIDOMEventTarget aRelatedTarget,
|
||||
in nsIDOMDataTransfer aDataTransfer);
|
||||
|
||||
void initDragEventNS(in DOMString namespaceURIArg,
|
||||
in DOMString typeArg,
|
||||
in boolean canBubbleArg,
|
||||
in boolean cancelableArg,
|
||||
in nsIDOMAbstractView aView,
|
||||
in long aDetail,
|
||||
in long aScreenX,
|
||||
in long aScreenY,
|
||||
in long aClientX,
|
||||
in long aClientY,
|
||||
in boolean aCtrlKey,
|
||||
in boolean aAltKey,
|
||||
in boolean aShiftKey,
|
||||
in boolean aMetaKey,
|
||||
in unsigned short aButton,
|
||||
in nsIDOMEventTarget aRelatedTarget,
|
||||
in nsIDOMDataTransfer aDataTransfer);
|
||||
};
|
||||
|
@ -45,7 +45,7 @@
|
||||
* For more information on this interface, please see
|
||||
* http://www.whatwg.org/specs/web-apps/current-work/#messageevent
|
||||
*/
|
||||
[scriptable, uuid(98150805-6A15-4667-815A-1A8C87CB4BBC)]
|
||||
[scriptable, uuid(d02e9a24-e5b2-47e4-bd80-7e980bf56b45)]
|
||||
interface nsIDOMMessageEvent : nsIDOMEvent
|
||||
{
|
||||
/**
|
||||
@ -84,18 +84,4 @@ interface nsIDOMMessageEvent : nsIDOMEvent
|
||||
in DOMString aOrigin,
|
||||
in DOMString aLastEventId,
|
||||
in nsIDOMWindow aSource);
|
||||
|
||||
/**
|
||||
* Initializes this event with the given data, in a manner analogous to
|
||||
* the similarly-named method on the Event interface, also setting the data,
|
||||
* origin, source, and lastEventId attributes of this appropriately.
|
||||
*/
|
||||
void initMessageEventNS(in DOMString aNamespaceURI,
|
||||
in DOMString aType,
|
||||
in boolean aCanBubble,
|
||||
in boolean aCancelable,
|
||||
in DOMString aData,
|
||||
in DOMString aOrigin,
|
||||
in DOMString aLastEventId,
|
||||
in nsIDOMWindow aSource);
|
||||
};
|
||||
|
@ -46,7 +46,7 @@
|
||||
* Event sent to a window when a storage area changes.
|
||||
*/
|
||||
|
||||
[scriptable, uuid(FC540C28-8EDD-4B7A-9C30-8638289B7A7D)]
|
||||
[scriptable, uuid(8c021c75-f6b6-493c-914e-0b6c57ccc88d)]
|
||||
interface nsIDOMStorageEvent : nsIDOMEvent
|
||||
{
|
||||
/**
|
||||
@ -62,13 +62,4 @@ interface nsIDOMStorageEvent : nsIDOMEvent
|
||||
in boolean canBubbleArg,
|
||||
in boolean cancelableArg,
|
||||
in DOMString domainArg);
|
||||
|
||||
/**
|
||||
* Initialize a storage event.
|
||||
*/
|
||||
void initStorageEventNS(in DOMString namespaceURIArg,
|
||||
in DOMString typeArg,
|
||||
in boolean canBubbleArg,
|
||||
in boolean cancelableArg,
|
||||
in DOMString domainArg);
|
||||
};
|
||||
|
@ -1879,18 +1879,3 @@ nsDOMStorageEvent::InitStorageEvent(const nsAString& aTypeArg,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMStorageEvent::InitStorageEventNS(const nsAString& aNamespaceURIArg,
|
||||
const nsAString& aTypeArg,
|
||||
PRBool aCanBubbleArg,
|
||||
PRBool aCancelableArg,
|
||||
const nsAString& aDomainArg)
|
||||
{
|
||||
// XXXjst: Figure out what to do with aNamespaceURIArg here!
|
||||
nsresult rv = InitEvent(aTypeArg, aCanBubbleArg, aCancelableArg);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
mDomain = aDomainArg;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user