Bug 1941046 - Part 4: Send a callback request for impression and clicks of MARS Top...
[gecko.git] / dom / bindings / test / TestCImplementedInterface.h
blob6512911bd37c320271755a482a7b2e240b261a31
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 */
8 #ifndef TestCImplementedInterface_h
9 #define TestCImplementedInterface_h
11 #include "../TestJSImplGenBinding.h"
13 namespace mozilla {
14 namespace dom {
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) {}
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)
30 // We need a GetParentObject to make binding codegen happy
31 nsISupports* GetParentObject();
34 } // namespace dom
35 } // namespace mozilla
37 #endif // TestCImplementedInterface_h