/usr/include/thunderbird-11.0.1/nsIDragSession.h is in thunderbird-dev 11.0.1+build1-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/mozilla/widget/public/nsIDragSession.idl
*/
#ifndef __gen_nsIDragSession_h__
#define __gen_nsIDragSession_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nsISupportsArray_h__
#include "nsISupportsArray.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"
class nsIDOMDocument; /* forward declaration */
class nsIDOMNode; /* forward declaration */
class nsIDOMDataTransfer; /* forward declaration */
/* starting interface: nsIDragSession */
#define NS_IDRAGSESSION_IID_STR "fde41f6a-c710-46f8-a0a8-1ff76ca4ff57"
#define NS_IDRAGSESSION_IID \
{0xfde41f6a, 0xc710, 0x46f8, \
{ 0xa0, 0xa8, 0x1f, 0xf7, 0x6c, 0xa4, 0xff, 0x57 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIDragSession : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDRAGSESSION_IID)
/* attribute boolean canDrop; */
NS_SCRIPTABLE NS_IMETHOD GetCanDrop(bool *aCanDrop) = 0;
NS_SCRIPTABLE NS_IMETHOD SetCanDrop(bool aCanDrop) = 0;
/* attribute boolean onlyChromeDrop; */
NS_SCRIPTABLE NS_IMETHOD GetOnlyChromeDrop(bool *aOnlyChromeDrop) = 0;
NS_SCRIPTABLE NS_IMETHOD SetOnlyChromeDrop(bool aOnlyChromeDrop) = 0;
/* attribute unsigned long dragAction; */
NS_SCRIPTABLE NS_IMETHOD GetDragAction(PRUint32 *aDragAction) = 0;
NS_SCRIPTABLE NS_IMETHOD SetDragAction(PRUint32 aDragAction) = 0;
/* [noscript] attribute nsSize targetSize; */
NS_IMETHOD GetTargetSize(nsSize *aTargetSize) = 0;
NS_IMETHOD SetTargetSize(nsSize aTargetSize) = 0;
/* readonly attribute unsigned long numDropItems; */
NS_SCRIPTABLE NS_IMETHOD GetNumDropItems(PRUint32 *aNumDropItems) = 0;
/* readonly attribute nsIDOMDocument sourceDocument; */
NS_SCRIPTABLE NS_IMETHOD GetSourceDocument(nsIDOMDocument * *aSourceDocument) = 0;
/* readonly attribute nsIDOMNode sourceNode; */
NS_SCRIPTABLE NS_IMETHOD GetSourceNode(nsIDOMNode * *aSourceNode) = 0;
/* attribute nsIDOMDataTransfer dataTransfer; */
NS_SCRIPTABLE NS_IMETHOD GetDataTransfer(nsIDOMDataTransfer * *aDataTransfer) = 0;
NS_SCRIPTABLE NS_IMETHOD SetDataTransfer(nsIDOMDataTransfer *aDataTransfer) = 0;
/* void getData (in nsITransferable aTransferable, in unsigned long aItemIndex); */
NS_SCRIPTABLE NS_IMETHOD GetData(nsITransferable *aTransferable, PRUint32 aItemIndex) = 0;
/* boolean isDataFlavorSupported (in string aDataFlavor); */
NS_SCRIPTABLE NS_IMETHOD IsDataFlavorSupported(const char * aDataFlavor, bool *_retval NS_OUTPARAM) = 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_SCRIPTABLE NS_IMETHOD GetCanDrop(bool *aCanDrop); \
NS_SCRIPTABLE NS_IMETHOD SetCanDrop(bool aCanDrop); \
NS_SCRIPTABLE NS_IMETHOD GetOnlyChromeDrop(bool *aOnlyChromeDrop); \
NS_SCRIPTABLE NS_IMETHOD SetOnlyChromeDrop(bool aOnlyChromeDrop); \
NS_SCRIPTABLE NS_IMETHOD GetDragAction(PRUint32 *aDragAction); \
NS_SCRIPTABLE NS_IMETHOD SetDragAction(PRUint32 aDragAction); \
NS_IMETHOD GetTargetSize(nsSize *aTargetSize); \
NS_IMETHOD SetTargetSize(nsSize aTargetSize); \
NS_SCRIPTABLE NS_IMETHOD GetNumDropItems(PRUint32 *aNumDropItems); \
NS_SCRIPTABLE NS_IMETHOD GetSourceDocument(nsIDOMDocument * *aSourceDocument); \
NS_SCRIPTABLE NS_IMETHOD GetSourceNode(nsIDOMNode * *aSourceNode); \
NS_SCRIPTABLE NS_IMETHOD GetDataTransfer(nsIDOMDataTransfer * *aDataTransfer); \
NS_SCRIPTABLE NS_IMETHOD SetDataTransfer(nsIDOMDataTransfer *aDataTransfer); \
NS_SCRIPTABLE NS_IMETHOD GetData(nsITransferable *aTransferable, PRUint32 aItemIndex); \
NS_SCRIPTABLE NS_IMETHOD IsDataFlavorSupported(const char * aDataFlavor, bool *_retval NS_OUTPARAM);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDRAGSESSION(_to) \
NS_SCRIPTABLE NS_IMETHOD GetCanDrop(bool *aCanDrop) { return _to GetCanDrop(aCanDrop); } \
NS_SCRIPTABLE NS_IMETHOD SetCanDrop(bool aCanDrop) { return _to SetCanDrop(aCanDrop); } \
NS_SCRIPTABLE NS_IMETHOD GetOnlyChromeDrop(bool *aOnlyChromeDrop) { return _to GetOnlyChromeDrop(aOnlyChromeDrop); } \
NS_SCRIPTABLE NS_IMETHOD SetOnlyChromeDrop(bool aOnlyChromeDrop) { return _to SetOnlyChromeDrop(aOnlyChromeDrop); } \
NS_SCRIPTABLE NS_IMETHOD GetDragAction(PRUint32 *aDragAction) { return _to GetDragAction(aDragAction); } \
NS_SCRIPTABLE NS_IMETHOD SetDragAction(PRUint32 aDragAction) { return _to SetDragAction(aDragAction); } \
NS_IMETHOD GetTargetSize(nsSize *aTargetSize) { return _to GetTargetSize(aTargetSize); } \
NS_IMETHOD SetTargetSize(nsSize aTargetSize) { return _to SetTargetSize(aTargetSize); } \
NS_SCRIPTABLE NS_IMETHOD GetNumDropItems(PRUint32 *aNumDropItems) { return _to GetNumDropItems(aNumDropItems); } \
NS_SCRIPTABLE NS_IMETHOD GetSourceDocument(nsIDOMDocument * *aSourceDocument) { return _to GetSourceDocument(aSourceDocument); } \
NS_SCRIPTABLE NS_IMETHOD GetSourceNode(nsIDOMNode * *aSourceNode) { return _to GetSourceNode(aSourceNode); } \
NS_SCRIPTABLE NS_IMETHOD GetDataTransfer(nsIDOMDataTransfer * *aDataTransfer) { return _to GetDataTransfer(aDataTransfer); } \
NS_SCRIPTABLE NS_IMETHOD SetDataTransfer(nsIDOMDataTransfer *aDataTransfer) { return _to SetDataTransfer(aDataTransfer); } \
NS_SCRIPTABLE NS_IMETHOD GetData(nsITransferable *aTransferable, PRUint32 aItemIndex) { return _to GetData(aTransferable, aItemIndex); } \
NS_SCRIPTABLE NS_IMETHOD IsDataFlavorSupported(const char * aDataFlavor, bool *_retval NS_OUTPARAM) { return _to IsDataFlavorSupported(aDataFlavor, _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_NSIDRAGSESSION(_to) \
NS_SCRIPTABLE NS_IMETHOD GetCanDrop(bool *aCanDrop) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanDrop(aCanDrop); } \
NS_SCRIPTABLE NS_IMETHOD SetCanDrop(bool aCanDrop) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCanDrop(aCanDrop); } \
NS_SCRIPTABLE NS_IMETHOD GetOnlyChromeDrop(bool *aOnlyChromeDrop) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnlyChromeDrop(aOnlyChromeDrop); } \
NS_SCRIPTABLE NS_IMETHOD SetOnlyChromeDrop(bool aOnlyChromeDrop) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnlyChromeDrop(aOnlyChromeDrop); } \
NS_SCRIPTABLE NS_IMETHOD GetDragAction(PRUint32 *aDragAction) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDragAction(aDragAction); } \
NS_SCRIPTABLE NS_IMETHOD SetDragAction(PRUint32 aDragAction) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDragAction(aDragAction); } \
NS_IMETHOD GetTargetSize(nsSize *aTargetSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTargetSize(aTargetSize); } \
NS_IMETHOD SetTargetSize(nsSize aTargetSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTargetSize(aTargetSize); } \
NS_SCRIPTABLE NS_IMETHOD GetNumDropItems(PRUint32 *aNumDropItems) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumDropItems(aNumDropItems); } \
NS_SCRIPTABLE NS_IMETHOD GetSourceDocument(nsIDOMDocument * *aSourceDocument) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSourceDocument(aSourceDocument); } \
NS_SCRIPTABLE NS_IMETHOD GetSourceNode(nsIDOMNode * *aSourceNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSourceNode(aSourceNode); } \
NS_SCRIPTABLE NS_IMETHOD GetDataTransfer(nsIDOMDataTransfer * *aDataTransfer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDataTransfer(aDataTransfer); } \
NS_SCRIPTABLE NS_IMETHOD SetDataTransfer(nsIDOMDataTransfer *aDataTransfer) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDataTransfer(aDataTransfer); } \
NS_SCRIPTABLE NS_IMETHOD GetData(nsITransferable *aTransferable, PRUint32 aItemIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aTransferable, aItemIndex); } \
NS_SCRIPTABLE NS_IMETHOD IsDataFlavorSupported(const char * aDataFlavor, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsDataFlavorSupported(aDataFlavor, _retval); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsDragSession : public nsIDragSession
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIDRAGSESSION
nsDragSession();
private:
~nsDragSession();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDragSession, nsIDragSession)
nsDragSession::nsDragSession()
{
/* member initializers and constructor code */
}
nsDragSession::~nsDragSession()
{
/* destructor code */
}
/* attribute boolean canDrop; */
NS_IMETHODIMP nsDragSession::GetCanDrop(bool *aCanDrop)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDragSession::SetCanDrop(bool aCanDrop)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean onlyChromeDrop; */
NS_IMETHODIMP nsDragSession::GetOnlyChromeDrop(bool *aOnlyChromeDrop)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDragSession::SetOnlyChromeDrop(bool aOnlyChromeDrop)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute unsigned long dragAction; */
NS_IMETHODIMP nsDragSession::GetDragAction(PRUint32 *aDragAction)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDragSession::SetDragAction(PRUint32 aDragAction)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] attribute nsSize targetSize; */
NS_IMETHODIMP nsDragSession::GetTargetSize(nsSize *aTargetSize)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDragSession::SetTargetSize(nsSize aTargetSize)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute unsigned long numDropItems; */
NS_IMETHODIMP nsDragSession::GetNumDropItems(PRUint32 *aNumDropItems)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMDocument sourceDocument; */
NS_IMETHODIMP nsDragSession::GetSourceDocument(nsIDOMDocument * *aSourceDocument)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMNode sourceNode; */
NS_IMETHODIMP nsDragSession::GetSourceNode(nsIDOMNode * *aSourceNode)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsIDOMDataTransfer dataTransfer; */
NS_IMETHODIMP nsDragSession::GetDataTransfer(nsIDOMDataTransfer * *aDataTransfer)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDragSession::SetDataTransfer(nsIDOMDataTransfer *aDataTransfer)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getData (in nsITransferable aTransferable, in unsigned long aItemIndex); */
NS_IMETHODIMP nsDragSession::GetData(nsITransferable *aTransferable, PRUint32 aItemIndex)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean isDataFlavorSupported (in string aDataFlavor); */
NS_IMETHODIMP nsDragSession::IsDataFlavorSupported(const char * aDataFlavor, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIDragSession_h__ */
|