зеркало из https://github.com/mozilla/gecko-dev.git
Bug 838178 - Remove dom/bindings/stubgenerator; r=ehsan
This commit is contained in:
Родитель
8eb9c85444
Коммит
6ae4d92261
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -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);
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -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"
|
||||
|
Загрузка…
Ссылка в новой задаче