LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIDOMDataTransfer.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDOMDataTransfer.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIDOMDataTransfer_h__
       6             : #define __gen_nsIDOMDataTransfer_h__
       7             : 
       8             : 
       9             : #ifndef __gen_domstubs_h__
      10             : #include "domstubs.h"
      11             : #endif
      12             : 
      13             : /* For IDL files that don't want to include root IDL files. */
      14             : #ifndef NS_NO_VTABLE
      15             : #define NS_NO_VTABLE
      16             : #endif
      17             : class nsIVariant; /* forward declaration */
      18             : 
      19             : class nsIDOMFileList; /* forward declaration */
      20             : 
      21             : 
      22             : /* starting interface:    nsIDOMDataTransfer */
      23             : #define NS_IDOMDATATRANSFER_IID_STR "655078bf-1675-4aa0-a48d-a133e864ce57"
      24             : 
      25             : #define NS_IDOMDATATRANSFER_IID \
      26             :   {0x655078bf, 0x1675, 0x4aa0, \
      27             :     { 0xa4, 0x8d, 0xa1, 0x33, 0xe8, 0x64, 0xce, 0x57 }}
      28             : 
      29           0 : class NS_NO_VTABLE nsIDOMDataTransfer : public nsISupports {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMDATATRANSFER_IID)
      33             : 
      34             :   /* attribute DOMString dropEffect; */
      35             :   NS_IMETHOD GetDropEffect(nsAString & aDropEffect) = 0;
      36             :   NS_IMETHOD SetDropEffect(const nsAString & aDropEffect) = 0;
      37             : 
      38             :   /* attribute DOMString effectAllowed; */
      39             :   NS_IMETHOD GetEffectAllowed(nsAString & aEffectAllowed) = 0;
      40             :   NS_IMETHOD SetEffectAllowed(const nsAString & aEffectAllowed) = 0;
      41             : 
      42             :   /* readonly attribute nsIDOMFileList files; */
      43             :   NS_IMETHOD GetFiles(nsIDOMFileList * *aFiles) = 0;
      44             : 
      45             :   /* void setDragImage (in nsIDOMElement image, in long x, in long y); */
      46             :   NS_IMETHOD SetDragImage(nsIDOMElement *image, int32_t x, int32_t y) = 0;
      47             : 
      48             :   /* void addElement (in nsIDOMElement element); */
      49             :   NS_IMETHOD AddElement(nsIDOMElement *element) = 0;
      50             : 
      51             :   /* readonly attribute unsigned long mozItemCount; */
      52             :   NS_IMETHOD GetMozItemCount(uint32_t *aMozItemCount) = 0;
      53             : 
      54             :   /* attribute DOMString mozCursor; */
      55             :   NS_IMETHOD GetMozCursor(nsAString & aMozCursor) = 0;
      56             :   NS_IMETHOD SetMozCursor(const nsAString & aMozCursor) = 0;
      57             : 
      58             :   /* readonly attribute boolean mozUserCancelled; */
      59             :   NS_IMETHOD GetMozUserCancelled(bool *aMozUserCancelled) = 0;
      60             : 
      61             :   /* readonly attribute nsIDOMNode mozSourceNode; */
      62             :   NS_IMETHOD GetMozSourceNode(nsIDOMNode * *aMozSourceNode) = 0;
      63             : 
      64             :   /* [noscript] attribute unsigned long dropEffectInt; */
      65             :   NS_IMETHOD GetDropEffectInt(uint32_t *aDropEffectInt) = 0;
      66             :   NS_IMETHOD SetDropEffectInt(uint32_t aDropEffectInt) = 0;
      67             : 
      68             :   /* [noscript] attribute unsigned long effectAllowedInt; */
      69             :   NS_IMETHOD GetEffectAllowedInt(uint32_t *aEffectAllowedInt) = 0;
      70             :   NS_IMETHOD SetEffectAllowedInt(uint32_t aEffectAllowedInt) = 0;
      71             : 
      72             : };
      73             : 
      74             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMDataTransfer, NS_IDOMDATATRANSFER_IID)
      75             : 
      76             : /* Use this macro when declaring classes that implement this interface. */
      77             : #define NS_DECL_NSIDOMDATATRANSFER \
      78             :   NS_IMETHOD GetDropEffect(nsAString & aDropEffect) override; \
      79             :   NS_IMETHOD SetDropEffect(const nsAString & aDropEffect) override; \
      80             :   NS_IMETHOD GetEffectAllowed(nsAString & aEffectAllowed) override; \
      81             :   NS_IMETHOD SetEffectAllowed(const nsAString & aEffectAllowed) override; \
      82             :   NS_IMETHOD GetFiles(nsIDOMFileList * *aFiles) override; \
      83             :   NS_IMETHOD SetDragImage(nsIDOMElement *image, int32_t x, int32_t y) override; \
      84             :   NS_IMETHOD AddElement(nsIDOMElement *element) override; \
      85             :   NS_IMETHOD GetMozItemCount(uint32_t *aMozItemCount) override; \
      86             :   NS_IMETHOD GetMozCursor(nsAString & aMozCursor) override; \
      87             :   NS_IMETHOD SetMozCursor(const nsAString & aMozCursor) override; \
      88             :   NS_IMETHOD GetMozUserCancelled(bool *aMozUserCancelled) override; \
      89             :   NS_IMETHOD GetMozSourceNode(nsIDOMNode * *aMozSourceNode) override; \
      90             :   NS_IMETHOD GetDropEffectInt(uint32_t *aDropEffectInt) override; \
      91             :   NS_IMETHOD SetDropEffectInt(uint32_t aDropEffectInt) override; \
      92             :   NS_IMETHOD GetEffectAllowedInt(uint32_t *aEffectAllowedInt) override; \
      93             :   NS_IMETHOD SetEffectAllowedInt(uint32_t aEffectAllowedInt) override; 
      94             : 
      95             : /* Use this macro when declaring the members of this interface when the
      96             :    class doesn't implement the interface. This is useful for forwarding. */
      97             : #define NS_DECL_NON_VIRTUAL_NSIDOMDATATRANSFER \
      98             :   nsresult GetDropEffect(nsAString & aDropEffect); \
      99             :   nsresult SetDropEffect(const nsAString & aDropEffect); \
     100             :   nsresult GetEffectAllowed(nsAString & aEffectAllowed); \
     101             :   nsresult SetEffectAllowed(const nsAString & aEffectAllowed); \
     102             :   nsresult GetFiles(nsIDOMFileList * *aFiles); \
     103             :   nsresult SetDragImage(nsIDOMElement *image, int32_t x, int32_t y); \
     104             :   nsresult AddElement(nsIDOMElement *element); \
     105             :   nsresult GetMozItemCount(uint32_t *aMozItemCount); \
     106             :   nsresult GetMozCursor(nsAString & aMozCursor); \
     107             :   nsresult SetMozCursor(const nsAString & aMozCursor); \
     108             :   nsresult GetMozUserCancelled(bool *aMozUserCancelled); \
     109             :   nsresult GetMozSourceNode(nsIDOMNode * *aMozSourceNode); \
     110             :   nsresult GetDropEffectInt(uint32_t *aDropEffectInt); \
     111             :   nsresult SetDropEffectInt(uint32_t aDropEffectInt); \
     112             :   nsresult GetEffectAllowedInt(uint32_t *aEffectAllowedInt); \
     113             :   nsresult SetEffectAllowedInt(uint32_t aEffectAllowedInt); 
     114             : 
     115             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     116             : #define NS_FORWARD_NSIDOMDATATRANSFER(_to) \
     117             :   NS_IMETHOD GetDropEffect(nsAString & aDropEffect) override { return _to GetDropEffect(aDropEffect); } \
     118             :   NS_IMETHOD SetDropEffect(const nsAString & aDropEffect) override { return _to SetDropEffect(aDropEffect); } \
     119             :   NS_IMETHOD GetEffectAllowed(nsAString & aEffectAllowed) override { return _to GetEffectAllowed(aEffectAllowed); } \
     120             :   NS_IMETHOD SetEffectAllowed(const nsAString & aEffectAllowed) override { return _to SetEffectAllowed(aEffectAllowed); } \
     121             :   NS_IMETHOD GetFiles(nsIDOMFileList * *aFiles) override { return _to GetFiles(aFiles); } \
     122             :   NS_IMETHOD SetDragImage(nsIDOMElement *image, int32_t x, int32_t y) override { return _to SetDragImage(image, x, y); } \
     123             :   NS_IMETHOD AddElement(nsIDOMElement *element) override { return _to AddElement(element); } \
     124             :   NS_IMETHOD GetMozItemCount(uint32_t *aMozItemCount) override { return _to GetMozItemCount(aMozItemCount); } \
     125             :   NS_IMETHOD GetMozCursor(nsAString & aMozCursor) override { return _to GetMozCursor(aMozCursor); } \
     126             :   NS_IMETHOD SetMozCursor(const nsAString & aMozCursor) override { return _to SetMozCursor(aMozCursor); } \
     127             :   NS_IMETHOD GetMozUserCancelled(bool *aMozUserCancelled) override { return _to GetMozUserCancelled(aMozUserCancelled); } \
     128             :   NS_IMETHOD GetMozSourceNode(nsIDOMNode * *aMozSourceNode) override { return _to GetMozSourceNode(aMozSourceNode); } \
     129             :   NS_IMETHOD GetDropEffectInt(uint32_t *aDropEffectInt) override { return _to GetDropEffectInt(aDropEffectInt); } \
     130             :   NS_IMETHOD SetDropEffectInt(uint32_t aDropEffectInt) override { return _to SetDropEffectInt(aDropEffectInt); } \
     131             :   NS_IMETHOD GetEffectAllowedInt(uint32_t *aEffectAllowedInt) override { return _to GetEffectAllowedInt(aEffectAllowedInt); } \
     132             :   NS_IMETHOD SetEffectAllowedInt(uint32_t aEffectAllowedInt) override { return _to SetEffectAllowedInt(aEffectAllowedInt); } 
     133             : 
     134             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     135             : #define NS_FORWARD_SAFE_NSIDOMDATATRANSFER(_to) \
     136             :   NS_IMETHOD GetDropEffect(nsAString & aDropEffect) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDropEffect(aDropEffect); } \
     137             :   NS_IMETHOD SetDropEffect(const nsAString & aDropEffect) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDropEffect(aDropEffect); } \
     138             :   NS_IMETHOD GetEffectAllowed(nsAString & aEffectAllowed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEffectAllowed(aEffectAllowed); } \
     139             :   NS_IMETHOD SetEffectAllowed(const nsAString & aEffectAllowed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEffectAllowed(aEffectAllowed); } \
     140             :   NS_IMETHOD GetFiles(nsIDOMFileList * *aFiles) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFiles(aFiles); } \
     141             :   NS_IMETHOD SetDragImage(nsIDOMElement *image, int32_t x, int32_t y) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDragImage(image, x, y); } \
     142             :   NS_IMETHOD AddElement(nsIDOMElement *element) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddElement(element); } \
     143             :   NS_IMETHOD GetMozItemCount(uint32_t *aMozItemCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozItemCount(aMozItemCount); } \
     144             :   NS_IMETHOD GetMozCursor(nsAString & aMozCursor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozCursor(aMozCursor); } \
     145             :   NS_IMETHOD SetMozCursor(const nsAString & aMozCursor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozCursor(aMozCursor); } \
     146             :   NS_IMETHOD GetMozUserCancelled(bool *aMozUserCancelled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozUserCancelled(aMozUserCancelled); } \
     147             :   NS_IMETHOD GetMozSourceNode(nsIDOMNode * *aMozSourceNode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozSourceNode(aMozSourceNode); } \
     148             :   NS_IMETHOD GetDropEffectInt(uint32_t *aDropEffectInt) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDropEffectInt(aDropEffectInt); } \
     149             :   NS_IMETHOD SetDropEffectInt(uint32_t aDropEffectInt) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDropEffectInt(aDropEffectInt); } \
     150             :   NS_IMETHOD GetEffectAllowedInt(uint32_t *aEffectAllowedInt) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEffectAllowedInt(aEffectAllowedInt); } \
     151             :   NS_IMETHOD SetEffectAllowedInt(uint32_t aEffectAllowedInt) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEffectAllowedInt(aEffectAllowedInt); } 
     152             : 
     153             : #if 0
     154             : /* Use the code below as a template for the implementation class for this interface. */
     155             : 
     156             : /* Header file */
     157             : class nsDOMDataTransfer : public nsIDOMDataTransfer
     158             : {
     159             : public:
     160             :   NS_DECL_ISUPPORTS
     161             :   NS_DECL_NSIDOMDATATRANSFER
     162             : 
     163             :   nsDOMDataTransfer();
     164             : 
     165             : private:
     166             :   ~nsDOMDataTransfer();
     167             : 
     168             : protected:
     169             :   /* additional members */
     170             : };
     171             : 
     172             : /* Implementation file */
     173             : NS_IMPL_ISUPPORTS(nsDOMDataTransfer, nsIDOMDataTransfer)
     174             : 
     175             : nsDOMDataTransfer::nsDOMDataTransfer()
     176             : {
     177             :   /* member initializers and constructor code */
     178             : }
     179             : 
     180             : nsDOMDataTransfer::~nsDOMDataTransfer()
     181             : {
     182             :   /* destructor code */
     183             : }
     184             : 
     185             : /* attribute DOMString dropEffect; */
     186             : NS_IMETHODIMP nsDOMDataTransfer::GetDropEffect(nsAString & aDropEffect)
     187             : {
     188             :     return NS_ERROR_NOT_IMPLEMENTED;
     189             : }
     190             : NS_IMETHODIMP nsDOMDataTransfer::SetDropEffect(const nsAString & aDropEffect)
     191             : {
     192             :     return NS_ERROR_NOT_IMPLEMENTED;
     193             : }
     194             : 
     195             : /* attribute DOMString effectAllowed; */
     196             : NS_IMETHODIMP nsDOMDataTransfer::GetEffectAllowed(nsAString & aEffectAllowed)
     197             : {
     198             :     return NS_ERROR_NOT_IMPLEMENTED;
     199             : }
     200             : NS_IMETHODIMP nsDOMDataTransfer::SetEffectAllowed(const nsAString & aEffectAllowed)
     201             : {
     202             :     return NS_ERROR_NOT_IMPLEMENTED;
     203             : }
     204             : 
     205             : /* readonly attribute nsIDOMFileList files; */
     206             : NS_IMETHODIMP nsDOMDataTransfer::GetFiles(nsIDOMFileList * *aFiles)
     207             : {
     208             :     return NS_ERROR_NOT_IMPLEMENTED;
     209             : }
     210             : 
     211             : /* void setDragImage (in nsIDOMElement image, in long x, in long y); */
     212             : NS_IMETHODIMP nsDOMDataTransfer::SetDragImage(nsIDOMElement *image, int32_t x, int32_t y)
     213             : {
     214             :     return NS_ERROR_NOT_IMPLEMENTED;
     215             : }
     216             : 
     217             : /* void addElement (in nsIDOMElement element); */
     218             : NS_IMETHODIMP nsDOMDataTransfer::AddElement(nsIDOMElement *element)
     219             : {
     220             :     return NS_ERROR_NOT_IMPLEMENTED;
     221             : }
     222             : 
     223             : /* readonly attribute unsigned long mozItemCount; */
     224             : NS_IMETHODIMP nsDOMDataTransfer::GetMozItemCount(uint32_t *aMozItemCount)
     225             : {
     226             :     return NS_ERROR_NOT_IMPLEMENTED;
     227             : }
     228             : 
     229             : /* attribute DOMString mozCursor; */
     230             : NS_IMETHODIMP nsDOMDataTransfer::GetMozCursor(nsAString & aMozCursor)
     231             : {
     232             :     return NS_ERROR_NOT_IMPLEMENTED;
     233             : }
     234             : NS_IMETHODIMP nsDOMDataTransfer::SetMozCursor(const nsAString & aMozCursor)
     235             : {
     236             :     return NS_ERROR_NOT_IMPLEMENTED;
     237             : }
     238             : 
     239             : /* readonly attribute boolean mozUserCancelled; */
     240             : NS_IMETHODIMP nsDOMDataTransfer::GetMozUserCancelled(bool *aMozUserCancelled)
     241             : {
     242             :     return NS_ERROR_NOT_IMPLEMENTED;
     243             : }
     244             : 
     245             : /* readonly attribute nsIDOMNode mozSourceNode; */
     246             : NS_IMETHODIMP nsDOMDataTransfer::GetMozSourceNode(nsIDOMNode * *aMozSourceNode)
     247             : {
     248             :     return NS_ERROR_NOT_IMPLEMENTED;
     249             : }
     250             : 
     251             : /* [noscript] attribute unsigned long dropEffectInt; */
     252             : NS_IMETHODIMP nsDOMDataTransfer::GetDropEffectInt(uint32_t *aDropEffectInt)
     253             : {
     254             :     return NS_ERROR_NOT_IMPLEMENTED;
     255             : }
     256             : NS_IMETHODIMP nsDOMDataTransfer::SetDropEffectInt(uint32_t aDropEffectInt)
     257             : {
     258             :     return NS_ERROR_NOT_IMPLEMENTED;
     259             : }
     260             : 
     261             : /* [noscript] attribute unsigned long effectAllowedInt; */
     262             : NS_IMETHODIMP nsDOMDataTransfer::GetEffectAllowedInt(uint32_t *aEffectAllowedInt)
     263             : {
     264             :     return NS_ERROR_NOT_IMPLEMENTED;
     265             : }
     266             : NS_IMETHODIMP nsDOMDataTransfer::SetEffectAllowedInt(uint32_t aEffectAllowedInt)
     267             : {
     268             :     return NS_ERROR_NOT_IMPLEMENTED;
     269             : }
     270             : 
     271             : /* End of implementation class template. */
     272             : #endif
     273             : 
     274             : 
     275             : #endif /* __gen_nsIDOMDataTransfer_h__ */

Generated by: LCOV version 1.13