xpcom/tests/TestScriptable.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xpcom/tests/TestScriptable.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,21 @@
     1.4 +
     1.5 +[scriptable, uuid(76d74662-0eae-404c-9d1f-697c0e321c0a)]
     1.6 +interface testScriptableInterface {
     1.7 +  readonly attribute long scriptable_attr1;
     1.8 +  attribute long scriptable_attr2;
     1.9 +  [noscript] readonly attribute long notscriptable_attr1;
    1.10 +  [noscript] attribute long notscriptable_attr2;
    1.11 +
    1.12 +  void scriptable_method1();
    1.13 +  [noscript] void notscriptable_method1();
    1.14 +  [notxpcom] void notscriptable_method2();
    1.15 +  [noscript, notxpcom] void notscriptable_method3();
    1.16 +};
    1.17 +
    1.18 +[uuid(76d74662-0eae-404c-9d1f-697c0e321c0a)]
    1.19 +interface testNotscriptableInterface {
    1.20 +  readonly attribute long notscriptable_attr1;
    1.21 +  attribute long notscriptable_attr2;
    1.22 +
    1.23 +  void notscriptable_method1();
    1.24 +};

mercurial