DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/xpcom/tests/NotXPCOMTest.idl
 */

#ifndef __gen_NotXPCOMTest_h__
#define __gen_NotXPCOMTest_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#include "js/GCAnnotations.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif

/* starting interface:    ScriptableOK */
#define SCRIPTABLEOK_IID_STR "93142a4f-e4cf-424a-b833-e638f87d2607"

#define SCRIPTABLEOK_IID \
  {0x93142a4f, 0xe4cf, 0x424a, \
    { 0xb8, 0x33, 0xe6, 0x38, 0xf8, 0x7d, 0x26, 0x07 }}

class NS_NO_VTABLE ScriptableOK : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(SCRIPTABLEOK_IID)

  /* void method1 (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Method1(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(ScriptableOK, SCRIPTABLEOK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_SCRIPTABLEOK \
  NS_IMETHOD Method1(void) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_SCRIPTABLEOK \
  nsresult Method1(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_SCRIPTABLEOK(_to) \
  NS_IMETHOD Method1(void) override { return _to Method1(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_SCRIPTABLEOK(_to) \
  NS_IMETHOD Method1(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Method1(); } 


/* starting interface:    ScriptableWithNotXPCOM */
#define SCRIPTABLEWITHNOTXPCOM_IID_STR "237d01a3-771e-4c6e-adf9-c97f9aab2950"

#define SCRIPTABLEWITHNOTXPCOM_IID \
  {0x237d01a3, 0x771e, 0x4c6e, \
    { 0xad, 0xf9, 0xc9, 0x7f, 0x9a, 0xab, 0x29, 0x50 }}

class NS_NO_VTABLE ScriptableWithNotXPCOM : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(SCRIPTABLEWITHNOTXPCOM_IID)

  /* [notxpcom] void method2 (); */
  NS_IMETHOD_(void) Method2(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(ScriptableWithNotXPCOM, SCRIPTABLEWITHNOTXPCOM_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_SCRIPTABLEWITHNOTXPCOM \
  NS_IMETHOD_(void) Method2(void) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_SCRIPTABLEWITHNOTXPCOM \
  nsresult_(void) Method2(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_SCRIPTABLEWITHNOTXPCOM(_to) \
  NS_IMETHOD_(void) Method2(void) override { return _to Method2(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_SCRIPTABLEWITHNOTXPCOM(_to) \
  NS_IMETHOD_(void) Method2(void) override; 


/* starting interface:    ScriptableWithNotXPCOMBase */
#define SCRIPTABLEWITHNOTXPCOMBASE_IID_STR "4f06ec60-3bb3-4712-ab18-b2b595285558"

#define SCRIPTABLEWITHNOTXPCOMBASE_IID \
  {0x4f06ec60, 0x3bb3, 0x4712, \
    { 0xab, 0x18, 0xb2, 0xb5, 0x95, 0x28, 0x55, 0x58 }}

class NS_NO_VTABLE ScriptableWithNotXPCOMBase : public ScriptableWithNotXPCOM {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(SCRIPTABLEWITHNOTXPCOMBASE_IID)

  /* void method3 (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Method3(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(ScriptableWithNotXPCOMBase, SCRIPTABLEWITHNOTXPCOMBASE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_SCRIPTABLEWITHNOTXPCOMBASE \
  NS_IMETHOD Method3(void) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_SCRIPTABLEWITHNOTXPCOMBASE \
  nsresult Method3(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_SCRIPTABLEWITHNOTXPCOMBASE(_to) \
  NS_IMETHOD Method3(void) override { return _to Method3(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_SCRIPTABLEWITHNOTXPCOMBASE(_to) \
  NS_IMETHOD Method3(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Method3(); } 


#endif /* __gen_NotXPCOMTest_h__ */