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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIContentPermissionPrompt.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIContentPermissionPrompt_h__
       6             : #define __gen_nsIContentPermissionPrompt_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : #include "js/Value.h"
      14             : 
      15             : /* For IDL files that don't want to include root IDL files. */
      16             : #ifndef NS_NO_VTABLE
      17             : #define NS_NO_VTABLE
      18             : #endif
      19             : class nsIPrincipal; /* forward declaration */
      20             : 
      21             : class mozIDOMWindow; /* forward declaration */
      22             : 
      23             : class nsIDOMElement; /* forward declaration */
      24             : 
      25             : class nsIArray; /* forward declaration */
      26             : 
      27             : 
      28             : /* starting interface:    nsIContentPermissionType */
      29             : #define NS_ICONTENTPERMISSIONTYPE_IID_STR "ef4db3b8-ca9c-4b1d-8f81-fd88ec32af13"
      30             : 
      31             : #define NS_ICONTENTPERMISSIONTYPE_IID \
      32             :   {0xef4db3b8, 0xca9c, 0x4b1d, \
      33             :     { 0x8f, 0x81, 0xfd, 0x88, 0xec, 0x32, 0xaf, 0x13 }}
      34             : 
      35           0 : class NS_NO_VTABLE nsIContentPermissionType : public nsISupports {
      36             :  public:
      37             : 
      38             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTPERMISSIONTYPE_IID)
      39             : 
      40             :   /* readonly attribute ACString type; */
      41             :   NS_IMETHOD GetType(nsACString & aType) = 0;
      42             : 
      43             :   /* readonly attribute ACString access; */
      44             :   NS_IMETHOD GetAccess(nsACString & aAccess) = 0;
      45             : 
      46             :   /* readonly attribute nsIArray options; */
      47             :   NS_IMETHOD GetOptions(nsIArray * *aOptions) = 0;
      48             : 
      49             : };
      50             : 
      51             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentPermissionType, NS_ICONTENTPERMISSIONTYPE_IID)
      52             : 
      53             : /* Use this macro when declaring classes that implement this interface. */
      54             : #define NS_DECL_NSICONTENTPERMISSIONTYPE \
      55             :   NS_IMETHOD GetType(nsACString & aType) override; \
      56             :   NS_IMETHOD GetAccess(nsACString & aAccess) override; \
      57             :   NS_IMETHOD GetOptions(nsIArray * *aOptions) override; 
      58             : 
      59             : /* Use this macro when declaring the members of this interface when the
      60             :    class doesn't implement the interface. This is useful for forwarding. */
      61             : #define NS_DECL_NON_VIRTUAL_NSICONTENTPERMISSIONTYPE \
      62             :   nsresult GetType(nsACString & aType); \
      63             :   nsresult GetAccess(nsACString & aAccess); \
      64             :   nsresult GetOptions(nsIArray * *aOptions); 
      65             : 
      66             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      67             : #define NS_FORWARD_NSICONTENTPERMISSIONTYPE(_to) \
      68             :   NS_IMETHOD GetType(nsACString & aType) override { return _to GetType(aType); } \
      69             :   NS_IMETHOD GetAccess(nsACString & aAccess) override { return _to GetAccess(aAccess); } \
      70             :   NS_IMETHOD GetOptions(nsIArray * *aOptions) override { return _to GetOptions(aOptions); } 
      71             : 
      72             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      73             : #define NS_FORWARD_SAFE_NSICONTENTPERMISSIONTYPE(_to) \
      74             :   NS_IMETHOD GetType(nsACString & aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
      75             :   NS_IMETHOD GetAccess(nsACString & aAccess) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccess(aAccess); } \
      76             :   NS_IMETHOD GetOptions(nsIArray * *aOptions) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOptions(aOptions); } 
      77             : 
      78             : #if 0
      79             : /* Use the code below as a template for the implementation class for this interface. */
      80             : 
      81             : /* Header file */
      82             : class nsContentPermissionType : public nsIContentPermissionType
      83             : {
      84             : public:
      85             :   NS_DECL_ISUPPORTS
      86             :   NS_DECL_NSICONTENTPERMISSIONTYPE
      87             : 
      88             :   nsContentPermissionType();
      89             : 
      90             : private:
      91             :   ~nsContentPermissionType();
      92             : 
      93             : protected:
      94             :   /* additional members */
      95             : };
      96             : 
      97             : /* Implementation file */
      98             : NS_IMPL_ISUPPORTS(nsContentPermissionType, nsIContentPermissionType)
      99             : 
     100             : nsContentPermissionType::nsContentPermissionType()
     101             : {
     102             :   /* member initializers and constructor code */
     103             : }
     104             : 
     105             : nsContentPermissionType::~nsContentPermissionType()
     106             : {
     107             :   /* destructor code */
     108             : }
     109             : 
     110             : /* readonly attribute ACString type; */
     111             : NS_IMETHODIMP nsContentPermissionType::GetType(nsACString & aType)
     112             : {
     113             :     return NS_ERROR_NOT_IMPLEMENTED;
     114             : }
     115             : 
     116             : /* readonly attribute ACString access; */
     117             : NS_IMETHODIMP nsContentPermissionType::GetAccess(nsACString & aAccess)
     118             : {
     119             :     return NS_ERROR_NOT_IMPLEMENTED;
     120             : }
     121             : 
     122             : /* readonly attribute nsIArray options; */
     123             : NS_IMETHODIMP nsContentPermissionType::GetOptions(nsIArray * *aOptions)
     124             : {
     125             :     return NS_ERROR_NOT_IMPLEMENTED;
     126             : }
     127             : 
     128             : /* End of implementation class template. */
     129             : #endif
     130             : 
     131             : 
     132             : /* starting interface:    nsIContentPermissionRequestCallback */
     133             : #define NS_ICONTENTPERMISSIONREQUESTCALLBACK_IID_STR "5fb5bb60-7069-11e4-9803-0800200c9a66"
     134             : 
     135             : #define NS_ICONTENTPERMISSIONREQUESTCALLBACK_IID \
     136             :   {0x5fb5bb60, 0x7069, 0x11e4, \
     137             :     { 0x98, 0x03, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}
     138             : 
     139           0 : class NS_NO_VTABLE nsIContentPermissionRequestCallback : public nsISupports {
     140             :  public:
     141             : 
     142             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTPERMISSIONREQUESTCALLBACK_IID)
     143             : 
     144             :   /* void notifyVisibility (in boolean isVisible); */
     145             :   NS_IMETHOD NotifyVisibility(bool isVisible) = 0;
     146             : 
     147             : };
     148             : 
     149             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentPermissionRequestCallback, NS_ICONTENTPERMISSIONREQUESTCALLBACK_IID)
     150             : 
     151             : /* Use this macro when declaring classes that implement this interface. */
     152             : #define NS_DECL_NSICONTENTPERMISSIONREQUESTCALLBACK \
     153             :   NS_IMETHOD NotifyVisibility(bool isVisible) override; 
     154             : 
     155             : /* Use this macro when declaring the members of this interface when the
     156             :    class doesn't implement the interface. This is useful for forwarding. */
     157             : #define NS_DECL_NON_VIRTUAL_NSICONTENTPERMISSIONREQUESTCALLBACK \
     158             :   nsresult NotifyVisibility(bool isVisible); 
     159             : 
     160             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     161             : #define NS_FORWARD_NSICONTENTPERMISSIONREQUESTCALLBACK(_to) \
     162             :   NS_IMETHOD NotifyVisibility(bool isVisible) override { return _to NotifyVisibility(isVisible); } 
     163             : 
     164             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     165             : #define NS_FORWARD_SAFE_NSICONTENTPERMISSIONREQUESTCALLBACK(_to) \
     166             :   NS_IMETHOD NotifyVisibility(bool isVisible) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyVisibility(isVisible); } 
     167             : 
     168             : #if 0
     169             : /* Use the code below as a template for the implementation class for this interface. */
     170             : 
     171             : /* Header file */
     172             : class nsContentPermissionRequestCallback : public nsIContentPermissionRequestCallback
     173             : {
     174             : public:
     175             :   NS_DECL_ISUPPORTS
     176             :   NS_DECL_NSICONTENTPERMISSIONREQUESTCALLBACK
     177             : 
     178             :   nsContentPermissionRequestCallback();
     179             : 
     180             : private:
     181             :   ~nsContentPermissionRequestCallback();
     182             : 
     183             : protected:
     184             :   /* additional members */
     185             : };
     186             : 
     187             : /* Implementation file */
     188             : NS_IMPL_ISUPPORTS(nsContentPermissionRequestCallback, nsIContentPermissionRequestCallback)
     189             : 
     190             : nsContentPermissionRequestCallback::nsContentPermissionRequestCallback()
     191             : {
     192             :   /* member initializers and constructor code */
     193             : }
     194             : 
     195             : nsContentPermissionRequestCallback::~nsContentPermissionRequestCallback()
     196             : {
     197             :   /* destructor code */
     198             : }
     199             : 
     200             : /* void notifyVisibility (in boolean isVisible); */
     201             : NS_IMETHODIMP nsContentPermissionRequestCallback::NotifyVisibility(bool isVisible)
     202             : {
     203             :     return NS_ERROR_NOT_IMPLEMENTED;
     204             : }
     205             : 
     206             : /* End of implementation class template. */
     207             : #endif
     208             : 
     209             : 
     210             : /* starting interface:    nsIContentPermissionRequester */
     211             : #define NS_ICONTENTPERMISSIONREQUESTER_IID_STR "f8577124-6a5f-486f-ae04-c5bcae911eb5"
     212             : 
     213             : #define NS_ICONTENTPERMISSIONREQUESTER_IID \
     214             :   {0xf8577124, 0x6a5f, 0x486f, \
     215             :     { 0xae, 0x04, 0xc5, 0xbc, 0xae, 0x91, 0x1e, 0xb5 }}
     216             : 
     217           0 : class NS_NO_VTABLE nsIContentPermissionRequester : public nsISupports {
     218             :  public:
     219             : 
     220             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTPERMISSIONREQUESTER_IID)
     221             : 
     222             :   /* void getVisibility (in nsIContentPermissionRequestCallback callback); */
     223             :   NS_IMETHOD GetVisibility(nsIContentPermissionRequestCallback *callback) = 0;
     224             : 
     225             :   /* attribute nsIContentPermissionRequestCallback onVisibilityChange; */
     226             :   NS_IMETHOD GetOnVisibilityChange(nsIContentPermissionRequestCallback * *aOnVisibilityChange) = 0;
     227             :   NS_IMETHOD SetOnVisibilityChange(nsIContentPermissionRequestCallback *aOnVisibilityChange) = 0;
     228             : 
     229             : };
     230             : 
     231             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentPermissionRequester, NS_ICONTENTPERMISSIONREQUESTER_IID)
     232             : 
     233             : /* Use this macro when declaring classes that implement this interface. */
     234             : #define NS_DECL_NSICONTENTPERMISSIONREQUESTER \
     235             :   NS_IMETHOD GetVisibility(nsIContentPermissionRequestCallback *callback) override; \
     236             :   NS_IMETHOD GetOnVisibilityChange(nsIContentPermissionRequestCallback * *aOnVisibilityChange) override; \
     237             :   NS_IMETHOD SetOnVisibilityChange(nsIContentPermissionRequestCallback *aOnVisibilityChange) override; 
     238             : 
     239             : /* Use this macro when declaring the members of this interface when the
     240             :    class doesn't implement the interface. This is useful for forwarding. */
     241             : #define NS_DECL_NON_VIRTUAL_NSICONTENTPERMISSIONREQUESTER \
     242             :   nsresult GetVisibility(nsIContentPermissionRequestCallback *callback); \
     243             :   nsresult GetOnVisibilityChange(nsIContentPermissionRequestCallback * *aOnVisibilityChange); \
     244             :   nsresult SetOnVisibilityChange(nsIContentPermissionRequestCallback *aOnVisibilityChange); 
     245             : 
     246             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     247             : #define NS_FORWARD_NSICONTENTPERMISSIONREQUESTER(_to) \
     248             :   NS_IMETHOD GetVisibility(nsIContentPermissionRequestCallback *callback) override { return _to GetVisibility(callback); } \
     249             :   NS_IMETHOD GetOnVisibilityChange(nsIContentPermissionRequestCallback * *aOnVisibilityChange) override { return _to GetOnVisibilityChange(aOnVisibilityChange); } \
     250             :   NS_IMETHOD SetOnVisibilityChange(nsIContentPermissionRequestCallback *aOnVisibilityChange) override { return _to SetOnVisibilityChange(aOnVisibilityChange); } 
     251             : 
     252             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     253             : #define NS_FORWARD_SAFE_NSICONTENTPERMISSIONREQUESTER(_to) \
     254             :   NS_IMETHOD GetVisibility(nsIContentPermissionRequestCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVisibility(callback); } \
     255             :   NS_IMETHOD GetOnVisibilityChange(nsIContentPermissionRequestCallback * *aOnVisibilityChange) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnVisibilityChange(aOnVisibilityChange); } \
     256             :   NS_IMETHOD SetOnVisibilityChange(nsIContentPermissionRequestCallback *aOnVisibilityChange) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnVisibilityChange(aOnVisibilityChange); } 
     257             : 
     258             : #if 0
     259             : /* Use the code below as a template for the implementation class for this interface. */
     260             : 
     261             : /* Header file */
     262             : class nsContentPermissionRequester : public nsIContentPermissionRequester
     263             : {
     264             : public:
     265             :   NS_DECL_ISUPPORTS
     266             :   NS_DECL_NSICONTENTPERMISSIONREQUESTER
     267             : 
     268             :   nsContentPermissionRequester();
     269             : 
     270             : private:
     271             :   ~nsContentPermissionRequester();
     272             : 
     273             : protected:
     274             :   /* additional members */
     275             : };
     276             : 
     277             : /* Implementation file */
     278             : NS_IMPL_ISUPPORTS(nsContentPermissionRequester, nsIContentPermissionRequester)
     279             : 
     280             : nsContentPermissionRequester::nsContentPermissionRequester()
     281             : {
     282             :   /* member initializers and constructor code */
     283             : }
     284             : 
     285             : nsContentPermissionRequester::~nsContentPermissionRequester()
     286             : {
     287             :   /* destructor code */
     288             : }
     289             : 
     290             : /* void getVisibility (in nsIContentPermissionRequestCallback callback); */
     291             : NS_IMETHODIMP nsContentPermissionRequester::GetVisibility(nsIContentPermissionRequestCallback *callback)
     292             : {
     293             :     return NS_ERROR_NOT_IMPLEMENTED;
     294             : }
     295             : 
     296             : /* attribute nsIContentPermissionRequestCallback onVisibilityChange; */
     297             : NS_IMETHODIMP nsContentPermissionRequester::GetOnVisibilityChange(nsIContentPermissionRequestCallback * *aOnVisibilityChange)
     298             : {
     299             :     return NS_ERROR_NOT_IMPLEMENTED;
     300             : }
     301             : NS_IMETHODIMP nsContentPermissionRequester::SetOnVisibilityChange(nsIContentPermissionRequestCallback *aOnVisibilityChange)
     302             : {
     303             :     return NS_ERROR_NOT_IMPLEMENTED;
     304             : }
     305             : 
     306             : /* End of implementation class template. */
     307             : #endif
     308             : 
     309             : 
     310             : /* starting interface:    nsIContentPermissionRequest */
     311             : #define NS_ICONTENTPERMISSIONREQUEST_IID_STR "875733da-0ac0-4a26-8c76-70a30876be46"
     312             : 
     313             : #define NS_ICONTENTPERMISSIONREQUEST_IID \
     314             :   {0x875733da, 0x0ac0, 0x4a26, \
     315             :     { 0x8c, 0x76, 0x70, 0xa3, 0x08, 0x76, 0xbe, 0x46 }}
     316             : 
     317           0 : class NS_NO_VTABLE nsIContentPermissionRequest : public nsISupports {
     318             :  public:
     319             : 
     320             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTPERMISSIONREQUEST_IID)
     321             : 
     322             :   /* readonly attribute nsIArray types; */
     323             :   NS_IMETHOD GetTypes(nsIArray * *aTypes) = 0;
     324             : 
     325             :   /* readonly attribute nsIPrincipal principal; */
     326             :   NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) = 0;
     327             : 
     328             :   /* readonly attribute mozIDOMWindow window; */
     329             :   NS_IMETHOD GetWindow(mozIDOMWindow * *aWindow) = 0;
     330             : 
     331             :   /* readonly attribute nsIDOMElement element; */
     332             :   NS_IMETHOD GetElement(nsIDOMElement * *aElement) = 0;
     333             : 
     334             :   /* readonly attribute nsIContentPermissionRequester requester; */
     335             :   NS_IMETHOD GetRequester(nsIContentPermissionRequester * *aRequester) = 0;
     336             : 
     337             :   /* void cancel (); */
     338             :   NS_IMETHOD Cancel(void) = 0;
     339             : 
     340             :   /* void allow ([optional] in jsval choices); */
     341             :   NS_IMETHOD Allow(JS::HandleValue choices) = 0;
     342             : 
     343             : };
     344             : 
     345             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentPermissionRequest, NS_ICONTENTPERMISSIONREQUEST_IID)
     346             : 
     347             : /* Use this macro when declaring classes that implement this interface. */
     348             : #define NS_DECL_NSICONTENTPERMISSIONREQUEST \
     349             :   NS_IMETHOD GetTypes(nsIArray * *aTypes) override; \
     350             :   NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) override; \
     351             :   NS_IMETHOD GetWindow(mozIDOMWindow * *aWindow) override; \
     352             :   NS_IMETHOD GetElement(nsIDOMElement * *aElement) override; \
     353             :   NS_IMETHOD GetRequester(nsIContentPermissionRequester * *aRequester) override; \
     354             :   NS_IMETHOD Cancel(void) override; \
     355             :   NS_IMETHOD Allow(JS::HandleValue choices) override; 
     356             : 
     357             : /* Use this macro when declaring the members of this interface when the
     358             :    class doesn't implement the interface. This is useful for forwarding. */
     359             : #define NS_DECL_NON_VIRTUAL_NSICONTENTPERMISSIONREQUEST \
     360             :   nsresult GetTypes(nsIArray * *aTypes); \
     361             :   nsresult GetPrincipal(nsIPrincipal * *aPrincipal); \
     362             :   nsresult GetWindow(mozIDOMWindow * *aWindow); \
     363             :   nsresult GetElement(nsIDOMElement * *aElement); \
     364             :   nsresult GetRequester(nsIContentPermissionRequester * *aRequester); \
     365             :   nsresult Cancel(void); \
     366             :   nsresult Allow(JS::HandleValue choices); 
     367             : 
     368             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     369             : #define NS_FORWARD_NSICONTENTPERMISSIONREQUEST(_to) \
     370             :   NS_IMETHOD GetTypes(nsIArray * *aTypes) override { return _to GetTypes(aTypes); } \
     371             :   NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) override { return _to GetPrincipal(aPrincipal); } \
     372             :   NS_IMETHOD GetWindow(mozIDOMWindow * *aWindow) override { return _to GetWindow(aWindow); } \
     373             :   NS_IMETHOD GetElement(nsIDOMElement * *aElement) override { return _to GetElement(aElement); } \
     374             :   NS_IMETHOD GetRequester(nsIContentPermissionRequester * *aRequester) override { return _to GetRequester(aRequester); } \
     375             :   NS_IMETHOD Cancel(void) override { return _to Cancel(); } \
     376             :   NS_IMETHOD Allow(JS::HandleValue choices) override { return _to Allow(choices); } 
     377             : 
     378             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     379             : #define NS_FORWARD_SAFE_NSICONTENTPERMISSIONREQUEST(_to) \
     380             :   NS_IMETHOD GetTypes(nsIArray * *aTypes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTypes(aTypes); } \
     381             :   NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrincipal(aPrincipal); } \
     382             :   NS_IMETHOD GetWindow(mozIDOMWindow * *aWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindow(aWindow); } \
     383             :   NS_IMETHOD GetElement(nsIDOMElement * *aElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElement(aElement); } \
     384             :   NS_IMETHOD GetRequester(nsIContentPermissionRequester * *aRequester) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequester(aRequester); } \
     385             :   NS_IMETHOD Cancel(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Cancel(); } \
     386             :   NS_IMETHOD Allow(JS::HandleValue choices) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Allow(choices); } 
     387             : 
     388             : #if 0
     389             : /* Use the code below as a template for the implementation class for this interface. */
     390             : 
     391             : /* Header file */
     392             : class nsContentPermissionRequest : public nsIContentPermissionRequest
     393             : {
     394             : public:
     395             :   NS_DECL_ISUPPORTS
     396             :   NS_DECL_NSICONTENTPERMISSIONREQUEST
     397             : 
     398             :   nsContentPermissionRequest();
     399             : 
     400             : private:
     401             :   ~nsContentPermissionRequest();
     402             : 
     403             : protected:
     404             :   /* additional members */
     405             : };
     406             : 
     407             : /* Implementation file */
     408             : NS_IMPL_ISUPPORTS(nsContentPermissionRequest, nsIContentPermissionRequest)
     409             : 
     410             : nsContentPermissionRequest::nsContentPermissionRequest()
     411             : {
     412             :   /* member initializers and constructor code */
     413             : }
     414             : 
     415             : nsContentPermissionRequest::~nsContentPermissionRequest()
     416             : {
     417             :   /* destructor code */
     418             : }
     419             : 
     420             : /* readonly attribute nsIArray types; */
     421             : NS_IMETHODIMP nsContentPermissionRequest::GetTypes(nsIArray * *aTypes)
     422             : {
     423             :     return NS_ERROR_NOT_IMPLEMENTED;
     424             : }
     425             : 
     426             : /* readonly attribute nsIPrincipal principal; */
     427             : NS_IMETHODIMP nsContentPermissionRequest::GetPrincipal(nsIPrincipal * *aPrincipal)
     428             : {
     429             :     return NS_ERROR_NOT_IMPLEMENTED;
     430             : }
     431             : 
     432             : /* readonly attribute mozIDOMWindow window; */
     433             : NS_IMETHODIMP nsContentPermissionRequest::GetWindow(mozIDOMWindow * *aWindow)
     434             : {
     435             :     return NS_ERROR_NOT_IMPLEMENTED;
     436             : }
     437             : 
     438             : /* readonly attribute nsIDOMElement element; */
     439             : NS_IMETHODIMP nsContentPermissionRequest::GetElement(nsIDOMElement * *aElement)
     440             : {
     441             :     return NS_ERROR_NOT_IMPLEMENTED;
     442             : }
     443             : 
     444             : /* readonly attribute nsIContentPermissionRequester requester; */
     445             : NS_IMETHODIMP nsContentPermissionRequest::GetRequester(nsIContentPermissionRequester * *aRequester)
     446             : {
     447             :     return NS_ERROR_NOT_IMPLEMENTED;
     448             : }
     449             : 
     450             : /* void cancel (); */
     451             : NS_IMETHODIMP nsContentPermissionRequest::Cancel()
     452             : {
     453             :     return NS_ERROR_NOT_IMPLEMENTED;
     454             : }
     455             : 
     456             : /* void allow ([optional] in jsval choices); */
     457             : NS_IMETHODIMP nsContentPermissionRequest::Allow(JS::HandleValue choices)
     458             : {
     459             :     return NS_ERROR_NOT_IMPLEMENTED;
     460             : }
     461             : 
     462             : /* End of implementation class template. */
     463             : #endif
     464             : 
     465             : 
     466             : /* starting interface:    nsIContentPermissionPrompt */
     467             : #define NS_ICONTENTPERMISSIONPROMPT_IID_STR "f72de90d-e954-4e69-9a61-917303029301"
     468             : 
     469             : #define NS_ICONTENTPERMISSIONPROMPT_IID \
     470             :   {0xf72de90d, 0xe954, 0x4e69, \
     471             :     { 0x9a, 0x61, 0x91, 0x73, 0x03, 0x02, 0x93, 0x01 }}
     472             : 
     473             : class NS_NO_VTABLE nsIContentPermissionPrompt : public nsISupports {
     474             :  public:
     475             : 
     476             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTPERMISSIONPROMPT_IID)
     477             : 
     478             :   /* void prompt (in nsIContentPermissionRequest request); */
     479             :   NS_IMETHOD Prompt(nsIContentPermissionRequest *request) = 0;
     480             : 
     481             : };
     482             : 
     483             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentPermissionPrompt, NS_ICONTENTPERMISSIONPROMPT_IID)
     484             : 
     485             : /* Use this macro when declaring classes that implement this interface. */
     486             : #define NS_DECL_NSICONTENTPERMISSIONPROMPT \
     487             :   NS_IMETHOD Prompt(nsIContentPermissionRequest *request) override; 
     488             : 
     489             : /* Use this macro when declaring the members of this interface when the
     490             :    class doesn't implement the interface. This is useful for forwarding. */
     491             : #define NS_DECL_NON_VIRTUAL_NSICONTENTPERMISSIONPROMPT \
     492             :   nsresult Prompt(nsIContentPermissionRequest *request); 
     493             : 
     494             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     495             : #define NS_FORWARD_NSICONTENTPERMISSIONPROMPT(_to) \
     496             :   NS_IMETHOD Prompt(nsIContentPermissionRequest *request) override { return _to Prompt(request); } 
     497             : 
     498             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     499             : #define NS_FORWARD_SAFE_NSICONTENTPERMISSIONPROMPT(_to) \
     500             :   NS_IMETHOD Prompt(nsIContentPermissionRequest *request) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Prompt(request); } 
     501             : 
     502             : #if 0
     503             : /* Use the code below as a template for the implementation class for this interface. */
     504             : 
     505             : /* Header file */
     506             : class nsContentPermissionPrompt : public nsIContentPermissionPrompt
     507             : {
     508             : public:
     509             :   NS_DECL_ISUPPORTS
     510             :   NS_DECL_NSICONTENTPERMISSIONPROMPT
     511             : 
     512             :   nsContentPermissionPrompt();
     513             : 
     514             : private:
     515             :   ~nsContentPermissionPrompt();
     516             : 
     517             : protected:
     518             :   /* additional members */
     519             : };
     520             : 
     521             : /* Implementation file */
     522             : NS_IMPL_ISUPPORTS(nsContentPermissionPrompt, nsIContentPermissionPrompt)
     523             : 
     524             : nsContentPermissionPrompt::nsContentPermissionPrompt()
     525             : {
     526             :   /* member initializers and constructor code */
     527             : }
     528             : 
     529             : nsContentPermissionPrompt::~nsContentPermissionPrompt()
     530             : {
     531             :   /* destructor code */
     532             : }
     533             : 
     534             : /* void prompt (in nsIContentPermissionRequest request); */
     535             : NS_IMETHODIMP nsContentPermissionPrompt::Prompt(nsIContentPermissionRequest *request)
     536             : {
     537             :     return NS_ERROR_NOT_IMPLEMENTED;
     538             : }
     539             : 
     540             : /* End of implementation class template. */
     541             : #endif
     542             : 
     543             : #define NS_CONTENT_PERMISSION_PROMPT_CONTRACTID   "@mozilla.org/content-permission/prompt;1"
     544             : 
     545             : #endif /* __gen_nsIContentPermissionPrompt_h__ */

Generated by: LCOV version 1.13