PageRenderTime 38ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/gecko_api/include/mozIJSSubScriptLoader.h

http://firefox-mac-pdf.googlecode.com/
C Header | 101 lines | 48 code | 26 blank | 27 comment | 0 complexity | 51860eab95c49c0602c4176729a87b0b MD5 | raw file
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/js/src/xpconnect/idl/mozIJSSubScriptLoader.idl
  3. */
  4. #ifndef __gen_mozIJSSubScriptLoader_h__
  5. #define __gen_mozIJSSubScriptLoader_h__
  6. #ifndef __gen_nsISupports_h__
  7. #include "nsISupports.h"
  8. #endif
  9. /* For IDL files that don't want to include root IDL files. */
  10. #ifndef NS_NO_VTABLE
  11. #define NS_NO_VTABLE
  12. #endif
  13. /* starting interface: mozIJSSubScriptLoader */
  14. #define MOZIJSSUBSCRIPTLOADER_IID_STR "8792d77e-1dd2-11b2-ac7f-9bc9be4f2916"
  15. #define MOZIJSSUBSCRIPTLOADER_IID \
  16. {0x8792d77e, 0x1dd2, 0x11b2, \
  17. { 0xac, 0x7f, 0x9b, 0xc9, 0xbe, 0x4f, 0x29, 0x16 }}
  18. class NS_NO_VTABLE NS_SCRIPTABLE mozIJSSubScriptLoader : public nsISupports {
  19. public:
  20. NS_DECLARE_STATIC_IID_ACCESSOR(MOZIJSSUBSCRIPTLOADER_IID)
  21. /**
  22. * This method should only be called from JS!
  23. * In JS, the signature looks like:
  24. * rv loadSubScript (url [, obj]);
  25. * @param url the url if the sub-script, it MUST be either a file:,
  26. * resource:, or chrome: url, and MUST be local.
  27. * @param obj an optional object to evaluate the script onto, it
  28. * defaults to the global object of the caller.
  29. * @retval rv the value returned by the sub-script
  30. */
  31. /* void loadSubScript (in wstring url); */
  32. NS_SCRIPTABLE NS_IMETHOD LoadSubScript(const PRUnichar *url) = 0;
  33. };
  34. NS_DEFINE_STATIC_IID_ACCESSOR(mozIJSSubScriptLoader, MOZIJSSUBSCRIPTLOADER_IID)
  35. /* Use this macro when declaring classes that implement this interface. */
  36. #define NS_DECL_MOZIJSSUBSCRIPTLOADER \
  37. NS_SCRIPTABLE NS_IMETHOD LoadSubScript(const PRUnichar *url);
  38. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  39. #define NS_FORWARD_MOZIJSSUBSCRIPTLOADER(_to) \
  40. NS_SCRIPTABLE NS_IMETHOD LoadSubScript(const PRUnichar *url) { return _to LoadSubScript(url); }
  41. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  42. #define NS_FORWARD_SAFE_MOZIJSSUBSCRIPTLOADER(_to) \
  43. NS_SCRIPTABLE NS_IMETHOD LoadSubScript(const PRUnichar *url) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadSubScript(url); }
  44. #if 0
  45. /* Use the code below as a template for the implementation class for this interface. */
  46. /* Header file */
  47. class _MYCLASS_ : public mozIJSSubScriptLoader
  48. {
  49. public:
  50. NS_DECL_ISUPPORTS
  51. NS_DECL_MOZIJSSUBSCRIPTLOADER
  52. _MYCLASS_();
  53. private:
  54. ~_MYCLASS_();
  55. protected:
  56. /* additional members */
  57. };
  58. /* Implementation file */
  59. NS_IMPL_ISUPPORTS1(_MYCLASS_, mozIJSSubScriptLoader)
  60. _MYCLASS_::_MYCLASS_()
  61. {
  62. /* member initializers and constructor code */
  63. }
  64. _MYCLASS_::~_MYCLASS_()
  65. {
  66. /* destructor code */
  67. }
  68. /* void loadSubScript (in wstring url); */
  69. NS_IMETHODIMP _MYCLASS_::LoadSubScript(const PRUnichar *url)
  70. {
  71. return NS_ERROR_NOT_IMPLEMENTED;
  72. }
  73. /* End of implementation class template. */
  74. #endif
  75. #endif /* __gen_mozIJSSubScriptLoader_h__ */