Interface nsIDroppedLinkHandlerType

Hierarchy

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • Determines if a link being dragged can be dropped and returns true if so. aEvent should be a dragenter or dragover event.

    If aAllowSameDocument is false, drops are only allowed if the document of the source of the drag is different from the destination. This check includes any parent, sibling and child frames in the same content tree. If true, the source is not checked.

    Parameters

    • aEvent: DragEvent
    • aAllowSameDocument: boolean

    Returns boolean

  • Given a drop event aEvent, determines the CSP for the event and returns it.

    Parameters

    • aEvent: DragEvent

    Returns nsIContentSecurityPolicy

  • Given a drop event aEvent, determines the triggering principal for the event and returns it.

    Parameters

    • aEvent: DragEvent

    Returns nsIPrincipal

  • Given a drop event aEvent, validate the extra URIs for the event, this is used when the caller extracts yet another URIs from the dropped text, like home button that splits the text with "|".

    Parameters

    • aEvent: DragEvent
    • aURIs: invalid
    • aDisallowInherit: boolean

    Returns void

Generated using TypeDoc