dom/bindings/test/TestCImplementedInterface.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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

mercurial