Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Unified Diff: gecko-sdk/include/mozIJSSubScriptLoader.h

Issue 20346: Version 1.8 of gecko-sdk. Downloaded from here:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gecko-sdk/include/md/sunos4.h ('k') | gecko-sdk/include/mozilla-config.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gecko-sdk/include/mozIJSSubScriptLoader.h
===================================================================
--- gecko-sdk/include/mozIJSSubScriptLoader.h (revision 0)
+++ gecko-sdk/include/mozIJSSubScriptLoader.h (revision 0)
@@ -0,0 +1,99 @@
+/*
+ * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/builds/tinderbox/XR-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/js/src/xpconnect/idl/mozIJSSubScriptLoader.idl
+ */
+
+#ifndef __gen_mozIJSSubScriptLoader_h__
+#define __gen_mozIJSSubScriptLoader_h__
+
+
+#ifndef __gen_nsISupports_h__
+#include "nsISupports.h"
+#endif
+
+/* For IDL files that don't want to include root IDL files. */
+#ifndef NS_NO_VTABLE
+#define NS_NO_VTABLE
+#endif
+
+/* starting interface: mozIJSSubScriptLoader */
+#define MOZIJSSUBSCRIPTLOADER_IID_STR "8792d77e-1dd2-11b2-ac7f-9bc9be4f2916"
+
+#define MOZIJSSUBSCRIPTLOADER_IID \
+ {0x8792d77e, 0x1dd2, 0x11b2, \
+ { 0xac, 0x7f, 0x9b, 0xc9, 0xbe, 0x4f, 0x29, 0x16 }}
+
+class NS_NO_VTABLE mozIJSSubScriptLoader : public nsISupports {
+ public:
+
+ NS_DEFINE_STATIC_IID_ACCESSOR(MOZIJSSUBSCRIPTLOADER_IID)
+
+ /**
+ * This method should only be called from JS!
+ * In JS, the signature looks like:
+ * rv loadSubScript (url [, obj]);
+ * @param url the url if the sub-script, it MUST be either a file:,
+ * resource:, or chrome: url, and MUST be local.
+ * @param obj an optional object to evaluate the script onto, it
+ * defaults to the global object of the caller.
+ * @retval rv the value returned by the sub-script
+ */
+ /* void loadSubScript (in wstring url); */
+ NS_IMETHOD LoadSubScript(const PRUnichar *url) = 0;
+
+};
+
+/* Use this macro when declaring classes that implement this interface. */
+#define NS_DECL_MOZIJSSUBSCRIPTLOADER \
+ NS_IMETHOD LoadSubScript(const PRUnichar *url);
+
+/* Use this macro to declare functions that forward the behavior of this interface to another object. */
+#define NS_FORWARD_MOZIJSSUBSCRIPTLOADER(_to) \
+ NS_IMETHOD LoadSubScript(const PRUnichar *url) { return _to LoadSubScript(url); }
+
+/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
+#define NS_FORWARD_SAFE_MOZIJSSUBSCRIPTLOADER(_to) \
+ NS_IMETHOD LoadSubScript(const PRUnichar *url) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadSubScript(url); }
+
+#if 0
+/* Use the code below as a template for the implementation class for this interface. */
+
+/* Header file */
+class _MYCLASS_ : public mozIJSSubScriptLoader
+{
+public:
+ NS_DECL_ISUPPORTS
+ NS_DECL_MOZIJSSUBSCRIPTLOADER
+
+ _MYCLASS_();
+
+private:
+ ~_MYCLASS_();
+
+protected:
+ /* additional members */
+};
+
+/* Implementation file */
+NS_IMPL_ISUPPORTS1(_MYCLASS_, mozIJSSubScriptLoader)
+
+_MYCLASS_::_MYCLASS_()
+{
+ /* member initializers and constructor code */
+}
+
+_MYCLASS_::~_MYCLASS_()
+{
+ /* destructor code */
+}
+
+/* void loadSubScript (in wstring url); */
+NS_IMETHODIMP _MYCLASS_::LoadSubScript(const PRUnichar *url)
+{
+ return NS_ERROR_NOT_IMPLEMENTED;
+}
+
+/* End of implementation class template. */
+#endif
+
+
+#endif /* __gen_mozIJSSubScriptLoader_h__ */
Property changes on: gecko-sdk\include\mozIJSSubScriptLoader.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « gecko-sdk/include/md/sunos4.h ('k') | gecko-sdk/include/mozilla-config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698