1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include
"nsISupports.idl"
9 * This defines the interface for a test object.
13 [scriptable
, uuid(6a2f918e
-cda2
-11e8
-bc9a
-a34c716d1f2a
)]
14 interface nsIXPCTestCEnums
: nsISupports
{
15 const long testConst
= 1;
17 cenum testFlagsExplicit
: 8 {
18 shouldBe1Explicit
= 1,
19 shouldBe2Explicit
= 2,
20 shouldBe4Explicit
= 4,
21 shouldBe8Explicit
= 8,
22 shouldBe12Explicit
= shouldBe4Explicit | shouldBe8Explicit
,
25 cenum testFlagsImplicit
: 8 {
30 shouldBe5Implicit
= 5,
32 shouldBe2AgainImplicit
= 2,
33 shouldBe3AgainImplicit
,
36 void testCEnumInput
(in nsIXPCTestCEnums_testFlagsExplicit abc
);
38 nsIXPCTestCEnums_testFlagsExplicit testCEnumOutput
();