Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/.
5 */
7 #ifndef TestCImplementedInterface_h
8 #define TestCImplementedInterface_h
10 #include "../TestJSImplGenBinding.h"
12 class nsPIDOMWindow;
14 namespace mozilla {
15 namespace dom {
17 class TestCImplementedInterface : public TestJSImplInterface
18 {
19 public:
20 TestCImplementedInterface(JS::Handle<JSObject*> aJSImpl,
21 nsPIDOMWindow* aParent)
22 : TestJSImplInterface(aJSImpl, aParent)
23 {}
24 };
26 class TestCImplementedInterface2 : public nsISupports,
27 public nsWrapperCache
28 {
29 public:
30 TestCImplementedInterface2(nsPIDOMWindow* aParent)
31 {}
32 NS_DECL_CYCLE_COLLECTING_ISUPPORTS
33 NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(TestCImplementedInterface2)
35 // We need a GetParentObject to make binding codegen happy
36 nsISupports* GetParentObject();
37 };
41 } // namespace dom
42 } // namespace mozilla
44 #endif // TestCImplementedInterface_h