LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIContextMenuListener2.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/embedding/browser/webBrowser/nsIContextMenuListener2.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIContextMenuListener2_h__
       6                 : #define __gen_nsIContextMenuListener2_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.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 nsIDOMEvent; /* forward declaration */
      18                 : 
      19                 : class nsIDOMNode; /* forward declaration */
      20                 : 
      21                 : class imgIContainer; /* forward declaration */
      22                 : 
      23                 : class nsIURI; /* forward declaration */
      24                 : 
      25                 : class nsIContextMenuInfo; /* forward declaration */
      26                 : 
      27                 : 
      28                 : /* starting interface:    nsIContextMenuListener2 */
      29                 : #define NS_ICONTEXTMENULISTENER2_IID_STR "7fb719b3-d804-4964-9596-77cf924ee314"
      30                 : 
      31                 : #define NS_ICONTEXTMENULISTENER2_IID \
      32                 :   {0x7fb719b3, 0xd804, 0x4964, \
      33                 :     { 0x95, 0x96, 0x77, 0xcf, 0x92, 0x4e, 0xe3, 0x14 }}
      34                 : 
      35                 : class NS_NO_VTABLE NS_SCRIPTABLE nsIContextMenuListener2 : public nsISupports {
      36                 :  public: 
      37                 : 
      38                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTEXTMENULISTENER2_IID)
      39                 : 
      40                 :   enum {
      41                 :     CONTEXT_NONE = 0U,
      42                 :     CONTEXT_LINK = 1U,
      43                 :     CONTEXT_IMAGE = 2U,
      44                 :     CONTEXT_DOCUMENT = 4U,
      45                 :     CONTEXT_TEXT = 8U,
      46                 :     CONTEXT_INPUT = 16U,
      47                 :     CONTEXT_BACKGROUND_IMAGE = 32U
      48                 :   };
      49                 : 
      50                 :   /* void onShowContextMenu (in unsigned long aContextFlags, in nsIContextMenuInfo aUtils); */
      51                 :   NS_SCRIPTABLE NS_IMETHOD OnShowContextMenu(PRUint32 aContextFlags, nsIContextMenuInfo *aUtils) = 0;
      52                 : 
      53                 : };
      54                 : 
      55                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIContextMenuListener2, NS_ICONTEXTMENULISTENER2_IID)
      56                 : 
      57                 : /* Use this macro when declaring classes that implement this interface. */
      58                 : #define NS_DECL_NSICONTEXTMENULISTENER2 \
      59                 :   NS_SCRIPTABLE NS_IMETHOD OnShowContextMenu(PRUint32 aContextFlags, nsIContextMenuInfo *aUtils); 
      60                 : 
      61                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      62                 : #define NS_FORWARD_NSICONTEXTMENULISTENER2(_to) \
      63                 :   NS_SCRIPTABLE NS_IMETHOD OnShowContextMenu(PRUint32 aContextFlags, nsIContextMenuInfo *aUtils) { return _to OnShowContextMenu(aContextFlags, aUtils); } 
      64                 : 
      65                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      66                 : #define NS_FORWARD_SAFE_NSICONTEXTMENULISTENER2(_to) \
      67                 :   NS_SCRIPTABLE NS_IMETHOD OnShowContextMenu(PRUint32 aContextFlags, nsIContextMenuInfo *aUtils) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnShowContextMenu(aContextFlags, aUtils); } 
      68                 : 
      69                 : #if 0
      70                 : /* Use the code below as a template for the implementation class for this interface. */
      71                 : 
      72                 : /* Header file */
      73                 : class nsContextMenuListener2 : public nsIContextMenuListener2
      74                 : {
      75                 : public:
      76                 :   NS_DECL_ISUPPORTS
      77                 :   NS_DECL_NSICONTEXTMENULISTENER2
      78                 : 
      79                 :   nsContextMenuListener2();
      80                 : 
      81                 : private:
      82                 :   ~nsContextMenuListener2();
      83                 : 
      84                 : protected:
      85                 :   /* additional members */
      86                 : };
      87                 : 
      88                 : /* Implementation file */
      89                 : NS_IMPL_ISUPPORTS1(nsContextMenuListener2, nsIContextMenuListener2)
      90                 : 
      91                 : nsContextMenuListener2::nsContextMenuListener2()
      92                 : {
      93                 :   /* member initializers and constructor code */
      94                 : }
      95                 : 
      96                 : nsContextMenuListener2::~nsContextMenuListener2()
      97                 : {
      98                 :   /* destructor code */
      99                 : }
     100                 : 
     101                 : /* void onShowContextMenu (in unsigned long aContextFlags, in nsIContextMenuInfo aUtils); */
     102                 : NS_IMETHODIMP nsContextMenuListener2::OnShowContextMenu(PRUint32 aContextFlags, nsIContextMenuInfo *aUtils)
     103                 : {
     104                 :     return NS_ERROR_NOT_IMPLEMENTED;
     105                 : }
     106                 : 
     107                 : /* End of implementation class template. */
     108                 : #endif
     109                 : 
     110                 : 
     111                 : /* starting interface:    nsIContextMenuInfo */
     112                 : #define NS_ICONTEXTMENUINFO_IID_STR "2f977d56-5485-11d4-87e2-0010a4e75ef2"
     113                 : 
     114                 : #define NS_ICONTEXTMENUINFO_IID \
     115                 :   {0x2f977d56, 0x5485, 0x11d4, \
     116                 :     { 0x87, 0xe2, 0x00, 0x10, 0xa4, 0xe7, 0x5e, 0xf2 }}
     117                 : 
     118               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIContextMenuInfo : public nsISupports {
     119                 :  public: 
     120                 : 
     121                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTEXTMENUINFO_IID)
     122                 : 
     123                 :   /* readonly attribute nsIDOMEvent mouseEvent; */
     124                 :   NS_SCRIPTABLE NS_IMETHOD GetMouseEvent(nsIDOMEvent * *aMouseEvent) = 0;
     125                 : 
     126                 :   /* readonly attribute nsIDOMNode targetNode; */
     127                 :   NS_SCRIPTABLE NS_IMETHOD GetTargetNode(nsIDOMNode * *aTargetNode) = 0;
     128                 : 
     129                 :   /* readonly attribute AString associatedLink; */
     130                 :   NS_SCRIPTABLE NS_IMETHOD GetAssociatedLink(nsAString & aAssociatedLink) = 0;
     131                 : 
     132                 :   /* readonly attribute imgIContainer imageContainer; */
     133                 :   NS_SCRIPTABLE NS_IMETHOD GetImageContainer(imgIContainer * *aImageContainer) = 0;
     134                 : 
     135                 :   /* readonly attribute nsIURI imageSrc; */
     136                 :   NS_SCRIPTABLE NS_IMETHOD GetImageSrc(nsIURI * *aImageSrc) = 0;
     137                 : 
     138                 :   /* readonly attribute imgIContainer backgroundImageContainer; */
     139                 :   NS_SCRIPTABLE NS_IMETHOD GetBackgroundImageContainer(imgIContainer * *aBackgroundImageContainer) = 0;
     140                 : 
     141                 :   /* readonly attribute nsIURI backgroundImageSrc; */
     142                 :   NS_SCRIPTABLE NS_IMETHOD GetBackgroundImageSrc(nsIURI * *aBackgroundImageSrc) = 0;
     143                 : 
     144                 : };
     145                 : 
     146                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIContextMenuInfo, NS_ICONTEXTMENUINFO_IID)
     147                 : 
     148                 : /* Use this macro when declaring classes that implement this interface. */
     149                 : #define NS_DECL_NSICONTEXTMENUINFO \
     150                 :   NS_SCRIPTABLE NS_IMETHOD GetMouseEvent(nsIDOMEvent * *aMouseEvent); \
     151                 :   NS_SCRIPTABLE NS_IMETHOD GetTargetNode(nsIDOMNode * *aTargetNode); \
     152                 :   NS_SCRIPTABLE NS_IMETHOD GetAssociatedLink(nsAString & aAssociatedLink); \
     153                 :   NS_SCRIPTABLE NS_IMETHOD GetImageContainer(imgIContainer * *aImageContainer); \
     154                 :   NS_SCRIPTABLE NS_IMETHOD GetImageSrc(nsIURI * *aImageSrc); \
     155                 :   NS_SCRIPTABLE NS_IMETHOD GetBackgroundImageContainer(imgIContainer * *aBackgroundImageContainer); \
     156                 :   NS_SCRIPTABLE NS_IMETHOD GetBackgroundImageSrc(nsIURI * *aBackgroundImageSrc); 
     157                 : 
     158                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     159                 : #define NS_FORWARD_NSICONTEXTMENUINFO(_to) \
     160                 :   NS_SCRIPTABLE NS_IMETHOD GetMouseEvent(nsIDOMEvent * *aMouseEvent) { return _to GetMouseEvent(aMouseEvent); } \
     161                 :   NS_SCRIPTABLE NS_IMETHOD GetTargetNode(nsIDOMNode * *aTargetNode) { return _to GetTargetNode(aTargetNode); } \
     162                 :   NS_SCRIPTABLE NS_IMETHOD GetAssociatedLink(nsAString & aAssociatedLink) { return _to GetAssociatedLink(aAssociatedLink); } \
     163                 :   NS_SCRIPTABLE NS_IMETHOD GetImageContainer(imgIContainer * *aImageContainer) { return _to GetImageContainer(aImageContainer); } \
     164                 :   NS_SCRIPTABLE NS_IMETHOD GetImageSrc(nsIURI * *aImageSrc) { return _to GetImageSrc(aImageSrc); } \
     165                 :   NS_SCRIPTABLE NS_IMETHOD GetBackgroundImageContainer(imgIContainer * *aBackgroundImageContainer) { return _to GetBackgroundImageContainer(aBackgroundImageContainer); } \
     166                 :   NS_SCRIPTABLE NS_IMETHOD GetBackgroundImageSrc(nsIURI * *aBackgroundImageSrc) { return _to GetBackgroundImageSrc(aBackgroundImageSrc); } 
     167                 : 
     168                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     169                 : #define NS_FORWARD_SAFE_NSICONTEXTMENUINFO(_to) \
     170                 :   NS_SCRIPTABLE NS_IMETHOD GetMouseEvent(nsIDOMEvent * *aMouseEvent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMouseEvent(aMouseEvent); } \
     171                 :   NS_SCRIPTABLE NS_IMETHOD GetTargetNode(nsIDOMNode * *aTargetNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTargetNode(aTargetNode); } \
     172                 :   NS_SCRIPTABLE NS_IMETHOD GetAssociatedLink(nsAString & aAssociatedLink) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAssociatedLink(aAssociatedLink); } \
     173                 :   NS_SCRIPTABLE NS_IMETHOD GetImageContainer(imgIContainer * *aImageContainer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImageContainer(aImageContainer); } \
     174                 :   NS_SCRIPTABLE NS_IMETHOD GetImageSrc(nsIURI * *aImageSrc) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImageSrc(aImageSrc); } \
     175                 :   NS_SCRIPTABLE NS_IMETHOD GetBackgroundImageContainer(imgIContainer * *aBackgroundImageContainer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBackgroundImageContainer(aBackgroundImageContainer); } \
     176                 :   NS_SCRIPTABLE NS_IMETHOD GetBackgroundImageSrc(nsIURI * *aBackgroundImageSrc) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBackgroundImageSrc(aBackgroundImageSrc); } 
     177                 : 
     178                 : #if 0
     179                 : /* Use the code below as a template for the implementation class for this interface. */
     180                 : 
     181                 : /* Header file */
     182                 : class nsContextMenuInfo : public nsIContextMenuInfo
     183                 : {
     184                 : public:
     185                 :   NS_DECL_ISUPPORTS
     186                 :   NS_DECL_NSICONTEXTMENUINFO
     187                 : 
     188                 :   nsContextMenuInfo();
     189                 : 
     190                 : private:
     191                 :   ~nsContextMenuInfo();
     192                 : 
     193                 : protected:
     194                 :   /* additional members */
     195                 : };
     196                 : 
     197                 : /* Implementation file */
     198                 : NS_IMPL_ISUPPORTS1(nsContextMenuInfo, nsIContextMenuInfo)
     199                 : 
     200                 : nsContextMenuInfo::nsContextMenuInfo()
     201                 : {
     202                 :   /* member initializers and constructor code */
     203                 : }
     204                 : 
     205                 : nsContextMenuInfo::~nsContextMenuInfo()
     206                 : {
     207                 :   /* destructor code */
     208                 : }
     209                 : 
     210                 : /* readonly attribute nsIDOMEvent mouseEvent; */
     211                 : NS_IMETHODIMP nsContextMenuInfo::GetMouseEvent(nsIDOMEvent * *aMouseEvent)
     212                 : {
     213                 :     return NS_ERROR_NOT_IMPLEMENTED;
     214                 : }
     215                 : 
     216                 : /* readonly attribute nsIDOMNode targetNode; */
     217                 : NS_IMETHODIMP nsContextMenuInfo::GetTargetNode(nsIDOMNode * *aTargetNode)
     218                 : {
     219                 :     return NS_ERROR_NOT_IMPLEMENTED;
     220                 : }
     221                 : 
     222                 : /* readonly attribute AString associatedLink; */
     223                 : NS_IMETHODIMP nsContextMenuInfo::GetAssociatedLink(nsAString & aAssociatedLink)
     224                 : {
     225                 :     return NS_ERROR_NOT_IMPLEMENTED;
     226                 : }
     227                 : 
     228                 : /* readonly attribute imgIContainer imageContainer; */
     229                 : NS_IMETHODIMP nsContextMenuInfo::GetImageContainer(imgIContainer * *aImageContainer)
     230                 : {
     231                 :     return NS_ERROR_NOT_IMPLEMENTED;
     232                 : }
     233                 : 
     234                 : /* readonly attribute nsIURI imageSrc; */
     235                 : NS_IMETHODIMP nsContextMenuInfo::GetImageSrc(nsIURI * *aImageSrc)
     236                 : {
     237                 :     return NS_ERROR_NOT_IMPLEMENTED;
     238                 : }
     239                 : 
     240                 : /* readonly attribute imgIContainer backgroundImageContainer; */
     241                 : NS_IMETHODIMP nsContextMenuInfo::GetBackgroundImageContainer(imgIContainer * *aBackgroundImageContainer)
     242                 : {
     243                 :     return NS_ERROR_NOT_IMPLEMENTED;
     244                 : }
     245                 : 
     246                 : /* readonly attribute nsIURI backgroundImageSrc; */
     247                 : NS_IMETHODIMP nsContextMenuInfo::GetBackgroundImageSrc(nsIURI * *aBackgroundImageSrc)
     248                 : {
     249                 :     return NS_ERROR_NOT_IMPLEMENTED;
     250                 : }
     251                 : 
     252                 : /* End of implementation class template. */
     253                 : #endif
     254                 : 
     255                 : 
     256                 : #endif /* __gen_nsIContextMenuListener2_h__ */

Generated by: LCOV version 1.7