LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIDragSession.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 0 0.0 %
Date: 2012-06-02 Functions: 1 0 0.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/widget/nsIDragSession.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIDragSession_h__
       6                 : #define __gen_nsIDragSession_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.h"
      11                 : #endif
      12                 : 
      13                 : #ifndef __gen_nsISupportsArray_h__
      14                 : #include "nsISupportsArray.h"
      15                 : #endif
      16                 : 
      17                 : #ifndef __gen_nsITransferable_h__
      18                 : #include "nsITransferable.h"
      19                 : #endif
      20                 : 
      21                 : /* For IDL files that don't want to include root IDL files. */
      22                 : #ifndef NS_NO_VTABLE
      23                 : #define NS_NO_VTABLE
      24                 : #endif
      25                 : #include "nsSize.h"
      26                 : class nsIDOMDocument; /* forward declaration */
      27                 : 
      28                 : class nsIDOMNode; /* forward declaration */
      29                 : 
      30                 : class nsIDOMDataTransfer; /* forward declaration */
      31                 : 
      32                 : 
      33                 : /* starting interface:    nsIDragSession */
      34                 : #define NS_IDRAGSESSION_IID_STR "fde41f6a-c710-46f8-a0a8-1ff76ca4ff57"
      35                 : 
      36                 : #define NS_IDRAGSESSION_IID \
      37                 :   {0xfde41f6a, 0xc710, 0x46f8, \
      38                 :     { 0xa0, 0xa8, 0x1f, 0xf7, 0x6c, 0xa4, 0xff, 0x57 }}
      39                 : 
      40               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDragSession : public nsISupports {
      41                 :  public: 
      42                 : 
      43                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDRAGSESSION_IID)
      44                 : 
      45                 :   /* attribute boolean canDrop; */
      46                 :   NS_SCRIPTABLE NS_IMETHOD GetCanDrop(bool *aCanDrop) = 0;
      47                 :   NS_SCRIPTABLE NS_IMETHOD SetCanDrop(bool aCanDrop) = 0;
      48                 : 
      49                 :   /* attribute boolean onlyChromeDrop; */
      50                 :   NS_SCRIPTABLE NS_IMETHOD GetOnlyChromeDrop(bool *aOnlyChromeDrop) = 0;
      51                 :   NS_SCRIPTABLE NS_IMETHOD SetOnlyChromeDrop(bool aOnlyChromeDrop) = 0;
      52                 : 
      53                 :   /* attribute unsigned long dragAction; */
      54                 :   NS_SCRIPTABLE NS_IMETHOD GetDragAction(PRUint32 *aDragAction) = 0;
      55                 :   NS_SCRIPTABLE NS_IMETHOD SetDragAction(PRUint32 aDragAction) = 0;
      56                 : 
      57                 :   /* [noscript] attribute nsSize targetSize; */
      58                 :   NS_IMETHOD GetTargetSize(nsSize *aTargetSize) = 0;
      59                 :   NS_IMETHOD SetTargetSize(nsSize aTargetSize) = 0;
      60                 : 
      61                 :   /* readonly attribute unsigned long numDropItems; */
      62                 :   NS_SCRIPTABLE NS_IMETHOD GetNumDropItems(PRUint32 *aNumDropItems) = 0;
      63                 : 
      64                 :   /* readonly attribute nsIDOMDocument sourceDocument; */
      65                 :   NS_SCRIPTABLE NS_IMETHOD GetSourceDocument(nsIDOMDocument * *aSourceDocument) = 0;
      66                 : 
      67                 :   /* readonly attribute nsIDOMNode sourceNode; */
      68                 :   NS_SCRIPTABLE NS_IMETHOD GetSourceNode(nsIDOMNode * *aSourceNode) = 0;
      69                 : 
      70                 :   /* attribute nsIDOMDataTransfer dataTransfer; */
      71                 :   NS_SCRIPTABLE NS_IMETHOD GetDataTransfer(nsIDOMDataTransfer * *aDataTransfer) = 0;
      72                 :   NS_SCRIPTABLE NS_IMETHOD SetDataTransfer(nsIDOMDataTransfer *aDataTransfer) = 0;
      73                 : 
      74                 :   /* void getData (in nsITransferable aTransferable, in unsigned long aItemIndex); */
      75                 :   NS_SCRIPTABLE NS_IMETHOD GetData(nsITransferable *aTransferable, PRUint32 aItemIndex) = 0;
      76                 : 
      77                 :   /* boolean isDataFlavorSupported (in string aDataFlavor); */
      78                 :   NS_SCRIPTABLE NS_IMETHOD IsDataFlavorSupported(const char * aDataFlavor, bool *_retval NS_OUTPARAM) = 0;
      79                 : 
      80                 : };
      81                 : 
      82                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDragSession, NS_IDRAGSESSION_IID)
      83                 : 
      84                 : /* Use this macro when declaring classes that implement this interface. */
      85                 : #define NS_DECL_NSIDRAGSESSION \
      86                 :   NS_SCRIPTABLE NS_IMETHOD GetCanDrop(bool *aCanDrop); \
      87                 :   NS_SCRIPTABLE NS_IMETHOD SetCanDrop(bool aCanDrop); \
      88                 :   NS_SCRIPTABLE NS_IMETHOD GetOnlyChromeDrop(bool *aOnlyChromeDrop); \
      89                 :   NS_SCRIPTABLE NS_IMETHOD SetOnlyChromeDrop(bool aOnlyChromeDrop); \
      90                 :   NS_SCRIPTABLE NS_IMETHOD GetDragAction(PRUint32 *aDragAction); \
      91                 :   NS_SCRIPTABLE NS_IMETHOD SetDragAction(PRUint32 aDragAction); \
      92                 :   NS_IMETHOD GetTargetSize(nsSize *aTargetSize); \
      93                 :   NS_IMETHOD SetTargetSize(nsSize aTargetSize); \
      94                 :   NS_SCRIPTABLE NS_IMETHOD GetNumDropItems(PRUint32 *aNumDropItems); \
      95                 :   NS_SCRIPTABLE NS_IMETHOD GetSourceDocument(nsIDOMDocument * *aSourceDocument); \
      96                 :   NS_SCRIPTABLE NS_IMETHOD GetSourceNode(nsIDOMNode * *aSourceNode); \
      97                 :   NS_SCRIPTABLE NS_IMETHOD GetDataTransfer(nsIDOMDataTransfer * *aDataTransfer); \
      98                 :   NS_SCRIPTABLE NS_IMETHOD SetDataTransfer(nsIDOMDataTransfer *aDataTransfer); \
      99                 :   NS_SCRIPTABLE NS_IMETHOD GetData(nsITransferable *aTransferable, PRUint32 aItemIndex); \
     100                 :   NS_SCRIPTABLE NS_IMETHOD IsDataFlavorSupported(const char * aDataFlavor, bool *_retval NS_OUTPARAM); 
     101                 : 
     102                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     103                 : #define NS_FORWARD_NSIDRAGSESSION(_to) \
     104                 :   NS_SCRIPTABLE NS_IMETHOD GetCanDrop(bool *aCanDrop) { return _to GetCanDrop(aCanDrop); } \
     105                 :   NS_SCRIPTABLE NS_IMETHOD SetCanDrop(bool aCanDrop) { return _to SetCanDrop(aCanDrop); } \
     106                 :   NS_SCRIPTABLE NS_IMETHOD GetOnlyChromeDrop(bool *aOnlyChromeDrop) { return _to GetOnlyChromeDrop(aOnlyChromeDrop); } \
     107                 :   NS_SCRIPTABLE NS_IMETHOD SetOnlyChromeDrop(bool aOnlyChromeDrop) { return _to SetOnlyChromeDrop(aOnlyChromeDrop); } \
     108                 :   NS_SCRIPTABLE NS_IMETHOD GetDragAction(PRUint32 *aDragAction) { return _to GetDragAction(aDragAction); } \
     109                 :   NS_SCRIPTABLE NS_IMETHOD SetDragAction(PRUint32 aDragAction) { return _to SetDragAction(aDragAction); } \
     110                 :   NS_IMETHOD GetTargetSize(nsSize *aTargetSize) { return _to GetTargetSize(aTargetSize); } \
     111                 :   NS_IMETHOD SetTargetSize(nsSize aTargetSize) { return _to SetTargetSize(aTargetSize); } \
     112                 :   NS_SCRIPTABLE NS_IMETHOD GetNumDropItems(PRUint32 *aNumDropItems) { return _to GetNumDropItems(aNumDropItems); } \
     113                 :   NS_SCRIPTABLE NS_IMETHOD GetSourceDocument(nsIDOMDocument * *aSourceDocument) { return _to GetSourceDocument(aSourceDocument); } \
     114                 :   NS_SCRIPTABLE NS_IMETHOD GetSourceNode(nsIDOMNode * *aSourceNode) { return _to GetSourceNode(aSourceNode); } \
     115                 :   NS_SCRIPTABLE NS_IMETHOD GetDataTransfer(nsIDOMDataTransfer * *aDataTransfer) { return _to GetDataTransfer(aDataTransfer); } \
     116                 :   NS_SCRIPTABLE NS_IMETHOD SetDataTransfer(nsIDOMDataTransfer *aDataTransfer) { return _to SetDataTransfer(aDataTransfer); } \
     117                 :   NS_SCRIPTABLE NS_IMETHOD GetData(nsITransferable *aTransferable, PRUint32 aItemIndex) { return _to GetData(aTransferable, aItemIndex); } \
     118                 :   NS_SCRIPTABLE NS_IMETHOD IsDataFlavorSupported(const char * aDataFlavor, bool *_retval NS_OUTPARAM) { return _to IsDataFlavorSupported(aDataFlavor, _retval); } 
     119                 : 
     120                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     121                 : #define NS_FORWARD_SAFE_NSIDRAGSESSION(_to) \
     122                 :   NS_SCRIPTABLE NS_IMETHOD GetCanDrop(bool *aCanDrop) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanDrop(aCanDrop); } \
     123                 :   NS_SCRIPTABLE NS_IMETHOD SetCanDrop(bool aCanDrop) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCanDrop(aCanDrop); } \
     124                 :   NS_SCRIPTABLE NS_IMETHOD GetOnlyChromeDrop(bool *aOnlyChromeDrop) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnlyChromeDrop(aOnlyChromeDrop); } \
     125                 :   NS_SCRIPTABLE NS_IMETHOD SetOnlyChromeDrop(bool aOnlyChromeDrop) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnlyChromeDrop(aOnlyChromeDrop); } \
     126                 :   NS_SCRIPTABLE NS_IMETHOD GetDragAction(PRUint32 *aDragAction) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDragAction(aDragAction); } \
     127                 :   NS_SCRIPTABLE NS_IMETHOD SetDragAction(PRUint32 aDragAction) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDragAction(aDragAction); } \
     128                 :   NS_IMETHOD GetTargetSize(nsSize *aTargetSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTargetSize(aTargetSize); } \
     129                 :   NS_IMETHOD SetTargetSize(nsSize aTargetSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTargetSize(aTargetSize); } \
     130                 :   NS_SCRIPTABLE NS_IMETHOD GetNumDropItems(PRUint32 *aNumDropItems) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumDropItems(aNumDropItems); } \
     131                 :   NS_SCRIPTABLE NS_IMETHOD GetSourceDocument(nsIDOMDocument * *aSourceDocument) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSourceDocument(aSourceDocument); } \
     132                 :   NS_SCRIPTABLE NS_IMETHOD GetSourceNode(nsIDOMNode * *aSourceNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSourceNode(aSourceNode); } \
     133                 :   NS_SCRIPTABLE NS_IMETHOD GetDataTransfer(nsIDOMDataTransfer * *aDataTransfer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDataTransfer(aDataTransfer); } \
     134                 :   NS_SCRIPTABLE NS_IMETHOD SetDataTransfer(nsIDOMDataTransfer *aDataTransfer) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDataTransfer(aDataTransfer); } \
     135                 :   NS_SCRIPTABLE NS_IMETHOD GetData(nsITransferable *aTransferable, PRUint32 aItemIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aTransferable, aItemIndex); } \
     136                 :   NS_SCRIPTABLE NS_IMETHOD IsDataFlavorSupported(const char * aDataFlavor, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsDataFlavorSupported(aDataFlavor, _retval); } 
     137                 : 
     138                 : #if 0
     139                 : /* Use the code below as a template for the implementation class for this interface. */
     140                 : 
     141                 : /* Header file */
     142                 : class nsDragSession : public nsIDragSession
     143                 : {
     144                 : public:
     145                 :   NS_DECL_ISUPPORTS
     146                 :   NS_DECL_NSIDRAGSESSION
     147                 : 
     148                 :   nsDragSession();
     149                 : 
     150                 : private:
     151                 :   ~nsDragSession();
     152                 : 
     153                 : protected:
     154                 :   /* additional members */
     155                 : };
     156                 : 
     157                 : /* Implementation file */
     158                 : NS_IMPL_ISUPPORTS1(nsDragSession, nsIDragSession)
     159                 : 
     160                 : nsDragSession::nsDragSession()
     161                 : {
     162                 :   /* member initializers and constructor code */
     163                 : }
     164                 : 
     165                 : nsDragSession::~nsDragSession()
     166                 : {
     167                 :   /* destructor code */
     168                 : }
     169                 : 
     170                 : /* attribute boolean canDrop; */
     171                 : NS_IMETHODIMP nsDragSession::GetCanDrop(bool *aCanDrop)
     172                 : {
     173                 :     return NS_ERROR_NOT_IMPLEMENTED;
     174                 : }
     175                 : NS_IMETHODIMP nsDragSession::SetCanDrop(bool aCanDrop)
     176                 : {
     177                 :     return NS_ERROR_NOT_IMPLEMENTED;
     178                 : }
     179                 : 
     180                 : /* attribute boolean onlyChromeDrop; */
     181                 : NS_IMETHODIMP nsDragSession::GetOnlyChromeDrop(bool *aOnlyChromeDrop)
     182                 : {
     183                 :     return NS_ERROR_NOT_IMPLEMENTED;
     184                 : }
     185                 : NS_IMETHODIMP nsDragSession::SetOnlyChromeDrop(bool aOnlyChromeDrop)
     186                 : {
     187                 :     return NS_ERROR_NOT_IMPLEMENTED;
     188                 : }
     189                 : 
     190                 : /* attribute unsigned long dragAction; */
     191                 : NS_IMETHODIMP nsDragSession::GetDragAction(PRUint32 *aDragAction)
     192                 : {
     193                 :     return NS_ERROR_NOT_IMPLEMENTED;
     194                 : }
     195                 : NS_IMETHODIMP nsDragSession::SetDragAction(PRUint32 aDragAction)
     196                 : {
     197                 :     return NS_ERROR_NOT_IMPLEMENTED;
     198                 : }
     199                 : 
     200                 : /* [noscript] attribute nsSize targetSize; */
     201                 : NS_IMETHODIMP nsDragSession::GetTargetSize(nsSize *aTargetSize)
     202                 : {
     203                 :     return NS_ERROR_NOT_IMPLEMENTED;
     204                 : }
     205                 : NS_IMETHODIMP nsDragSession::SetTargetSize(nsSize aTargetSize)
     206                 : {
     207                 :     return NS_ERROR_NOT_IMPLEMENTED;
     208                 : }
     209                 : 
     210                 : /* readonly attribute unsigned long numDropItems; */
     211                 : NS_IMETHODIMP nsDragSession::GetNumDropItems(PRUint32 *aNumDropItems)
     212                 : {
     213                 :     return NS_ERROR_NOT_IMPLEMENTED;
     214                 : }
     215                 : 
     216                 : /* readonly attribute nsIDOMDocument sourceDocument; */
     217                 : NS_IMETHODIMP nsDragSession::GetSourceDocument(nsIDOMDocument * *aSourceDocument)
     218                 : {
     219                 :     return NS_ERROR_NOT_IMPLEMENTED;
     220                 : }
     221                 : 
     222                 : /* readonly attribute nsIDOMNode sourceNode; */
     223                 : NS_IMETHODIMP nsDragSession::GetSourceNode(nsIDOMNode * *aSourceNode)
     224                 : {
     225                 :     return NS_ERROR_NOT_IMPLEMENTED;
     226                 : }
     227                 : 
     228                 : /* attribute nsIDOMDataTransfer dataTransfer; */
     229                 : NS_IMETHODIMP nsDragSession::GetDataTransfer(nsIDOMDataTransfer * *aDataTransfer)
     230                 : {
     231                 :     return NS_ERROR_NOT_IMPLEMENTED;
     232                 : }
     233                 : NS_IMETHODIMP nsDragSession::SetDataTransfer(nsIDOMDataTransfer *aDataTransfer)
     234                 : {
     235                 :     return NS_ERROR_NOT_IMPLEMENTED;
     236                 : }
     237                 : 
     238                 : /* void getData (in nsITransferable aTransferable, in unsigned long aItemIndex); */
     239                 : NS_IMETHODIMP nsDragSession::GetData(nsITransferable *aTransferable, PRUint32 aItemIndex)
     240                 : {
     241                 :     return NS_ERROR_NOT_IMPLEMENTED;
     242                 : }
     243                 : 
     244                 : /* boolean isDataFlavorSupported (in string aDataFlavor); */
     245                 : NS_IMETHODIMP nsDragSession::IsDataFlavorSupported(const char * aDataFlavor, bool *_retval NS_OUTPARAM)
     246                 : {
     247                 :     return NS_ERROR_NOT_IMPLEMENTED;
     248                 : }
     249                 : 
     250                 : /* End of implementation class template. */
     251                 : #endif
     252                 : 
     253                 : 
     254                 : 
     255                 : #endif /* __gen_nsIDragSession_h__ */

Generated by: LCOV version 1.7