mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
90fdf91e10
- pointer style (4cbc8f697) - Bug 1173858 - Part 1: Add log module for layout. r=dholbert Add a log module for use by layout. An analog to NS_WARN_IF_FALSE is provided that has the same behavior as NS_WARN_IF_FALSE: it's debug only and emits a message prefixed with '[pid] WARNING', includes the condition being checked, file name and line number. (3aabc4c8f) - Bug 1173858 - Part 2: Use LAYOUT_WARN_IF_FALSE to silence some verbose layout warnings by default. r=dholbert (2a7efec8f) - Bug 1173858 - Part 3 - Reindent blocks that we've converted to use LAYOUT_WARN_IF_FALSE. r=dholbert (1460ed697) - pointer style (72daf612c) - Bug 1063147: Clarify comments about extensible strings. DONTBUILD r=jandem (036b9c9b4) - Bug 1145882 - Part 2/2 - Add -v and --version. r=evilpie (8b2d03df1) - Bug 1001975 - Enable -Wuninitialized warnings as errors. r=glandium (b74ec63bb) - Bug 1183480 - Return old timeout value in setScriptTimeout(), r=bholley. (295a9098a) - Bug 1155393 - Port the -Wno-inline-new-delete option from configure.in to the JS configure script; r=dholbert (a2ad6fafc) - ad bug component (94bcaa0a1) - NO BUG - Fix reStructuredText warnings (584b0b97a) - missing parts of Bug 895248 - Move --enable-stdcxx-compat in build/unix/mozconfig.linux (814b5d8fb) - style and namespaces (9f6bb417d) - Bug 1136046 - Increase maximum capacity of js::HashMap and HashSet r=luke (bf1f96bc6) - pointer style (5ac65529a) - pointer style (f5623e2b7) - Bug 1139570: JS GDB pretty-printer: Add a pretty-printer for js::InterpreterRegs. DONTBUILD r=ttromey (1c642e7fe)
80 lines
3.5 KiB
C++
80 lines
3.5 KiB
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
* vim: set ts=4 sw=4 et tw=80:
|
|
*
|
|
* 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/. */
|
|
|
|
#ifndef mozilla_jsipc_WrapperAnswer_h_
|
|
#define mozilla_jsipc_WrapperAnswer_h_
|
|
|
|
#include "JavaScriptShared.h"
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
class AutoJSAPI;
|
|
} // namespace dom
|
|
|
|
namespace jsipc {
|
|
|
|
class WrapperAnswer : public virtual JavaScriptShared
|
|
{
|
|
public:
|
|
explicit WrapperAnswer(JSRuntime* rt) : JavaScriptShared(rt) {}
|
|
|
|
bool RecvPreventExtensions(const ObjectId& objId, ReturnStatus* rs);
|
|
bool RecvGetPropertyDescriptor(const ObjectId& objId, const JSIDVariant& id,
|
|
ReturnStatus* rs,
|
|
PPropertyDescriptor* out);
|
|
bool RecvGetOwnPropertyDescriptor(const ObjectId& objId,
|
|
const JSIDVariant& id,
|
|
ReturnStatus* rs,
|
|
PPropertyDescriptor* out);
|
|
bool RecvDefineProperty(const ObjectId& objId, const JSIDVariant& id,
|
|
const PPropertyDescriptor& flags, ReturnStatus* rs);
|
|
bool RecvDelete(const ObjectId& objId, const JSIDVariant& id, ReturnStatus* rs);
|
|
|
|
bool RecvHas(const ObjectId& objId, const JSIDVariant& id,
|
|
ReturnStatus* rs, bool* foundp);
|
|
bool RecvHasOwn(const ObjectId& objId, const JSIDVariant& id,
|
|
ReturnStatus* rs, bool* foundp);
|
|
bool RecvGet(const ObjectId& objId, const JSVariant& receiverVar,
|
|
const JSIDVariant& id,
|
|
ReturnStatus* rs, JSVariant* result);
|
|
bool RecvSet(const ObjectId& objId, const JSIDVariant& id, const JSVariant& value,
|
|
const JSVariant& receiverVar, ReturnStatus* rs);
|
|
|
|
bool RecvIsExtensible(const ObjectId& objId, ReturnStatus* rs,
|
|
bool* result);
|
|
bool RecvCallOrConstruct(const ObjectId& objId, InfallibleTArray<JSParam>&& argv,
|
|
const bool& construct, ReturnStatus* rs, JSVariant* result,
|
|
nsTArray<JSParam>* outparams);
|
|
bool RecvHasInstance(const ObjectId& objId, const JSVariant& v, ReturnStatus* rs, bool* bp);
|
|
bool RecvGetBuiltinClass(const ObjectId& objId, ReturnStatus* rs,
|
|
uint32_t* classValue);
|
|
bool RecvIsArray(const ObjectId& objId, ReturnStatus* rs, uint32_t* ans);
|
|
bool RecvClassName(const ObjectId& objId, nsCString* result);
|
|
bool RecvGetPrototype(const ObjectId& objId, ReturnStatus* rs, ObjectOrNullVariant* result);
|
|
bool RecvRegExpToShared(const ObjectId& objId, ReturnStatus* rs, nsString* source, uint32_t* flags);
|
|
|
|
bool RecvGetPropertyKeys(const ObjectId& objId, const uint32_t& flags,
|
|
ReturnStatus* rs, nsTArray<JSIDVariant>* ids);
|
|
bool RecvInstanceOf(const ObjectId& objId, const JSIID& iid,
|
|
ReturnStatus* rs, bool* instanceof);
|
|
bool RecvDOMInstanceOf(const ObjectId& objId, const int& prototypeID, const int& depth,
|
|
ReturnStatus* rs, bool* instanceof);
|
|
|
|
bool RecvDropObject(const ObjectId& objId);
|
|
|
|
private:
|
|
bool fail(dom::AutoJSAPI& jsapi, ReturnStatus* rs);
|
|
bool ok(ReturnStatus* rs);
|
|
bool ok(ReturnStatus* rs, const JS::ObjectOpResult& result);
|
|
};
|
|
|
|
} // namespace jsipc
|
|
} // namespace mozilla
|
|
|
|
#endif
|