1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/bindings/test/TestCImplementedInterface.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,44 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this file, 1.7 + * You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + */ 1.9 + 1.10 +#ifndef TestCImplementedInterface_h 1.11 +#define TestCImplementedInterface_h 1.12 + 1.13 +#include "../TestJSImplGenBinding.h" 1.14 + 1.15 +class nsPIDOMWindow; 1.16 + 1.17 +namespace mozilla { 1.18 +namespace dom { 1.19 + 1.20 +class TestCImplementedInterface : public TestJSImplInterface 1.21 +{ 1.22 +public: 1.23 + TestCImplementedInterface(JS::Handle<JSObject*> aJSImpl, 1.24 + nsPIDOMWindow* aParent) 1.25 + : TestJSImplInterface(aJSImpl, aParent) 1.26 + {} 1.27 +}; 1.28 + 1.29 +class TestCImplementedInterface2 : public nsISupports, 1.30 + public nsWrapperCache 1.31 +{ 1.32 +public: 1.33 + TestCImplementedInterface2(nsPIDOMWindow* aParent) 1.34 + {} 1.35 + NS_DECL_CYCLE_COLLECTING_ISUPPORTS 1.36 + NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(TestCImplementedInterface2) 1.37 + 1.38 + // We need a GetParentObject to make binding codegen happy 1.39 + nsISupports* GetParentObject(); 1.40 +}; 1.41 + 1.42 + 1.43 + 1.44 +} // namespace dom 1.45 +} // namespace mozilla 1.46 + 1.47 +#endif // TestCImplementedInterface_h