X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=binary%2Fsrc%2FdactylIUtils.idl;fp=binary%2Fsrc%2FdactylIUtils.idl;h=36adf3435d40e0c7bbfa022231a6c2eccd9897e7;hb=9044153cb63835e39b9de8ec4ade237c03e3888a;hp=0000000000000000000000000000000000000000;hpb=70740024f9c028c1fd63e1a1850ab062ff956054;p=dactyl.git diff --git a/binary/src/dactylIUtils.idl b/binary/src/dactylIUtils.idl new file mode 100644 index 0000000..36adf34 --- /dev/null +++ b/binary/src/dactylIUtils.idl @@ -0,0 +1,38 @@ +/* Public Domain */ + +#include "nsISupports.idl" +#include "nsIDOMElement.idl" + +%{C++ +#include "jsapi.h" +%} + + +[scriptable, uuid(d8ef4492-8f4a-4f5d-8f19-1d71f7f895ed)] +interface dactylIUtils : nsISupports +{ + const PRUint32 DIRECTION_HORIZONTAL = 1 << 0; + const PRUint32 DIRECTION_VERTICAL = 1 << 1; + + [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); + + PRUint32 getScrollable(in nsIDOMElement element); + + void loadSubScript (in wstring url + /* [optional] in jsval context, */ + /* [optional] in wstring charset */); +}; + +/* vim:se sts=4 sw=4 et ft=idl: */