LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIContextMenuListener2.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/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 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_IMETHOD OnShowContextMenu(uint32_t 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_IMETHOD OnShowContextMenu(uint32_t aContextFlags, nsIContextMenuInfo *aUtils) override; 
      60             : 
      61             : /* Use this macro when declaring the members of this interface when the
      62             :    class doesn't implement the interface. This is useful for forwarding. */
      63             : #define NS_DECL_NON_VIRTUAL_NSICONTEXTMENULISTENER2 \
      64             :   nsresult OnShowContextMenu(uint32_t aContextFlags, nsIContextMenuInfo *aUtils); 
      65             : 
      66             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      67             : #define NS_FORWARD_NSICONTEXTMENULISTENER2(_to) \
      68             :   NS_IMETHOD OnShowContextMenu(uint32_t aContextFlags, nsIContextMenuInfo *aUtils) override { return _to OnShowContextMenu(aContextFlags, aUtils); } 
      69             : 
      70             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      71             : #define NS_FORWARD_SAFE_NSICONTEXTMENULISTENER2(_to) \
      72             :   NS_IMETHOD OnShowContextMenu(uint32_t aContextFlags, nsIContextMenuInfo *aUtils) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnShowContextMenu(aContextFlags, aUtils); } 
      73             : 
      74             : #if 0
      75             : /* Use the code below as a template for the implementation class for this interface. */
      76             : 
      77             : /* Header file */
      78             : class nsContextMenuListener2 : public nsIContextMenuListener2
      79             : {
      80             : public:
      81             :   NS_DECL_ISUPPORTS
      82             :   NS_DECL_NSICONTEXTMENULISTENER2
      83             : 
      84             :   nsContextMenuListener2();
      85             : 
      86             : private:
      87             :   ~nsContextMenuListener2();
      88             : 
      89             : protected:
      90             :   /* additional members */
      91             : };
      92             : 
      93             : /* Implementation file */
      94             : NS_IMPL_ISUPPORTS(nsContextMenuListener2, nsIContextMenuListener2)
      95             : 
      96             : nsContextMenuListener2::nsContextMenuListener2()
      97             : {
      98             :   /* member initializers and constructor code */
      99             : }
     100             : 
     101             : nsContextMenuListener2::~nsContextMenuListener2()
     102             : {
     103             :   /* destructor code */
     104             : }
     105             : 
     106             : /* void onShowContextMenu (in unsigned long aContextFlags, in nsIContextMenuInfo aUtils); */
     107             : NS_IMETHODIMP nsContextMenuListener2::OnShowContextMenu(uint32_t aContextFlags, nsIContextMenuInfo *aUtils)
     108             : {
     109             :     return NS_ERROR_NOT_IMPLEMENTED;
     110             : }
     111             : 
     112             : /* End of implementation class template. */
     113             : #endif
     114             : 
     115             : 
     116             : /* starting interface:    nsIContextMenuInfo */
     117             : #define NS_ICONTEXTMENUINFO_IID_STR "2f977d56-5485-11d4-87e2-0010a4e75ef2"
     118             : 
     119             : #define NS_ICONTEXTMENUINFO_IID \
     120             :   {0x2f977d56, 0x5485, 0x11d4, \
     121             :     { 0x87, 0xe2, 0x00, 0x10, 0xa4, 0xe7, 0x5e, 0xf2 }}
     122             : 
     123           0 : class NS_NO_VTABLE nsIContextMenuInfo : public nsISupports {
     124             :  public:
     125             : 
     126             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTEXTMENUINFO_IID)
     127             : 
     128             :   /* readonly attribute nsIDOMEvent mouseEvent; */
     129             :   NS_IMETHOD GetMouseEvent(nsIDOMEvent * *aMouseEvent) = 0;
     130             : 
     131             :   /* readonly attribute nsIDOMNode targetNode; */
     132             :   NS_IMETHOD GetTargetNode(nsIDOMNode * *aTargetNode) = 0;
     133             : 
     134             :   /* readonly attribute AString associatedLink; */
     135             :   NS_IMETHOD GetAssociatedLink(nsAString & aAssociatedLink) = 0;
     136             : 
     137             :   /* readonly attribute imgIContainer imageContainer; */
     138             :   NS_IMETHOD GetImageContainer(imgIContainer * *aImageContainer) = 0;
     139             : 
     140             :   /* readonly attribute nsIURI imageSrc; */
     141             :   NS_IMETHOD GetImageSrc(nsIURI * *aImageSrc) = 0;
     142             : 
     143             :   /* readonly attribute imgIContainer backgroundImageContainer; */
     144             :   NS_IMETHOD GetBackgroundImageContainer(imgIContainer * *aBackgroundImageContainer) = 0;
     145             : 
     146             :   /* readonly attribute nsIURI backgroundImageSrc; */
     147             :   NS_IMETHOD GetBackgroundImageSrc(nsIURI * *aBackgroundImageSrc) = 0;
     148             : 
     149             : };
     150             : 
     151             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIContextMenuInfo, NS_ICONTEXTMENUINFO_IID)
     152             : 
     153             : /* Use this macro when declaring classes that implement this interface. */
     154             : #define NS_DECL_NSICONTEXTMENUINFO \
     155             :   NS_IMETHOD GetMouseEvent(nsIDOMEvent * *aMouseEvent) override; \
     156             :   NS_IMETHOD GetTargetNode(nsIDOMNode * *aTargetNode) override; \
     157             :   NS_IMETHOD GetAssociatedLink(nsAString & aAssociatedLink) override; \
     158             :   NS_IMETHOD GetImageContainer(imgIContainer * *aImageContainer) override; \
     159             :   NS_IMETHOD GetImageSrc(nsIURI * *aImageSrc) override; \
     160             :   NS_IMETHOD GetBackgroundImageContainer(imgIContainer * *aBackgroundImageContainer) override; \
     161             :   NS_IMETHOD GetBackgroundImageSrc(nsIURI * *aBackgroundImageSrc) override; 
     162             : 
     163             : /* Use this macro when declaring the members of this interface when the
     164             :    class doesn't implement the interface. This is useful for forwarding. */
     165             : #define NS_DECL_NON_VIRTUAL_NSICONTEXTMENUINFO \
     166             :   nsresult GetMouseEvent(nsIDOMEvent * *aMouseEvent); \
     167             :   nsresult GetTargetNode(nsIDOMNode * *aTargetNode); \
     168             :   nsresult GetAssociatedLink(nsAString & aAssociatedLink); \
     169             :   nsresult GetImageContainer(imgIContainer * *aImageContainer); \
     170             :   nsresult GetImageSrc(nsIURI * *aImageSrc); \
     171             :   nsresult GetBackgroundImageContainer(imgIContainer * *aBackgroundImageContainer); \
     172             :   nsresult GetBackgroundImageSrc(nsIURI * *aBackgroundImageSrc); 
     173             : 
     174             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     175             : #define NS_FORWARD_NSICONTEXTMENUINFO(_to) \
     176             :   NS_IMETHOD GetMouseEvent(nsIDOMEvent * *aMouseEvent) override { return _to GetMouseEvent(aMouseEvent); } \
     177             :   NS_IMETHOD GetTargetNode(nsIDOMNode * *aTargetNode) override { return _to GetTargetNode(aTargetNode); } \
     178             :   NS_IMETHOD GetAssociatedLink(nsAString & aAssociatedLink) override { return _to GetAssociatedLink(aAssociatedLink); } \
     179             :   NS_IMETHOD GetImageContainer(imgIContainer * *aImageContainer) override { return _to GetImageContainer(aImageContainer); } \
     180             :   NS_IMETHOD GetImageSrc(nsIURI * *aImageSrc) override { return _to GetImageSrc(aImageSrc); } \
     181             :   NS_IMETHOD GetBackgroundImageContainer(imgIContainer * *aBackgroundImageContainer) override { return _to GetBackgroundImageContainer(aBackgroundImageContainer); } \
     182             :   NS_IMETHOD GetBackgroundImageSrc(nsIURI * *aBackgroundImageSrc) override { return _to GetBackgroundImageSrc(aBackgroundImageSrc); } 
     183             : 
     184             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     185             : #define NS_FORWARD_SAFE_NSICONTEXTMENUINFO(_to) \
     186             :   NS_IMETHOD GetMouseEvent(nsIDOMEvent * *aMouseEvent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMouseEvent(aMouseEvent); } \
     187             :   NS_IMETHOD GetTargetNode(nsIDOMNode * *aTargetNode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTargetNode(aTargetNode); } \
     188             :   NS_IMETHOD GetAssociatedLink(nsAString & aAssociatedLink) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAssociatedLink(aAssociatedLink); } \
     189             :   NS_IMETHOD GetImageContainer(imgIContainer * *aImageContainer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImageContainer(aImageContainer); } \
     190             :   NS_IMETHOD GetImageSrc(nsIURI * *aImageSrc) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImageSrc(aImageSrc); } \
     191             :   NS_IMETHOD GetBackgroundImageContainer(imgIContainer * *aBackgroundImageContainer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBackgroundImageContainer(aBackgroundImageContainer); } \
     192             :   NS_IMETHOD GetBackgroundImageSrc(nsIURI * *aBackgroundImageSrc) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBackgroundImageSrc(aBackgroundImageSrc); } 
     193             : 
     194             : #if 0
     195             : /* Use the code below as a template for the implementation class for this interface. */
     196             : 
     197             : /* Header file */
     198             : class nsContextMenuInfo : public nsIContextMenuInfo
     199             : {
     200             : public:
     201             :   NS_DECL_ISUPPORTS
     202             :   NS_DECL_NSICONTEXTMENUINFO
     203             : 
     204             :   nsContextMenuInfo();
     205             : 
     206             : private:
     207             :   ~nsContextMenuInfo();
     208             : 
     209             : protected:
     210             :   /* additional members */
     211             : };
     212             : 
     213             : /* Implementation file */
     214             : NS_IMPL_ISUPPORTS(nsContextMenuInfo, nsIContextMenuInfo)
     215             : 
     216             : nsContextMenuInfo::nsContextMenuInfo()
     217             : {
     218             :   /* member initializers and constructor code */
     219             : }
     220             : 
     221             : nsContextMenuInfo::~nsContextMenuInfo()
     222             : {
     223             :   /* destructor code */
     224             : }
     225             : 
     226             : /* readonly attribute nsIDOMEvent mouseEvent; */
     227             : NS_IMETHODIMP nsContextMenuInfo::GetMouseEvent(nsIDOMEvent * *aMouseEvent)
     228             : {
     229             :     return NS_ERROR_NOT_IMPLEMENTED;
     230             : }
     231             : 
     232             : /* readonly attribute nsIDOMNode targetNode; */
     233             : NS_IMETHODIMP nsContextMenuInfo::GetTargetNode(nsIDOMNode * *aTargetNode)
     234             : {
     235             :     return NS_ERROR_NOT_IMPLEMENTED;
     236             : }
     237             : 
     238             : /* readonly attribute AString associatedLink; */
     239             : NS_IMETHODIMP nsContextMenuInfo::GetAssociatedLink(nsAString & aAssociatedLink)
     240             : {
     241             :     return NS_ERROR_NOT_IMPLEMENTED;
     242             : }
     243             : 
     244             : /* readonly attribute imgIContainer imageContainer; */
     245             : NS_IMETHODIMP nsContextMenuInfo::GetImageContainer(imgIContainer * *aImageContainer)
     246             : {
     247             :     return NS_ERROR_NOT_IMPLEMENTED;
     248             : }
     249             : 
     250             : /* readonly attribute nsIURI imageSrc; */
     251             : NS_IMETHODIMP nsContextMenuInfo::GetImageSrc(nsIURI * *aImageSrc)
     252             : {
     253             :     return NS_ERROR_NOT_IMPLEMENTED;
     254             : }
     255             : 
     256             : /* readonly attribute imgIContainer backgroundImageContainer; */
     257             : NS_IMETHODIMP nsContextMenuInfo::GetBackgroundImageContainer(imgIContainer * *aBackgroundImageContainer)
     258             : {
     259             :     return NS_ERROR_NOT_IMPLEMENTED;
     260             : }
     261             : 
     262             : /* readonly attribute nsIURI backgroundImageSrc; */
     263             : NS_IMETHODIMP nsContextMenuInfo::GetBackgroundImageSrc(nsIURI * *aBackgroundImageSrc)
     264             : {
     265             :     return NS_ERROR_NOT_IMPLEMENTED;
     266             : }
     267             : 
     268             : /* End of implementation class template. */
     269             : #endif
     270             : 
     271             : 
     272             : #endif /* __gen_nsIContextMenuListener2_h__ */

Generated by: LCOV version 1.13