diff options
Diffstat (limited to 'src/components/script/dom/bindings/codegen/stubgenerator')
3 files changed, 0 insertions, 96 deletions
diff --git a/src/components/script/dom/bindings/codegen/stubgenerator/Skeleton.cpp b/src/components/script/dom/bindings/codegen/stubgenerator/Skeleton.cpp deleted file mode 100644 index dfa17d23400..00000000000 --- a/src/components/script/dom/bindings/codegen/stubgenerator/Skeleton.cpp +++ /dev/null @@ -1,40 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim:set ts=2 sw=2 sts=2 et cindent: */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -#include "Skeleton.h" -#include "mozilla/dom/SkeletonBinding.h" -#include "nsContentUtils.h" - -namespace mozilla { -namespace dom { - -NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE_0(Skeleton) -NS_IMPL_CYCLE_COLLECTING_ADDREF(Skeleton) -NS_IMPL_CYCLE_COLLECTING_RELEASE(Skeleton) -NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(Skeleton) - NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY - NS_INTERFACE_MAP_ENTRY(nsISupports) -NS_INTERFACE_MAP_END - -Skeleton::Skeleton() -{ - SetIsDOMBinding(); -} - -Skeleton::~Skeleton() -{ -} - -JSObject* -Skeleton::WrapObject(JSContext* aCx, JSObject* aScope, - bool* aTriedToWrap) -{ - return SkeletonBinding::Wrap(aCx, aScope, this, aTriedToWrap); -} - -} -} - diff --git a/src/components/script/dom/bindings/codegen/stubgenerator/Skeleton.h b/src/components/script/dom/bindings/codegen/stubgenerator/Skeleton.h deleted file mode 100644 index 286cff9af4a..00000000000 --- a/src/components/script/dom/bindings/codegen/stubgenerator/Skeleton.h +++ /dev/null @@ -1,40 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim:set ts=2 sw=2 sts=2 et cindent: */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -#pragma once - -#include "nsWrapperCache.h" -#include "nsCycleCollectionParticipant.h" -#include "mozilla/Attributes.h" - -struct JSContext; - -namespace mozilla { -namespace dom { - -class Skeleton MOZ_FINAL : public nsISupports, - public nsWrapperCache -{ -public: - Skeleton(); - ~Skeleton(); - - NS_DECL_CYCLE_COLLECTING_ISUPPORTS - NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(Skeleton) - - void* GetParentObject() const - { - // TODO: return something sensible here, and change the return type - return somethingSensible; - } - - virtual JSObject* WrapObject(JSContext* aCx, JSObject* aScope, - bool* aTriedToWrap); -}; - -} -} - diff --git a/src/components/script/dom/bindings/codegen/stubgenerator/generate.sh b/src/components/script/dom/bindings/codegen/stubgenerator/generate.sh deleted file mode 100644 index 52577f6f42f..00000000000 --- a/src/components/script/dom/bindings/codegen/stubgenerator/generate.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -# This script creates a skeleton implementation for a C++ class which -# implements a Web IDL interface. - -# This script is released into the public domain. - -if [ -z "$1" ]; then - echo usage: ./generate.sh ClassName - exit 1 -fi - -expression="s/Skeleton/$1/g" - -sed "$expression" < Skeleton.h > "$1.h" -sed "$expression" < Skeleton.cpp > "$1.cpp" - |