LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIPopupWindowManager.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/nsIPopupWindowManager.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIPopupWindowManager_h__
       6             : #define __gen_nsIPopupWindowManager_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 nsIPrincipal; /* forward declaration */
      18             : 
      19             : 
      20             : /* starting interface:    nsIPopupWindowManager */
      21             : #define NS_IPOPUPWINDOWMANAGER_IID_STR "66386aa9-2088-4bae-82c7-9f58bc02be64"
      22             : 
      23             : #define NS_IPOPUPWINDOWMANAGER_IID \
      24             :   {0x66386aa9, 0x2088, 0x4bae, \
      25             :     { 0x82, 0xc7, 0x9f, 0x58, 0xbc, 0x02, 0xbe, 0x64 }}
      26             : 
      27           0 : class NS_NO_VTABLE nsIPopupWindowManager : public nsISupports {
      28             :  public:
      29             : 
      30             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPOPUPWINDOWMANAGER_IID)
      31             : 
      32             :   enum {
      33             :     ALLOW_POPUP = 1U,
      34             :     DENY_POPUP = 2U,
      35             :     ALLOW_POPUP_WITH_PREJUDICE = 3U
      36             :   };
      37             : 
      38             :   /* uint32_t testPermission (in nsIPrincipal principal); */
      39             :   NS_IMETHOD TestPermission(nsIPrincipal *principal, uint32_t *_retval) = 0;
      40             : 
      41             : };
      42             : 
      43             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIPopupWindowManager, NS_IPOPUPWINDOWMANAGER_IID)
      44             : 
      45             : /* Use this macro when declaring classes that implement this interface. */
      46             : #define NS_DECL_NSIPOPUPWINDOWMANAGER \
      47             :   NS_IMETHOD TestPermission(nsIPrincipal *principal, uint32_t *_retval) override; 
      48             : 
      49             : /* Use this macro when declaring the members of this interface when the
      50             :    class doesn't implement the interface. This is useful for forwarding. */
      51             : #define NS_DECL_NON_VIRTUAL_NSIPOPUPWINDOWMANAGER \
      52             :   nsresult TestPermission(nsIPrincipal *principal, uint32_t *_retval); 
      53             : 
      54             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      55             : #define NS_FORWARD_NSIPOPUPWINDOWMANAGER(_to) \
      56             :   NS_IMETHOD TestPermission(nsIPrincipal *principal, uint32_t *_retval) override { return _to TestPermission(principal, _retval); } 
      57             : 
      58             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      59             : #define NS_FORWARD_SAFE_NSIPOPUPWINDOWMANAGER(_to) \
      60             :   NS_IMETHOD TestPermission(nsIPrincipal *principal, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TestPermission(principal, _retval); } 
      61             : 
      62             : #if 0
      63             : /* Use the code below as a template for the implementation class for this interface. */
      64             : 
      65             : /* Header file */
      66             : class nsPopupWindowManager : public nsIPopupWindowManager
      67             : {
      68             : public:
      69             :   NS_DECL_ISUPPORTS
      70             :   NS_DECL_NSIPOPUPWINDOWMANAGER
      71             : 
      72             :   nsPopupWindowManager();
      73             : 
      74             : private:
      75             :   ~nsPopupWindowManager();
      76             : 
      77             : protected:
      78             :   /* additional members */
      79             : };
      80             : 
      81             : /* Implementation file */
      82             : NS_IMPL_ISUPPORTS(nsPopupWindowManager, nsIPopupWindowManager)
      83             : 
      84             : nsPopupWindowManager::nsPopupWindowManager()
      85             : {
      86             :   /* member initializers and constructor code */
      87             : }
      88             : 
      89             : nsPopupWindowManager::~nsPopupWindowManager()
      90             : {
      91             :   /* destructor code */
      92             : }
      93             : 
      94             : /* uint32_t testPermission (in nsIPrincipal principal); */
      95             : NS_IMETHODIMP nsPopupWindowManager::TestPermission(nsIPrincipal *principal, uint32_t *_retval)
      96             : {
      97             :     return NS_ERROR_NOT_IMPLEMENTED;
      98             : }
      99             : 
     100             : /* End of implementation class template. */
     101             : #endif
     102             : 
     103             : #define NS_POPUPWINDOWMANAGER_CONTRACTID "@mozilla.org/PopupWindowManager;1"
     104             : 
     105             : #endif /* __gen_nsIPopupWindowManager_h__ */

Generated by: LCOV version 1.13