2013-07-03 11:24:32 +04:00
|
|
|
/* -*- 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/. */
|
|
|
|
|
|
|
|
include protocol PContent;
|
|
|
|
include DOMTypes;
|
|
|
|
include JavaScriptTypes;
|
|
|
|
|
2013-10-01 23:25:07 +04:00
|
|
|
using struct mozilla::void_t from "ipc/IPCMessageUtils.h";
|
2013-07-03 11:24:32 +04:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace jsipc {
|
|
|
|
|
2013-10-01 04:27:45 +04:00
|
|
|
intr protocol PJavaScript
|
2013-07-03 11:24:32 +04:00
|
|
|
{
|
|
|
|
manager PContent;
|
|
|
|
|
|
|
|
child:
|
|
|
|
// The parent process no longer holds any references to the child object.
|
|
|
|
async DropObject(uint64_t objId);
|
|
|
|
|
|
|
|
// These roughly map to the ProxyHandler hooks that CPOWs need.
|
2013-07-11 19:23:34 +04:00
|
|
|
urgent PreventExtensions(uint64_t objId) returns (ReturnStatus rs);
|
|
|
|
urgent GetPropertyDescriptor(uint64_t objId, nsString id, uint32_t flags) returns (ReturnStatus rs, PPropertyDescriptor result);
|
|
|
|
urgent GetOwnPropertyDescriptor(uint64_t objId, nsString id, uint32_t flags) returns (ReturnStatus rs, PPropertyDescriptor result);
|
|
|
|
urgent DefineProperty(uint64_t objId, nsString id, PPropertyDescriptor descriptor) returns (ReturnStatus rs);
|
|
|
|
urgent Delete(uint64_t objId, nsString id) returns (ReturnStatus rs, bool successful);
|
|
|
|
|
2013-07-03 11:24:32 +04:00
|
|
|
urgent Has(uint64_t objId, nsString id) returns (ReturnStatus rs, bool has);
|
|
|
|
urgent HasOwn(uint64_t objId, nsString id) returns (ReturnStatus rs, bool has);
|
|
|
|
urgent Get(uint64_t objId, uint64_t receiverId, nsString id) returns (ReturnStatus rs, JSVariant result);
|
|
|
|
urgent Set(uint64_t objId, uint64_t receiverId, nsString id, bool strict, JSVariant value) returns (ReturnStatus rs, JSVariant result);
|
|
|
|
|
2013-07-11 19:23:34 +04:00
|
|
|
urgent IsExtensible(uint64_t objId) returns (ReturnStatus rs, bool result);
|
|
|
|
urgent Call(uint64_t objId, JSParam[] argv) returns (ReturnStatus rs, JSVariant result, JSParam[] outparams);
|
2013-07-03 11:24:32 +04:00
|
|
|
urgent ObjectClassIs(uint64_t objId, uint32_t classValue) returns (bool result);
|
|
|
|
urgent ClassName(uint64_t objId) returns (nsString name);
|
2013-07-11 19:23:34 +04:00
|
|
|
|
|
|
|
urgent GetPropertyNames(uint64_t objId, uint32_t flags) returns (ReturnStatus rs, nsString[] names);
|
|
|
|
urgent InstanceOf(uint64_t objId, JSIID iid) returns (ReturnStatus rs, bool instanceof);
|
2013-08-02 03:45:17 +04:00
|
|
|
urgent DOMInstanceOf(uint64_t objId, int prototypeID, int depth) returns (ReturnStatus rs, bool instanceof);
|
2013-07-03 11:24:32 +04:00
|
|
|
|
|
|
|
parent:
|
|
|
|
async __delete__();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|