mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
[not part of build] 2-way scripting example interface.
This commit is contained in:
parent
cfb8bece19
commit
49d3ea3722
28
modules/plugin/samples/4x-scriptable/acmeIScriptObject.idl
Normal file
28
modules/plugin/samples/4x-scriptable/acmeIScriptObject.idl
Normal file
@ -0,0 +1,28 @@
|
||||
/*
|
||||
acmeIScriptObject.idl
|
||||
*/
|
||||
|
||||
#include "nsISupports.idl"
|
||||
|
||||
[scriptable, uuid(f78d64e0-1dd1-11b2-a9b4-ae998c529d3e)]
|
||||
interface acmeIScriptObject : nsISupports {
|
||||
acmeIScriptObject getProperty(in string name);
|
||||
void setProperty(in string name, in string value);
|
||||
|
||||
/**
|
||||
* Evaluates a string expression.
|
||||
*/
|
||||
acmeIScriptObject evaluate(in string expression);
|
||||
|
||||
/**
|
||||
* Conversions.
|
||||
*/
|
||||
string toString();
|
||||
double toNumber();
|
||||
|
||||
/**
|
||||
* Constructors.
|
||||
*/
|
||||
acmeIScriptObject fromString(in string value);
|
||||
acmeIScriptObject fromNumber(in double value);
|
||||
};
|
Loading…
Reference in New Issue
Block a user