1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
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 file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/.
8 #ifndef TestCImplementedInterface_h
9 #define TestCImplementedInterface_h
11 #include "../TestJSImplGenBinding.h"
16 class TestCImplementedInterface
: public TestJSImplInterface
{
18 TestCImplementedInterface(JS::Handle
<JSObject
*> aJSImpl
,
19 JS::Handle
<JSObject
*> aJSImplGlobal
,
20 nsIGlobalObject
* aParent
)
21 : TestJSImplInterface(aJSImpl
, aJSImplGlobal
, aParent
) {}
24 class TestCImplementedInterface2
: public nsISupports
, public nsWrapperCache
{
26 explicit TestCImplementedInterface2(nsIGlobalObject
* aParent
) {}
27 NS_DECL_CYCLE_COLLECTING_ISUPPORTS
28 NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(TestCImplementedInterface2
)
30 // We need a GetParentObject to make binding codegen happy
31 nsISupports
* GetParentObject();
35 } // namespace mozilla
37 #endif // TestCImplementedInterface_h