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 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/widget/nsIDragSession.idl
 */

#ifndef __gen_nsIDragSession_h__
#define __gen_nsIDragSession_h__


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

#ifndef __gen_nsITransferable_h__
#include "nsITransferable.h"
#endif

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

class nsIDocument; /* webidl Document */

class nsINode; /* webidl Node */


/* starting interface:    nsIDragSession */
#define NS_IDRAGSESSION_IID_STR "25bce737-73f0-43c7-bc20-c71044a73c5a"

#define NS_IDRAGSESSION_IID \
  {0x25bce737, 0x73f0, 0x43c7, \
    { 0xbc, 0x20, 0xc7, 0x10, 0x44, 0xa7, 0x3c, 0x5a }}

class NS_NO_VTABLE nsIDragSession : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDRAGSESSION_IID)

  /* attribute boolean canDrop; */
  NS_IMETHOD GetCanDrop(bool *aCanDrop) = 0;
  NS_IMETHOD SetCanDrop(bool aCanDrop) = 0;

  /* attribute boolean onlyChromeDrop; */
  NS_IMETHOD GetOnlyChromeDrop(bool *aOnlyChromeDrop) = 0;
  NS_IMETHOD SetOnlyChromeDrop(bool aOnlyChromeDrop) = 0;

  /* attribute unsigned long dragAction; */
  NS_IMETHOD GetDragAction(uint32_t *aDragAction) = 0;
  NS_IMETHOD SetDragAction(uint32_t aDragAction) = 0;

  /* [noscript] attribute nsSize targetSize; */
  NS_IMETHOD GetTargetSize(nsSize * aTargetSize) = 0;
  NS_IMETHOD SetTargetSize(nsSize aTargetSize) = 0;

  /* readonly attribute unsigned long numDropItems; */
  NS_IMETHOD GetNumDropItems(uint32_t *aNumDropItems) = 0;

  /* readonly attribute Document sourceDocument; */
  NS_IMETHOD GetSourceDocument(nsIDocument **aSourceDocument) = 0;

  /* readonly attribute Node sourceNode; */
  NS_IMETHOD GetSourceNode(nsINode **aSourceNode) = 0;

  /* attribute AUTF8String triggeringPrincipalURISpec; */
  NS_IMETHOD GetTriggeringPrincipalURISpec(nsACString& aTriggeringPrincipalURISpec) = 0;
  NS_IMETHOD SetTriggeringPrincipalURISpec(const nsACString& aTriggeringPrincipalURISpec) = 0;

  /* [binaryname(DataTransferXPCOM)] attribute DataTransfer dataTransfer; */
  NS_IMETHOD GetDataTransferXPCOM(mozilla::dom::DataTransfer **aDataTransfer) = 0;
  NS_IMETHOD SetDataTransferXPCOM(mozilla::dom::DataTransfer *aDataTransfer) = 0;

  /* [nostdcall,notxpcom] DataTransfer getDataTransfer (); */
  virtual mozilla::dom::DataTransfer * GetDataTransfer(void) = 0;

  /* [nostdcall,notxpcom] void setDataTransfer (in DataTransfer aDataTransfer); */
  virtual void SetDataTransfer(mozilla::dom::DataTransfer *aDataTransfer) = 0;

  /* void getData (in nsITransferable aTransferable, in unsigned long aItemIndex); */
  NS_IMETHOD GetData(nsITransferable *aTransferable, uint32_t aItemIndex) = 0;

  /* boolean isDataFlavorSupported (in string aDataFlavor); */
  NS_IMETHOD IsDataFlavorSupported(const char * aDataFlavor, bool *_retval) = 0;

  /* void userCancelled (); */
  NS_IMETHOD UserCancelled(void) = 0;

  /* void dragEventDispatchedToChildProcess (); */
  NS_IMETHOD DragEventDispatchedToChildProcess(void) = 0;

  /* void updateDragEffect (); */
  NS_IMETHOD UpdateDragEffect(void) = 0;

  /* void updateDragImage (in Node aImage, in long aImageX, in long aImageY); */
  NS_IMETHOD UpdateDragImage(nsINode *aImage, int32_t aImageX, int32_t aImageY) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDragSession, NS_IDRAGSESSION_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDRAGSESSION \
  NS_IMETHOD GetCanDrop(bool *aCanDrop) override; \
  NS_IMETHOD SetCanDrop(bool aCanDrop) override; \
  NS_IMETHOD GetOnlyChromeDrop(bool *aOnlyChromeDrop) override; \
  NS_IMETHOD SetOnlyChromeDrop(bool aOnlyChromeDrop) override; \
  NS_IMETHOD GetDragAction(uint32_t *aDragAction) override; \
  NS_IMETHOD SetDragAction(uint32_t aDragAction) override; \
  NS_IMETHOD GetTargetSize(nsSize * aTargetSize) override; \
  NS_IMETHOD SetTargetSize(nsSize aTargetSize) override; \
  NS_IMETHOD GetNumDropItems(uint32_t *aNumDropItems) override; \
  NS_IMETHOD GetSourceDocument(nsIDocument **aSourceDocument) override; \
  NS_IMETHOD GetSourceNode(nsINode **aSourceNode) override; \
  NS_IMETHOD GetTriggeringPrincipalURISpec(nsACString& aTriggeringPrincipalURISpec) override; \
  NS_IMETHOD SetTriggeringPrincipalURISpec(const nsACString& aTriggeringPrincipalURISpec) override; \
  NS_IMETHOD GetDataTransferXPCOM(mozilla::dom::DataTransfer **aDataTransfer) override; \
  NS_IMETHOD SetDataTransferXPCOM(mozilla::dom::DataTransfer *aDataTransfer) override; \
  virtual mozilla::dom::DataTransfer * GetDataTransfer(void) override; \
  virtual void SetDataTransfer(mozilla::dom::DataTransfer *aDataTransfer) override; \
  NS_IMETHOD GetData(nsITransferable *aTransferable, uint32_t aItemIndex) override; \
  NS_IMETHOD IsDataFlavorSupported(const char * aDataFlavor, bool *_retval) override; \
  NS_IMETHOD UserCancelled(void) override; \
  NS_IMETHOD DragEventDispatchedToChildProcess(void) override; \
  NS_IMETHOD UpdateDragEffect(void) override; \
  NS_IMETHOD UpdateDragImage(nsINode *aImage, int32_t aImageX, int32_t aImageY) 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_NSIDRAGSESSION \
  nsresult GetCanDrop(bool *aCanDrop); \
  nsresult SetCanDrop(bool aCanDrop); \
  nsresult GetOnlyChromeDrop(bool *aOnlyChromeDrop); \
  nsresult SetOnlyChromeDrop(bool aOnlyChromeDrop); \
  nsresult GetDragAction(uint32_t *aDragAction); \
  nsresult SetDragAction(uint32_t aDragAction); \
  nsresult GetTargetSize(nsSize * aTargetSize); \
  nsresult SetTargetSize(nsSize aTargetSize); \
  nsresult GetNumDropItems(uint32_t *aNumDropItems); \
  nsresult GetSourceDocument(nsIDocument **aSourceDocument); \
  nsresult GetSourceNode(nsINode **aSourceNode); \
  nsresult GetTriggeringPrincipalURISpec(nsACString& aTriggeringPrincipalURISpec); \
  nsresult SetTriggeringPrincipalURISpec(const nsACString& aTriggeringPrincipalURISpec); \
  nsresult GetDataTransferXPCOM(mozilla::dom::DataTransfer **aDataTransfer); \
  nsresult SetDataTransferXPCOM(mozilla::dom::DataTransfer *aDataTransfer); \
  mozilla::dom::DataTransfer * GetDataTransfer(void); \
  void SetDataTransfer(mozilla::dom::DataTransfer *aDataTransfer); \
  nsresult GetData(nsITransferable *aTransferable, uint32_t aItemIndex); \
  nsresult IsDataFlavorSupported(const char * aDataFlavor, bool *_retval); \
  nsresult UserCancelled(void); \
  nsresult DragEventDispatchedToChildProcess(void); \
  nsresult UpdateDragEffect(void); \
  nsresult UpdateDragImage(nsINode *aImage, int32_t aImageX, int32_t aImageY); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDRAGSESSION(_to) \
  NS_IMETHOD GetCanDrop(bool *aCanDrop) override { return _to GetCanDrop(aCanDrop); } \
  NS_IMETHOD SetCanDrop(bool aCanDrop) override { return _to SetCanDrop(aCanDrop); } \
  NS_IMETHOD GetOnlyChromeDrop(bool *aOnlyChromeDrop) override { return _to GetOnlyChromeDrop(aOnlyChromeDrop); } \
  NS_IMETHOD SetOnlyChromeDrop(bool aOnlyChromeDrop) override { return _to SetOnlyChromeDrop(aOnlyChromeDrop); } \
  NS_IMETHOD GetDragAction(uint32_t *aDragAction) override { return _to GetDragAction(aDragAction); } \
  NS_IMETHOD SetDragAction(uint32_t aDragAction) override { return _to SetDragAction(aDragAction); } \
  NS_IMETHOD GetTargetSize(nsSize * aTargetSize) override { return _to GetTargetSize(aTargetSize); } \
  NS_IMETHOD SetTargetSize(nsSize aTargetSize) override { return _to SetTargetSize(aTargetSize); } \
  NS_IMETHOD GetNumDropItems(uint32_t *aNumDropItems) override { return _to GetNumDropItems(aNumDropItems); } \
  NS_IMETHOD GetSourceDocument(nsIDocument **aSourceDocument) override { return _to GetSourceDocument(aSourceDocument); } \
  NS_IMETHOD GetSourceNode(nsINode **aSourceNode) override { return _to GetSourceNode(aSourceNode); } \
  NS_IMETHOD GetTriggeringPrincipalURISpec(nsACString& aTriggeringPrincipalURISpec) override { return _to GetTriggeringPrincipalURISpec(aTriggeringPrincipalURISpec); } \
  NS_IMETHOD SetTriggeringPrincipalURISpec(const nsACString& aTriggeringPrincipalURISpec) override { return _to SetTriggeringPrincipalURISpec(aTriggeringPrincipalURISpec); } \
  NS_IMETHOD GetDataTransferXPCOM(mozilla::dom::DataTransfer **aDataTransfer) override { return _to GetDataTransferXPCOM(aDataTransfer); } \
  NS_IMETHOD SetDataTransferXPCOM(mozilla::dom::DataTransfer *aDataTransfer) override { return _to SetDataTransferXPCOM(aDataTransfer); } \
  virtual mozilla::dom::DataTransfer * GetDataTransfer(void) override { return _to GetDataTransfer(); } \
  virtual void SetDataTransfer(mozilla::dom::DataTransfer *aDataTransfer) override { return _to SetDataTransfer(aDataTransfer); } \
  NS_IMETHOD GetData(nsITransferable *aTransferable, uint32_t aItemIndex) override { return _to GetData(aTransferable, aItemIndex); } \
  NS_IMETHOD IsDataFlavorSupported(const char * aDataFlavor, bool *_retval) override { return _to IsDataFlavorSupported(aDataFlavor, _retval); } \
  NS_IMETHOD UserCancelled(void) override { return _to UserCancelled(); } \
  NS_IMETHOD DragEventDispatchedToChildProcess(void) override { return _to DragEventDispatchedToChildProcess(); } \
  NS_IMETHOD UpdateDragEffect(void) override { return _to UpdateDragEffect(); } \
  NS_IMETHOD UpdateDragImage(nsINode *aImage, int32_t aImageX, int32_t aImageY) override { return _to UpdateDragImage(aImage, aImageX, aImageY); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDRAGSESSION(_to) \
  NS_IMETHOD GetCanDrop(bool *aCanDrop) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanDrop(aCanDrop); } \
  NS_IMETHOD SetCanDrop(bool aCanDrop) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCanDrop(aCanDrop); } \
  NS_IMETHOD GetOnlyChromeDrop(bool *aOnlyChromeDrop) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnlyChromeDrop(aOnlyChromeDrop); } \
  NS_IMETHOD SetOnlyChromeDrop(bool aOnlyChromeDrop) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnlyChromeDrop(aOnlyChromeDrop); } \
  NS_IMETHOD GetDragAction(uint32_t *aDragAction) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDragAction(aDragAction); } \
  NS_IMETHOD SetDragAction(uint32_t aDragAction) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDragAction(aDragAction); } \
  NS_IMETHOD GetTargetSize(nsSize * aTargetSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTargetSize(aTargetSize); } \
  NS_IMETHOD SetTargetSize(nsSize aTargetSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTargetSize(aTargetSize); } \
  NS_IMETHOD GetNumDropItems(uint32_t *aNumDropItems) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumDropItems(aNumDropItems); } \
  NS_IMETHOD GetSourceDocument(nsIDocument **aSourceDocument) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSourceDocument(aSourceDocument); } \
  NS_IMETHOD GetSourceNode(nsINode **aSourceNode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSourceNode(aSourceNode); } \
  NS_IMETHOD GetTriggeringPrincipalURISpec(nsACString& aTriggeringPrincipalURISpec) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTriggeringPrincipalURISpec(aTriggeringPrincipalURISpec); } \
  NS_IMETHOD SetTriggeringPrincipalURISpec(const nsACString& aTriggeringPrincipalURISpec) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTriggeringPrincipalURISpec(aTriggeringPrincipalURISpec); } \
  NS_IMETHOD GetDataTransferXPCOM(mozilla::dom::DataTransfer **aDataTransfer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDataTransferXPCOM(aDataTransfer); } \
  NS_IMETHOD SetDataTransferXPCOM(mozilla::dom::DataTransfer *aDataTransfer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDataTransferXPCOM(aDataTransfer); } \
  virtual mozilla::dom::DataTransfer * GetDataTransfer(void) override; \
  virtual void SetDataTransfer(mozilla::dom::DataTransfer *aDataTransfer) override; \
  NS_IMETHOD GetData(nsITransferable *aTransferable, uint32_t aItemIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aTransferable, aItemIndex); } \
  NS_IMETHOD IsDataFlavorSupported(const char * aDataFlavor, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsDataFlavorSupported(aDataFlavor, _retval); } \
  NS_IMETHOD UserCancelled(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UserCancelled(); } \
  NS_IMETHOD DragEventDispatchedToChildProcess(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DragEventDispatchedToChildProcess(); } \
  NS_IMETHOD UpdateDragEffect(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateDragEffect(); } \
  NS_IMETHOD UpdateDragImage(nsINode *aImage, int32_t aImageX, int32_t aImageY) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateDragImage(aImage, aImageX, aImageY); } 



#endif /* __gen_nsIDragSession_h__ */