DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/dom/base/nsIDroppedLinkHandler.idl
 */

#ifndef __gen_nsIDroppedLinkHandler_h__
#define __gen_nsIDroppedLinkHandler_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#ifndef __gen_nsIPrincipal_h__
#include "nsIPrincipal.h"
#endif

#include "js/GCAnnotations.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
namespace mozilla {
namespace dom {
class DragEvent; /* webidl DragEvent */
} // namespace dom
} // namespace mozilla

namespace mozilla {
namespace dom {
class DataTransfer; /* webidl DataTransfer */
} // namespace dom
} // namespace mozilla


/* starting interface:    nsIDroppedLinkItem */
#define NS_IDROPPEDLINKITEM_IID_STR "69e14f91-2e09-4ca6-a511-a715c99a2804"

#define NS_IDROPPEDLINKITEM_IID \
  {0x69e14f91, 0x2e09, 0x4ca6, \
    { 0xa5, 0x11, 0xa7, 0x15, 0xc9, 0x9a, 0x28, 0x04 }}

class NS_NO_VTABLE nsIDroppedLinkItem : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDROPPEDLINKITEM_IID)

  /* readonly attribute DOMString url; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUrl(nsAString& aUrl) = 0;

  /* readonly attribute DOMString name; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetName(nsAString& aName) = 0;

  /* readonly attribute DOMString type; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetType(nsAString& aType) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDroppedLinkItem, NS_IDROPPEDLINKITEM_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDROPPEDLINKITEM \
  NS_IMETHOD GetUrl(nsAString& aUrl) override; \
  NS_IMETHOD GetName(nsAString& aName) override; \
  NS_IMETHOD GetType(nsAString& aType) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIDROPPEDLINKITEM \
  nsresult GetUrl(nsAString& aUrl); \
  nsresult GetName(nsAString& aName); \
  nsresult GetType(nsAString& aType); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDROPPEDLINKITEM(_to) \
  NS_IMETHOD GetUrl(nsAString& aUrl) override { return _to GetUrl(aUrl); } \
  NS_IMETHOD GetName(nsAString& aName) override { return _to GetName(aName); } \
  NS_IMETHOD GetType(nsAString& aType) override { return _to GetType(aType); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDROPPEDLINKITEM(_to) \
  NS_IMETHOD GetUrl(nsAString& aUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUrl(aUrl); } \
  NS_IMETHOD GetName(nsAString& aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  NS_IMETHOD GetType(nsAString& aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } 


/* starting interface:    nsIDroppedLinkHandler */
#define NS_IDROPPEDLINKHANDLER_IID_STR "21b5c25a-28a9-47bd-8431-fa9116305ded"

#define NS_IDROPPEDLINKHANDLER_IID \
  {0x21b5c25a, 0x28a9, 0x47bd, \
    { 0x84, 0x31, 0xfa, 0x91, 0x16, 0x30, 0x5d, 0xed }}

class NS_NO_VTABLE nsIDroppedLinkHandler : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDROPPEDLINKHANDLER_IID)

  /* boolean canDropLink (in DragEvent aEvent, in boolean aAllowSameDocument); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CanDropLink(mozilla::dom::DragEvent *aEvent, bool aAllowSameDocument, bool *_retval) = 0;

  /* AString dropLink (in DragEvent aEvent, out AString aName, [optional] in boolean aDisallowInherit); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DropLink(mozilla::dom::DragEvent *aEvent, nsAString& aName, bool aDisallowInherit, nsAString& _retval) = 0;

  /* void dropLinks (in DragEvent aEvent, [optional] in boolean aDisallowInherit, [optional] out unsigned long aCount, [array, size_is (aCount), retval] out nsIDroppedLinkItem aLinks); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DropLinks(mozilla::dom::DragEvent *aEvent, bool aDisallowInherit, uint32_t *aCount, nsIDroppedLinkItem ***aLinks) = 0;

  /* void validateURIsForDrop (in DragEvent aEvent, in unsigned long aURIsCount, [array, size_is (aURIsCount)] in wstring aURIs, [optional] in boolean aDisallowInherit); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ValidateURIsForDrop(mozilla::dom::DragEvent *aEvent, uint32_t aURIsCount, const char16_t * *aURIs, bool aDisallowInherit) = 0;

  /* void queryLinks (in DataTransfer aDataTransfer, [optional] out unsigned long aCount, [array, size_is (aCount), retval] out nsIDroppedLinkItem aLinks); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD QueryLinks(mozilla::dom::DataTransfer *aDataTransfer, uint32_t *aCount, nsIDroppedLinkItem ***aLinks) = 0;

  /* nsIPrincipal getTriggeringPrincipal (in DragEvent aEvent); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTriggeringPrincipal(mozilla::dom::DragEvent *aEvent, nsIPrincipal **_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDroppedLinkHandler, NS_IDROPPEDLINKHANDLER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDROPPEDLINKHANDLER \
  NS_IMETHOD CanDropLink(mozilla::dom::DragEvent *aEvent, bool aAllowSameDocument, bool *_retval) override; \
  NS_IMETHOD DropLink(mozilla::dom::DragEvent *aEvent, nsAString& aName, bool aDisallowInherit, nsAString& _retval) override; \
  NS_IMETHOD DropLinks(mozilla::dom::DragEvent *aEvent, bool aDisallowInherit, uint32_t *aCount, nsIDroppedLinkItem ***aLinks) override; \
  NS_IMETHOD ValidateURIsForDrop(mozilla::dom::DragEvent *aEvent, uint32_t aURIsCount, const char16_t * *aURIs, bool aDisallowInherit) override; \
  NS_IMETHOD QueryLinks(mozilla::dom::DataTransfer *aDataTransfer, uint32_t *aCount, nsIDroppedLinkItem ***aLinks) override; \
  NS_IMETHOD GetTriggeringPrincipal(mozilla::dom::DragEvent *aEvent, nsIPrincipal **_retval) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIDROPPEDLINKHANDLER \
  nsresult CanDropLink(mozilla::dom::DragEvent *aEvent, bool aAllowSameDocument, bool *_retval); \
  nsresult DropLink(mozilla::dom::DragEvent *aEvent, nsAString& aName, bool aDisallowInherit, nsAString& _retval); \
  nsresult DropLinks(mozilla::dom::DragEvent *aEvent, bool aDisallowInherit, uint32_t *aCount, nsIDroppedLinkItem ***aLinks); \
  nsresult ValidateURIsForDrop(mozilla::dom::DragEvent *aEvent, uint32_t aURIsCount, const char16_t * *aURIs, bool aDisallowInherit); \
  nsresult QueryLinks(mozilla::dom::DataTransfer *aDataTransfer, uint32_t *aCount, nsIDroppedLinkItem ***aLinks); \
  nsresult GetTriggeringPrincipal(mozilla::dom::DragEvent *aEvent, nsIPrincipal **_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDROPPEDLINKHANDLER(_to) \
  NS_IMETHOD CanDropLink(mozilla::dom::DragEvent *aEvent, bool aAllowSameDocument, bool *_retval) override { return _to CanDropLink(aEvent, aAllowSameDocument, _retval); } \
  NS_IMETHOD DropLink(mozilla::dom::DragEvent *aEvent, nsAString& aName, bool aDisallowInherit, nsAString& _retval) override { return _to DropLink(aEvent, aName, aDisallowInherit, _retval); } \
  NS_IMETHOD DropLinks(mozilla::dom::DragEvent *aEvent, bool aDisallowInherit, uint32_t *aCount, nsIDroppedLinkItem ***aLinks) override { return _to DropLinks(aEvent, aDisallowInherit, aCount, aLinks); } \
  NS_IMETHOD ValidateURIsForDrop(mozilla::dom::DragEvent *aEvent, uint32_t aURIsCount, const char16_t * *aURIs, bool aDisallowInherit) override { return _to ValidateURIsForDrop(aEvent, aURIsCount, aURIs, aDisallowInherit); } \
  NS_IMETHOD QueryLinks(mozilla::dom::DataTransfer *aDataTransfer, uint32_t *aCount, nsIDroppedLinkItem ***aLinks) override { return _to QueryLinks(aDataTransfer, aCount, aLinks); } \
  NS_IMETHOD GetTriggeringPrincipal(mozilla::dom::DragEvent *aEvent, nsIPrincipal **_retval) override { return _to GetTriggeringPrincipal(aEvent, _retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDROPPEDLINKHANDLER(_to) \
  NS_IMETHOD CanDropLink(mozilla::dom::DragEvent *aEvent, bool aAllowSameDocument, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CanDropLink(aEvent, aAllowSameDocument, _retval); } \
  NS_IMETHOD DropLink(mozilla::dom::DragEvent *aEvent, nsAString& aName, bool aDisallowInherit, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DropLink(aEvent, aName, aDisallowInherit, _retval); } \
  NS_IMETHOD DropLinks(mozilla::dom::DragEvent *aEvent, bool aDisallowInherit, uint32_t *aCount, nsIDroppedLinkItem ***aLinks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DropLinks(aEvent, aDisallowInherit, aCount, aLinks); } \
  NS_IMETHOD ValidateURIsForDrop(mozilla::dom::DragEvent *aEvent, uint32_t aURIsCount, const char16_t * *aURIs, bool aDisallowInherit) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ValidateURIsForDrop(aEvent, aURIsCount, aURIs, aDisallowInherit); } \
  NS_IMETHOD QueryLinks(mozilla::dom::DataTransfer *aDataTransfer, uint32_t *aCount, nsIDroppedLinkItem ***aLinks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->QueryLinks(aDataTransfer, aCount, aLinks); } \
  NS_IMETHOD GetTriggeringPrincipal(mozilla::dom::DragEvent *aEvent, nsIPrincipal **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTriggeringPrincipal(aEvent, _retval); } 


#endif /* __gen_nsIDroppedLinkHandler_h__ */