summaryrefslogtreecommitdiff
path: root/binary/src/dactylIUtils.idl
blob: 0a1aa9ae3f4516a7f34f36690c5e430389afd1fc (plain)
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
/* Public Domain */

#include "nsISupports.idl"
#include "nsIDOMElement.idl"

%{C++
#include "jsapi.h"
%}


[scriptable, uuid(29d1c61f-5959-42b3-8a13-4b473b2b47bf)]
interface dactylIUtils : nsISupports
{
    [implicit_jscontext]
    jsval createGlobal();

    [implicit_jscontext]
    jsval evalInContext(in AString source,
                        in jsval target,
                        [optional] in ACString filename,
                        [optional] in PRInt32 lineNumber);

    void createContents(in nsIDOMElement element);

    [implicit_jscontext]
    jsval getGlobalForObject(in jsval object);

    void loadSubScript (in wstring url
                        /* [optional] in jsval context, */
                        /* [optional] in wstring charset */);
};

/* vim:se sts=4 sw=4 et ft=idl: */