]> git.donarmstrong.com Git - dactyl.git/blob - binary/src/dactylIUtils.idl
Import 1.0rc1 supporting Firefox up to 11.*
[dactyl.git] / binary / src / dactylIUtils.idl
1 /* Public Domain */
2
3 #include "nsISupports.idl"
4 #include "nsIDOMElement.idl"
5
6 %{C++
7 #include "jsapi.h"
8 %}
9
10
11 [scriptable, uuid(d8ef4492-8f4a-4f5d-8f19-1d71f7f895ed)]
12 interface dactylIUtils : nsISupports
13 {
14     const PRUint32 DIRECTION_HORIZONTAL = 1 << 0;
15     const PRUint32 DIRECTION_VERTICAL   = 1 << 1;
16
17     [implicit_jscontext]
18     jsval createGlobal();
19
20     [implicit_jscontext]
21     jsval evalInContext(in AString source,
22                         in jsval target,
23                         [optional] in ACString filename,
24                         [optional] in PRInt32 lineNumber);
25
26     void createContents(in nsIDOMElement element);
27
28     [implicit_jscontext]
29     jsval getGlobalForObject(in jsval object);
30
31     PRUint32 getScrollable(in nsIDOMElement element);
32
33     void loadSubScript (in wstring url
34                         /* [optional] in jsval context, */
35                         /* [optional] in wstring charset */);
36 };
37
38 /* vim:se sts=4 sw=4 et ft=idl: */