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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gecko-sdk/include/md/sunos4.h ('k') | gecko-sdk/include/mozilla-config.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /*
2 * 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
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
25 class NS_NO_VTABLE mozIJSSubScriptLoader : public nsISupports {
26 public:
27
28 NS_DEFINE_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_IMETHOD LoadSubScript(const PRUnichar *url) = 0;
42
43 };
44
45 /* Use this macro when declaring classes that implement this interface. */
46 #define NS_DECL_MOZIJSSUBSCRIPTLOADER \
47 NS_IMETHOD LoadSubScript(const PRUnichar *url);
48
49 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object. */
50 #define NS_FORWARD_MOZIJSSUBSCRIPTLOADER(_to) \
51 NS_IMETHOD LoadSubScript(const PRUnichar *url) { return _to LoadSubScript(url) ; }
52
53 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object in a safe way. */
54 #define NS_FORWARD_SAFE_MOZIJSSUBSCRIPTLOADER(_to) \
55 NS_IMETHOD LoadSubScript(const PRUnichar *url) { return !_to ? NS_ERROR_NULL_P OINTER : _to->LoadSubScript(url); }
56
57 #if 0
58 /* Use the code below as a template for the implementation class for this interf ace. */
59
60 /* Header file */
61 class _MYCLASS_ : public mozIJSSubScriptLoader
62 {
63 public:
64 NS_DECL_ISUPPORTS
65 NS_DECL_MOZIJSSUBSCRIPTLOADER
66
67 _MYCLASS_();
68
69 private:
70 ~_MYCLASS_();
71
72 protected:
73 /* additional members */
74 };
75
76 /* Implementation file */
77 NS_IMPL_ISUPPORTS1(_MYCLASS_, mozIJSSubScriptLoader)
78
79 _MYCLASS_::_MYCLASS_()
80 {
81 /* member initializers and constructor code */
82 }
83
84 _MYCLASS_::~_MYCLASS_()
85 {
86 /* destructor code */
87 }
88
89 /* void loadSubScript (in wstring url); */
90 NS_IMETHODIMP _MYCLASS_::LoadSubScript(const PRUnichar *url)
91 {
92 return NS_ERROR_NOT_IMPLEMENTED;
93 }
94
95 /* End of implementation class template. */
96 #endif
97
98
99 #endif /* __gen_mozIJSSubScriptLoader_h__ */
OLDNEW
« 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