PageRenderTime 223ms CodeModel.GetById 120ms app.highlight 3ms RepoModel.GetById 98ms 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
  5#ifndef __gen_mozIJSSubScriptLoader_h__
  6#define __gen_mozIJSSubScriptLoader_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
 18/* starting interface:    mozIJSSubScriptLoader */
 19#define MOZIJSSUBSCRIPTLOADER_IID_STR "8792d77e-1dd2-11b2-ac7f-9bc9be4f2916"
 20
 21#define MOZIJSSUBSCRIPTLOADER_IID \
 22  {0x8792d77e, 0x1dd2, 0x11b2, \
 23    { 0xac, 0x7f, 0x9b, 0xc9, 0xbe, 0x4f, 0x29, 0x16 }}
 24
 25class NS_NO_VTABLE NS_SCRIPTABLE mozIJSSubScriptLoader : public nsISupports {
 26 public: 
 27
 28  NS_DECLARE_STATIC_IID_ACCESSOR(MOZIJSSUBSCRIPTLOADER_IID)
 29
 30  /**
 31     * This method should only be called from JS!
 32     * In JS, the signature looks like:
 33     * rv loadSubScript (url [, obj]);
 34     * @param url the url if the sub-script, it MUST be either a file:,
 35     *            resource:, or chrome: url, and MUST be local.
 36     * @param obj an optional object to evaluate the script onto, it
 37     *            defaults to the global object of the caller.
 38     * @retval rv the value returned by the sub-script
 39     */
 40  /* void loadSubScript (in wstring url); */
 41  NS_SCRIPTABLE NS_IMETHOD LoadSubScript(const PRUnichar *url) = 0;
 42
 43};
 44
 45  NS_DEFINE_STATIC_IID_ACCESSOR(mozIJSSubScriptLoader, MOZIJSSUBSCRIPTLOADER_IID)
 46
 47/* Use this macro when declaring classes that implement this interface. */
 48#define NS_DECL_MOZIJSSUBSCRIPTLOADER \
 49  NS_SCRIPTABLE NS_IMETHOD LoadSubScript(const PRUnichar *url); 
 50
 51/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 52#define NS_FORWARD_MOZIJSSUBSCRIPTLOADER(_to) \
 53  NS_SCRIPTABLE NS_IMETHOD LoadSubScript(const PRUnichar *url) { return _to LoadSubScript(url); } 
 54
 55/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 56#define NS_FORWARD_SAFE_MOZIJSSUBSCRIPTLOADER(_to) \
 57  NS_SCRIPTABLE NS_IMETHOD LoadSubScript(const PRUnichar *url) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadSubScript(url); } 
 58
 59#if 0
 60/* Use the code below as a template for the implementation class for this interface. */
 61
 62/* Header file */
 63class _MYCLASS_ : public mozIJSSubScriptLoader
 64{
 65public:
 66  NS_DECL_ISUPPORTS
 67  NS_DECL_MOZIJSSUBSCRIPTLOADER
 68
 69  _MYCLASS_();
 70
 71private:
 72  ~_MYCLASS_();
 73
 74protected:
 75  /* additional members */
 76};
 77
 78/* Implementation file */
 79NS_IMPL_ISUPPORTS1(_MYCLASS_, mozIJSSubScriptLoader)
 80
 81_MYCLASS_::_MYCLASS_()
 82{
 83  /* member initializers and constructor code */
 84}
 85
 86_MYCLASS_::~_MYCLASS_()
 87{
 88  /* destructor code */
 89}
 90
 91/* void loadSubScript (in wstring url); */
 92NS_IMETHODIMP _MYCLASS_::LoadSubScript(const PRUnichar *url)
 93{
 94    return NS_ERROR_NOT_IMPLEMENTED;
 95}
 96
 97/* End of implementation class template. */
 98#endif
 99
100
101#endif /* __gen_mozIJSSubScriptLoader_h__ */