LCOV - code coverage report
Current view: directory - objdir/dist/include - xpcIJSModuleLoader.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 1 100.0 %
Date: 2012-06-02 Functions: 1 1 100.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/js/xpconnect/idl/xpcIJSModuleLoader.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_xpcIJSModuleLoader_h__
       6                 : #define __gen_xpcIJSModuleLoader_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.h"
      11                 : #endif
      12                 : 
      13                 : #include "jspubtd.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                 : struct JSObject;
      20                 : 
      21                 : /* starting interface:    xpcIJSModuleLoader */
      22                 : #define XPCIJSMODULELOADER_IID_STR "243d1a31-db9f-47a1-9922-55a1ad5515fb"
      23                 : 
      24                 : #define XPCIJSMODULELOADER_IID \
      25                 :   {0x243d1a31, 0xdb9f, 0x47a1, \
      26                 :     { 0x99, 0x22, 0x55, 0xa1, 0xad, 0x55, 0x15, 0xfb }}
      27                 : 
      28             965 : class NS_NO_VTABLE NS_SCRIPTABLE xpcIJSModuleLoader : public nsISupports {
      29                 :  public: 
      30                 : 
      31                 :   NS_DECLARE_STATIC_IID_ACCESSOR(XPCIJSMODULELOADER_IID)
      32                 : 
      33                 :   /* [implicit_jscontext,optional_argc] jsval import (in AUTF8String aResourceURI, [optional] in jsval targetObj); */
      34                 :   NS_SCRIPTABLE NS_IMETHOD Import(const nsACString & aResourceURI, const JS::Value & targetObj, JSContext* cx, PRUint8 _argc, JS::Value *_retval NS_OUTPARAM) = 0;
      35                 : 
      36                 :   /* [noscript] JSObjectPtr importInto (in AUTF8String aResourceURI, in JSObjectPtr targetObj, in nsAXPCNativeCallContextPtr cc); */
      37                 :   NS_IMETHOD ImportInto(const nsACString & aResourceURI, JSObject *targetObj, nsAXPCNativeCallContext *cc, JSObject **_retval NS_OUTPARAM) = 0;
      38                 : 
      39                 :   /* void unload (in AUTF8String aResourceURI); */
      40                 :   NS_SCRIPTABLE NS_IMETHOD Unload(const nsACString & aResourceURI) = 0;
      41                 : 
      42                 : };
      43                 : 
      44                 :   NS_DEFINE_STATIC_IID_ACCESSOR(xpcIJSModuleLoader, XPCIJSMODULELOADER_IID)
      45                 : 
      46                 : /* Use this macro when declaring classes that implement this interface. */
      47                 : #define NS_DECL_XPCIJSMODULELOADER \
      48                 :   NS_SCRIPTABLE NS_IMETHOD Import(const nsACString & aResourceURI, const JS::Value & targetObj, JSContext* cx, PRUint8 _argc, JS::Value *_retval NS_OUTPARAM); \
      49                 :   NS_IMETHOD ImportInto(const nsACString & aResourceURI, JSObject *targetObj, nsAXPCNativeCallContext *cc, JSObject **_retval NS_OUTPARAM); \
      50                 :   NS_SCRIPTABLE NS_IMETHOD Unload(const nsACString & aResourceURI); 
      51                 : 
      52                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      53                 : #define NS_FORWARD_XPCIJSMODULELOADER(_to) \
      54                 :   NS_SCRIPTABLE NS_IMETHOD Import(const nsACString & aResourceURI, const JS::Value & targetObj, JSContext* cx, PRUint8 _argc, JS::Value *_retval NS_OUTPARAM) { return _to Import(aResourceURI, targetObj, cx, _argc, _retval); } \
      55                 :   NS_IMETHOD ImportInto(const nsACString & aResourceURI, JSObject *targetObj, nsAXPCNativeCallContext *cc, JSObject **_retval NS_OUTPARAM) { return _to ImportInto(aResourceURI, targetObj, cc, _retval); } \
      56                 :   NS_SCRIPTABLE NS_IMETHOD Unload(const nsACString & aResourceURI) { return _to Unload(aResourceURI); } 
      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_XPCIJSMODULELOADER(_to) \
      60                 :   NS_SCRIPTABLE NS_IMETHOD Import(const nsACString & aResourceURI, const JS::Value & targetObj, JSContext* cx, PRUint8 _argc, JS::Value *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Import(aResourceURI, targetObj, cx, _argc, _retval); } \
      61                 :   NS_IMETHOD ImportInto(const nsACString & aResourceURI, JSObject *targetObj, nsAXPCNativeCallContext *cc, JSObject **_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ImportInto(aResourceURI, targetObj, cc, _retval); } \
      62                 :   NS_SCRIPTABLE NS_IMETHOD Unload(const nsACString & aResourceURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->Unload(aResourceURI); } 
      63                 : 
      64                 : #if 0
      65                 : /* Use the code below as a template for the implementation class for this interface. */
      66                 : 
      67                 : /* Header file */
      68                 : class _MYCLASS_ : public xpcIJSModuleLoader
      69                 : {
      70                 : public:
      71                 :   NS_DECL_ISUPPORTS
      72                 :   NS_DECL_XPCIJSMODULELOADER
      73                 : 
      74                 :   _MYCLASS_();
      75                 : 
      76                 : private:
      77                 :   ~_MYCLASS_();
      78                 : 
      79                 : protected:
      80                 :   /* additional members */
      81                 : };
      82                 : 
      83                 : /* Implementation file */
      84                 : NS_IMPL_ISUPPORTS1(_MYCLASS_, xpcIJSModuleLoader)
      85                 : 
      86                 : _MYCLASS_::_MYCLASS_()
      87                 : {
      88                 :   /* member initializers and constructor code */
      89                 : }
      90                 : 
      91                 : _MYCLASS_::~_MYCLASS_()
      92                 : {
      93                 :   /* destructor code */
      94                 : }
      95                 : 
      96                 : /* [implicit_jscontext,optional_argc] jsval import (in AUTF8String aResourceURI, [optional] in jsval targetObj); */
      97                 : NS_IMETHODIMP _MYCLASS_::Import(const nsACString & aResourceURI, const JS::Value & targetObj, JSContext* cx, PRUint8 _argc, JS::Value *_retval NS_OUTPARAM)
      98                 : {
      99                 :     return NS_ERROR_NOT_IMPLEMENTED;
     100                 : }
     101                 : 
     102                 : /* [noscript] JSObjectPtr importInto (in AUTF8String aResourceURI, in JSObjectPtr targetObj, in nsAXPCNativeCallContextPtr cc); */
     103                 : NS_IMETHODIMP _MYCLASS_::ImportInto(const nsACString & aResourceURI, JSObject *targetObj, nsAXPCNativeCallContext *cc, JSObject **_retval NS_OUTPARAM)
     104                 : {
     105                 :     return NS_ERROR_NOT_IMPLEMENTED;
     106                 : }
     107                 : 
     108                 : /* void unload (in AUTF8String aResourceURI); */
     109                 : NS_IMETHODIMP _MYCLASS_::Unload(const nsACString & aResourceURI)
     110                 : {
     111                 :     return NS_ERROR_NOT_IMPLEMENTED;
     112                 : }
     113                 : 
     114                 : /* End of implementation class template. */
     115                 : #endif
     116                 : 
     117                 : 
     118                 : #endif /* __gen_xpcIJSModuleLoader_h__ */

Generated by: LCOV version 1.7