LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIDragService.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/nsIDragService.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIDragService_h__
       6                 : #define __gen_nsIDragService_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_nsIDragSession_h__
      18                 : #include "nsIDragSession.h"
      19                 : #endif
      20                 : 
      21                 : #ifndef __gen_nsIScriptableRegion_h__
      22                 : #include "nsIScriptableRegion.h"
      23                 : #endif
      24                 : 
      25                 : /* For IDL files that don't want to include root IDL files. */
      26                 : #ifndef NS_NO_VTABLE
      27                 : #define NS_NO_VTABLE
      28                 : #endif
      29                 : class nsIDOMNode; /* forward declaration */
      30                 : 
      31                 : class nsIDOMDragEvent; /* forward declaration */
      32                 : 
      33                 : class nsIDOMDataTransfer; /* forward declaration */
      34                 : 
      35                 : class nsISelection; /* forward declaration */
      36                 : 
      37                 : 
      38                 : /* starting interface:    nsIDragService */
      39                 : #define NS_IDRAGSERVICE_IID_STR "82b58ada-f490-4c3d-b737-1057c4f1d052"
      40                 : 
      41                 : #define NS_IDRAGSERVICE_IID \
      42                 :   {0x82b58ada, 0xf490, 0x4c3d, \
      43                 :     { 0xb7, 0x37, 0x10, 0x57, 0xc4, 0xf1, 0xd0, 0x52 }}
      44                 : 
      45               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDragService : public nsISupports {
      46                 :  public: 
      47                 : 
      48                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDRAGSERVICE_IID)
      49                 : 
      50                 :   enum {
      51                 :     DRAGDROP_ACTION_NONE = 0,
      52                 :     DRAGDROP_ACTION_COPY = 1,
      53                 :     DRAGDROP_ACTION_MOVE = 2,
      54                 :     DRAGDROP_ACTION_LINK = 4,
      55                 :     DRAGDROP_ACTION_UNINITIALIZED = 64
      56                 :   };
      57                 : 
      58                 :   /* void invokeDragSession (in nsIDOMNode aDOMNode, in nsISupportsArray aTransferables, in nsIScriptableRegion aRegion, in unsigned long aActionType); */
      59                 :   NS_SCRIPTABLE NS_IMETHOD InvokeDragSession(nsIDOMNode *aDOMNode, nsISupportsArray *aTransferables, nsIScriptableRegion *aRegion, PRUint32 aActionType) = 0;
      60                 : 
      61                 :   /* void invokeDragSessionWithImage (in nsIDOMNode aDOMNode, in nsISupportsArray aTransferableArray, in nsIScriptableRegion aRegion, in unsigned long aActionType, in nsIDOMNode aImage, in long aImageX, in long aImageY, in nsIDOMDragEvent aDragEvent, in nsIDOMDataTransfer aDataTransfer); */
      62                 :   NS_SCRIPTABLE NS_IMETHOD InvokeDragSessionWithImage(nsIDOMNode *aDOMNode, nsISupportsArray *aTransferableArray, nsIScriptableRegion *aRegion, PRUint32 aActionType, nsIDOMNode *aImage, PRInt32 aImageX, PRInt32 aImageY, nsIDOMDragEvent *aDragEvent, nsIDOMDataTransfer *aDataTransfer) = 0;
      63                 : 
      64                 :   /* void invokeDragSessionWithSelection (in nsISelection aSelection, in nsISupportsArray aTransferableArray, in unsigned long aActionType, in nsIDOMDragEvent aDragEvent, in nsIDOMDataTransfer aDataTransfer); */
      65                 :   NS_SCRIPTABLE NS_IMETHOD InvokeDragSessionWithSelection(nsISelection *aSelection, nsISupportsArray *aTransferableArray, PRUint32 aActionType, nsIDOMDragEvent *aDragEvent, nsIDOMDataTransfer *aDataTransfer) = 0;
      66                 : 
      67                 :   /* nsIDragSession getCurrentSession (); */
      68                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentSession(nsIDragSession * *_retval NS_OUTPARAM) = 0;
      69                 : 
      70                 :   /* void startDragSession (); */
      71                 :   NS_SCRIPTABLE NS_IMETHOD StartDragSession(void) = 0;
      72                 : 
      73                 :   /* void endDragSession (in boolean aDoneDrag); */
      74                 :   NS_SCRIPTABLE NS_IMETHOD EndDragSession(bool aDoneDrag) = 0;
      75                 : 
      76                 :   /* void fireDragEventAtSource (in unsigned long aMsg); */
      77                 :   NS_SCRIPTABLE NS_IMETHOD FireDragEventAtSource(PRUint32 aMsg) = 0;
      78                 : 
      79                 :   /* void suppress (); */
      80                 :   NS_SCRIPTABLE NS_IMETHOD Suppress(void) = 0;
      81                 : 
      82                 :   /* void unsuppress (); */
      83                 :   NS_SCRIPTABLE NS_IMETHOD Unsuppress(void) = 0;
      84                 : 
      85                 :   /* [noscript] void dragMoved (in long aX, in long aY); */
      86                 :   NS_IMETHOD DragMoved(PRInt32 aX, PRInt32 aY) = 0;
      87                 : 
      88                 : };
      89                 : 
      90                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIDragService, NS_IDRAGSERVICE_IID)
      91                 : 
      92                 : /* Use this macro when declaring classes that implement this interface. */
      93                 : #define NS_DECL_NSIDRAGSERVICE \
      94                 :   NS_SCRIPTABLE NS_IMETHOD InvokeDragSession(nsIDOMNode *aDOMNode, nsISupportsArray *aTransferables, nsIScriptableRegion *aRegion, PRUint32 aActionType); \
      95                 :   NS_SCRIPTABLE NS_IMETHOD InvokeDragSessionWithImage(nsIDOMNode *aDOMNode, nsISupportsArray *aTransferableArray, nsIScriptableRegion *aRegion, PRUint32 aActionType, nsIDOMNode *aImage, PRInt32 aImageX, PRInt32 aImageY, nsIDOMDragEvent *aDragEvent, nsIDOMDataTransfer *aDataTransfer); \
      96                 :   NS_SCRIPTABLE NS_IMETHOD InvokeDragSessionWithSelection(nsISelection *aSelection, nsISupportsArray *aTransferableArray, PRUint32 aActionType, nsIDOMDragEvent *aDragEvent, nsIDOMDataTransfer *aDataTransfer); \
      97                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentSession(nsIDragSession * *_retval NS_OUTPARAM); \
      98                 :   NS_SCRIPTABLE NS_IMETHOD StartDragSession(void); \
      99                 :   NS_SCRIPTABLE NS_IMETHOD EndDragSession(bool aDoneDrag); \
     100                 :   NS_SCRIPTABLE NS_IMETHOD FireDragEventAtSource(PRUint32 aMsg); \
     101                 :   NS_SCRIPTABLE NS_IMETHOD Suppress(void); \
     102                 :   NS_SCRIPTABLE NS_IMETHOD Unsuppress(void); \
     103                 :   NS_IMETHOD DragMoved(PRInt32 aX, PRInt32 aY); 
     104                 : 
     105                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     106                 : #define NS_FORWARD_NSIDRAGSERVICE(_to) \
     107                 :   NS_SCRIPTABLE NS_IMETHOD InvokeDragSession(nsIDOMNode *aDOMNode, nsISupportsArray *aTransferables, nsIScriptableRegion *aRegion, PRUint32 aActionType) { return _to InvokeDragSession(aDOMNode, aTransferables, aRegion, aActionType); } \
     108                 :   NS_SCRIPTABLE NS_IMETHOD InvokeDragSessionWithImage(nsIDOMNode *aDOMNode, nsISupportsArray *aTransferableArray, nsIScriptableRegion *aRegion, PRUint32 aActionType, nsIDOMNode *aImage, PRInt32 aImageX, PRInt32 aImageY, nsIDOMDragEvent *aDragEvent, nsIDOMDataTransfer *aDataTransfer) { return _to InvokeDragSessionWithImage(aDOMNode, aTransferableArray, aRegion, aActionType, aImage, aImageX, aImageY, aDragEvent, aDataTransfer); } \
     109                 :   NS_SCRIPTABLE NS_IMETHOD InvokeDragSessionWithSelection(nsISelection *aSelection, nsISupportsArray *aTransferableArray, PRUint32 aActionType, nsIDOMDragEvent *aDragEvent, nsIDOMDataTransfer *aDataTransfer) { return _to InvokeDragSessionWithSelection(aSelection, aTransferableArray, aActionType, aDragEvent, aDataTransfer); } \
     110                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentSession(nsIDragSession * *_retval NS_OUTPARAM) { return _to GetCurrentSession(_retval); } \
     111                 :   NS_SCRIPTABLE NS_IMETHOD StartDragSession(void) { return _to StartDragSession(); } \
     112                 :   NS_SCRIPTABLE NS_IMETHOD EndDragSession(bool aDoneDrag) { return _to EndDragSession(aDoneDrag); } \
     113                 :   NS_SCRIPTABLE NS_IMETHOD FireDragEventAtSource(PRUint32 aMsg) { return _to FireDragEventAtSource(aMsg); } \
     114                 :   NS_SCRIPTABLE NS_IMETHOD Suppress(void) { return _to Suppress(); } \
     115                 :   NS_SCRIPTABLE NS_IMETHOD Unsuppress(void) { return _to Unsuppress(); } \
     116                 :   NS_IMETHOD DragMoved(PRInt32 aX, PRInt32 aY) { return _to DragMoved(aX, aY); } 
     117                 : 
     118                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     119                 : #define NS_FORWARD_SAFE_NSIDRAGSERVICE(_to) \
     120                 :   NS_SCRIPTABLE NS_IMETHOD InvokeDragSession(nsIDOMNode *aDOMNode, nsISupportsArray *aTransferables, nsIScriptableRegion *aRegion, PRUint32 aActionType) { return !_to ? NS_ERROR_NULL_POINTER : _to->InvokeDragSession(aDOMNode, aTransferables, aRegion, aActionType); } \
     121                 :   NS_SCRIPTABLE NS_IMETHOD InvokeDragSessionWithImage(nsIDOMNode *aDOMNode, nsISupportsArray *aTransferableArray, nsIScriptableRegion *aRegion, PRUint32 aActionType, nsIDOMNode *aImage, PRInt32 aImageX, PRInt32 aImageY, nsIDOMDragEvent *aDragEvent, nsIDOMDataTransfer *aDataTransfer) { return !_to ? NS_ERROR_NULL_POINTER : _to->InvokeDragSessionWithImage(aDOMNode, aTransferableArray, aRegion, aActionType, aImage, aImageX, aImageY, aDragEvent, aDataTransfer); } \
     122                 :   NS_SCRIPTABLE NS_IMETHOD InvokeDragSessionWithSelection(nsISelection *aSelection, nsISupportsArray *aTransferableArray, PRUint32 aActionType, nsIDOMDragEvent *aDragEvent, nsIDOMDataTransfer *aDataTransfer) { return !_to ? NS_ERROR_NULL_POINTER : _to->InvokeDragSessionWithSelection(aSelection, aTransferableArray, aActionType, aDragEvent, aDataTransfer); } \
     123                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentSession(nsIDragSession * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentSession(_retval); } \
     124                 :   NS_SCRIPTABLE NS_IMETHOD StartDragSession(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->StartDragSession(); } \
     125                 :   NS_SCRIPTABLE NS_IMETHOD EndDragSession(bool aDoneDrag) { return !_to ? NS_ERROR_NULL_POINTER : _to->EndDragSession(aDoneDrag); } \
     126                 :   NS_SCRIPTABLE NS_IMETHOD FireDragEventAtSource(PRUint32 aMsg) { return !_to ? NS_ERROR_NULL_POINTER : _to->FireDragEventAtSource(aMsg); } \
     127                 :   NS_SCRIPTABLE NS_IMETHOD Suppress(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Suppress(); } \
     128                 :   NS_SCRIPTABLE NS_IMETHOD Unsuppress(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Unsuppress(); } \
     129                 :   NS_IMETHOD DragMoved(PRInt32 aX, PRInt32 aY) { return !_to ? NS_ERROR_NULL_POINTER : _to->DragMoved(aX, aY); } 
     130                 : 
     131                 : #if 0
     132                 : /* Use the code below as a template for the implementation class for this interface. */
     133                 : 
     134                 : /* Header file */
     135                 : class nsDragService : public nsIDragService
     136                 : {
     137                 : public:
     138                 :   NS_DECL_ISUPPORTS
     139                 :   NS_DECL_NSIDRAGSERVICE
     140                 : 
     141                 :   nsDragService();
     142                 : 
     143                 : private:
     144                 :   ~nsDragService();
     145                 : 
     146                 : protected:
     147                 :   /* additional members */
     148                 : };
     149                 : 
     150                 : /* Implementation file */
     151                 : NS_IMPL_ISUPPORTS1(nsDragService, nsIDragService)
     152                 : 
     153                 : nsDragService::nsDragService()
     154                 : {
     155                 :   /* member initializers and constructor code */
     156                 : }
     157                 : 
     158                 : nsDragService::~nsDragService()
     159                 : {
     160                 :   /* destructor code */
     161                 : }
     162                 : 
     163                 : /* void invokeDragSession (in nsIDOMNode aDOMNode, in nsISupportsArray aTransferables, in nsIScriptableRegion aRegion, in unsigned long aActionType); */
     164                 : NS_IMETHODIMP nsDragService::InvokeDragSession(nsIDOMNode *aDOMNode, nsISupportsArray *aTransferables, nsIScriptableRegion *aRegion, PRUint32 aActionType)
     165                 : {
     166                 :     return NS_ERROR_NOT_IMPLEMENTED;
     167                 : }
     168                 : 
     169                 : /* void invokeDragSessionWithImage (in nsIDOMNode aDOMNode, in nsISupportsArray aTransferableArray, in nsIScriptableRegion aRegion, in unsigned long aActionType, in nsIDOMNode aImage, in long aImageX, in long aImageY, in nsIDOMDragEvent aDragEvent, in nsIDOMDataTransfer aDataTransfer); */
     170                 : NS_IMETHODIMP nsDragService::InvokeDragSessionWithImage(nsIDOMNode *aDOMNode, nsISupportsArray *aTransferableArray, nsIScriptableRegion *aRegion, PRUint32 aActionType, nsIDOMNode *aImage, PRInt32 aImageX, PRInt32 aImageY, nsIDOMDragEvent *aDragEvent, nsIDOMDataTransfer *aDataTransfer)
     171                 : {
     172                 :     return NS_ERROR_NOT_IMPLEMENTED;
     173                 : }
     174                 : 
     175                 : /* void invokeDragSessionWithSelection (in nsISelection aSelection, in nsISupportsArray aTransferableArray, in unsigned long aActionType, in nsIDOMDragEvent aDragEvent, in nsIDOMDataTransfer aDataTransfer); */
     176                 : NS_IMETHODIMP nsDragService::InvokeDragSessionWithSelection(nsISelection *aSelection, nsISupportsArray *aTransferableArray, PRUint32 aActionType, nsIDOMDragEvent *aDragEvent, nsIDOMDataTransfer *aDataTransfer)
     177                 : {
     178                 :     return NS_ERROR_NOT_IMPLEMENTED;
     179                 : }
     180                 : 
     181                 : /* nsIDragSession getCurrentSession (); */
     182                 : NS_IMETHODIMP nsDragService::GetCurrentSession(nsIDragSession * *_retval NS_OUTPARAM)
     183                 : {
     184                 :     return NS_ERROR_NOT_IMPLEMENTED;
     185                 : }
     186                 : 
     187                 : /* void startDragSession (); */
     188                 : NS_IMETHODIMP nsDragService::StartDragSession()
     189                 : {
     190                 :     return NS_ERROR_NOT_IMPLEMENTED;
     191                 : }
     192                 : 
     193                 : /* void endDragSession (in boolean aDoneDrag); */
     194                 : NS_IMETHODIMP nsDragService::EndDragSession(bool aDoneDrag)
     195                 : {
     196                 :     return NS_ERROR_NOT_IMPLEMENTED;
     197                 : }
     198                 : 
     199                 : /* void fireDragEventAtSource (in unsigned long aMsg); */
     200                 : NS_IMETHODIMP nsDragService::FireDragEventAtSource(PRUint32 aMsg)
     201                 : {
     202                 :     return NS_ERROR_NOT_IMPLEMENTED;
     203                 : }
     204                 : 
     205                 : /* void suppress (); */
     206                 : NS_IMETHODIMP nsDragService::Suppress()
     207                 : {
     208                 :     return NS_ERROR_NOT_IMPLEMENTED;
     209                 : }
     210                 : 
     211                 : /* void unsuppress (); */
     212                 : NS_IMETHODIMP nsDragService::Unsuppress()
     213                 : {
     214                 :     return NS_ERROR_NOT_IMPLEMENTED;
     215                 : }
     216                 : 
     217                 : /* [noscript] void dragMoved (in long aX, in long aY); */
     218                 : NS_IMETHODIMP nsDragService::DragMoved(PRInt32 aX, PRInt32 aY)
     219                 : {
     220                 :     return NS_ERROR_NOT_IMPLEMENTED;
     221                 : }
     222                 : 
     223                 : /* End of implementation class template. */
     224                 : #endif
     225                 : 
     226                 : 
     227                 : 
     228                 : #endif /* __gen_nsIDragService_h__ */

Generated by: LCOV version 1.7