michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- michael@0: * vim: set ts=8 sts=4 et sw=4 tw=99: michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: // This file imports some common JS:: names into the js namespace so we can michael@0: // make unqualified references to them. michael@0: michael@0: #ifndef NamespaceImports_h michael@0: #define NamespaceImports_h michael@0: michael@0: // These includes are needed these for some typedefs (e.g. HandleValue) and michael@0: // functions (e.g. NullValue())... michael@0: #include "js/CallNonGenericMethod.h" michael@0: #include "js/TypeDecls.h" michael@0: #include "js/Value.h" michael@0: michael@0: // ... but we do forward declarations of the structs and classes not pulled in michael@0: // by the headers included above. michael@0: namespace JS { michael@0: michael@0: class Latin1CharsZ; michael@0: class ConstTwoByteChars; michael@0: class TwoByteChars; michael@0: michael@0: class AutoFunctionVector; michael@0: class AutoIdVector; michael@0: class AutoObjectVector; michael@0: class AutoScriptVector; michael@0: class AutoValueVector; michael@0: michael@0: class AutoIdArray; michael@0: michael@0: class AutoGCRooter; michael@0: template class AutoVectorRooter; michael@0: template class AutoHashMapRooter; michael@0: template class AutoHashSetRooter; michael@0: michael@0: class SourceBufferHolder; michael@0: michael@0: class HandleValueArray; michael@0: michael@0: } michael@0: michael@0: // Do the importing. michael@0: namespace js { michael@0: michael@0: using JS::Value; michael@0: using JS::BooleanValue; michael@0: using JS::DoubleValue; michael@0: using JS::Float32Value; michael@0: using JS::Int32Value; michael@0: using JS::IsPoisonedValue; michael@0: using JS::MagicValue; michael@0: using JS::NullValue; michael@0: using JS::NumberValue; michael@0: using JS::ObjectOrNullValue; michael@0: using JS::ObjectValue; michael@0: using JS::PrivateUint32Value; michael@0: using JS::PrivateValue; michael@0: using JS::StringValue; michael@0: using JS::UndefinedValue; michael@0: michael@0: using JS::IsPoisonedPtr; michael@0: michael@0: using JS::Latin1CharsZ; michael@0: using JS::ConstTwoByteChars; michael@0: using JS::TwoByteChars; michael@0: michael@0: using JS::AutoFunctionVector; michael@0: using JS::AutoIdVector; michael@0: using JS::AutoObjectVector; michael@0: using JS::AutoScriptVector; michael@0: using JS::AutoValueVector; michael@0: michael@0: using JS::AutoIdArray; michael@0: michael@0: using JS::AutoGCRooter; michael@0: using JS::AutoHashMapRooter; michael@0: using JS::AutoHashSetRooter; michael@0: using JS::AutoVectorRooter; michael@0: michael@0: using JS::CallArgs; michael@0: using JS::CallNonGenericMethod; michael@0: using JS::CallReceiver; michael@0: using JS::CompileOptions; michael@0: using JS::IsAcceptableThis; michael@0: using JS::NativeImpl; michael@0: using JS::OwningCompileOptions; michael@0: using JS::ReadOnlyCompileOptions; michael@0: using JS::SourceBufferHolder; michael@0: michael@0: using JS::Rooted; michael@0: using JS::RootedFunction; michael@0: using JS::RootedId; michael@0: using JS::RootedObject; michael@0: using JS::RootedScript; michael@0: using JS::RootedString; michael@0: using JS::RootedValue; michael@0: michael@0: using JS::PersistentRooted; michael@0: using JS::PersistentRootedFunction; michael@0: using JS::PersistentRootedId; michael@0: using JS::PersistentRootedObject; michael@0: using JS::PersistentRootedScript; michael@0: using JS::PersistentRootedString; michael@0: using JS::PersistentRootedValue; michael@0: michael@0: using JS::Handle; michael@0: using JS::HandleFunction; michael@0: using JS::HandleId; michael@0: using JS::HandleObject; michael@0: using JS::HandleScript; michael@0: using JS::HandleString; michael@0: using JS::HandleValue; michael@0: michael@0: using JS::MutableHandle; michael@0: using JS::MutableHandleFunction; michael@0: using JS::MutableHandleId; michael@0: using JS::MutableHandleObject; michael@0: using JS::MutableHandleScript; michael@0: using JS::MutableHandleString; michael@0: using JS::MutableHandleValue; michael@0: michael@0: using JS::NullHandleValue; michael@0: using JS::UndefinedHandleValue; michael@0: michael@0: using JS::HandleValueArray; michael@0: michael@0: using JS::Zone; michael@0: michael@0: } /* namespace js */ michael@0: michael@0: #endif /* NamespaceImports_h */