Bug 1915045 Ensure decode tasks are scheduled on BufferingState::Enter() r=media...
[gecko.git] / js / xpconnect / tests / idl / xpctest_cenums.idl
blob70b7f8fae7c51de2e3199a8af28f1224efbfbafc
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"
8 /*
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 {
26 shouldBe0Implicit,
27 shouldBe1Implicit,
28 shouldBe2Implicit,
29 shouldBe3Implicit,
30 shouldBe5Implicit = 5,
31 shouldBe6Implicit,
32 shouldBe2AgainImplicit = 2,
33 shouldBe3AgainImplicit,
36 void testCEnumInput(in nsIXPCTestCEnums_testFlagsExplicit abc);
38 nsIXPCTestCEnums_testFlagsExplicit testCEnumOutput();