mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-29 07:02:27 +01:00
Add first crude binary module implementation.
This commit is contained in:
30
binary/src/dactylIUtils.idl
Normal file
30
binary/src/dactylIUtils.idl
Normal file
@@ -0,0 +1,30 @@
|
||||
/* Public Domain */
|
||||
|
||||
#include "nsISupports.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);
|
||||
|
||||
[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: */
|
||||
Reference in New Issue
Block a user