TestCImplementedInterface.h (1245B)
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/. 6 */ 7 8 #ifndef TestCImplementedInterface_h 9 #define TestCImplementedInterface_h 10 11 #include "../TestJSImplGenBinding.h" 12 13 namespace mozilla { 14 namespace dom { 15 16 class TestCImplementedInterface : public TestJSImplInterface { 17 public: 18 TestCImplementedInterface(JS::Handle<JSObject*> aJSImpl, 19 JS::Handle<JSObject*> aJSImplGlobal, 20 nsIGlobalObject* aParent) 21 : TestJSImplInterface(aJSImpl, aJSImplGlobal, aParent) {} 22 }; 23 24 class TestCImplementedInterface2 : public nsISupports, public nsWrapperCache { 25 public: 26 explicit TestCImplementedInterface2(nsIGlobalObject* aParent) {} 27 NS_DECL_CYCLE_COLLECTING_ISUPPORTS 28 NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(TestCImplementedInterface2) 29 30 // We need a GetParentObject to make binding codegen happy 31 nsISupports* GetParentObject(); 32 }; 33 34 } // namespace dom 35 } // namespace mozilla 36 37 #endif // TestCImplementedInterface_h