js/xpconnect/tests/idl/xpctest_attributes.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/xpconnect/tests/idl/xpctest_attributes.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
     1.5 + *
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#include "nsISupports.idl"
    1.11 +/*
    1.12 + *	This defines the interface for a test object.
    1.13 + *
    1.14 + */
    1.15 +
    1.16 +[scriptable, uuid(42fbd9f6-b12d-47ef-b7a1-02d73c11fe53)]
    1.17 +interface nsIXPCTestObjectReadOnly : nsISupports {
    1.18 +	readonly attribute string  strReadOnly;
    1.19 +	readonly attribute boolean boolReadOnly;
    1.20 +	readonly attribute short   shortReadOnly;
    1.21 +	readonly attribute long    longReadOnly;
    1.22 +	readonly attribute float   floatReadOnly;
    1.23 +	readonly attribute char    charReadOnly;
    1.24 +	readonly attribute PRTime  timeReadOnly;
    1.25 +};
    1.26 +
    1.27 +[scriptable, uuid(f07529b0-a479-4954-aba5-ab3142c6b1cb)]
    1.28 +interface nsIXPCTestObjectReadWrite : nsISupports {
    1.29 +	attribute string  stringProperty;
    1.30 +	attribute boolean booleanProperty;
    1.31 +	attribute short   shortProperty;
    1.32 +	attribute long    longProperty;
    1.33 +	attribute float   floatProperty;
    1.34 +	attribute char    charProperty;
    1.35 +	attribute PRTime  timeProperty;
    1.36 +};

mercurial