|
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 */ |
|
6 |
|
7 #ifndef TestCImplementedInterface_h |
|
8 #define TestCImplementedInterface_h |
|
9 |
|
10 #include "../TestJSImplGenBinding.h" |
|
11 |
|
12 class nsPIDOMWindow; |
|
13 |
|
14 namespace mozilla { |
|
15 namespace dom { |
|
16 |
|
17 class TestCImplementedInterface : public TestJSImplInterface |
|
18 { |
|
19 public: |
|
20 TestCImplementedInterface(JS::Handle<JSObject*> aJSImpl, |
|
21 nsPIDOMWindow* aParent) |
|
22 : TestJSImplInterface(aJSImpl, aParent) |
|
23 {} |
|
24 }; |
|
25 |
|
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) |
|
34 |
|
35 // We need a GetParentObject to make binding codegen happy |
|
36 nsISupports* GetParentObject(); |
|
37 }; |
|
38 |
|
39 |
|
40 |
|
41 } // namespace dom |
|
42 } // namespace mozilla |
|
43 |
|
44 #endif // TestCImplementedInterface_h |