Changeset View
Changeset View
Standalone View
Standalone View
source/gui/Scripting/JSInterface_GUIProxy.h
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | virtual bool defineProperty(JSContext* UNUSED(cx), JS::HandleObject UNUSED(proxy), JS::HandleId UNUSED(id), | ||||
return false; | return false; | ||||
} | } | ||||
// Return nothing. | // Return nothing. | ||||
virtual bool ownPropertyKeys(JSContext* UNUSED(cx), JS::HandleObject UNUSED(proxy), JS::AutoIdVector& UNUSED(props)) const override | virtual bool ownPropertyKeys(JSContext* UNUSED(cx), JS::HandleObject UNUSED(proxy), JS::AutoIdVector& UNUSED(props)) const override | ||||
{ | { | ||||
return true; | return true; | ||||
} | } | ||||
// Return nothing. | // Return nothing. | ||||
virtual bool enumerate(JSContext* UNUSED(cx), JS::HandleObject UNUSED(proxy), JS::MutableHandleObject UNUSED(objp)) const override | virtual JSObject* enumerate(JSContext* UNUSED(cx), JS::HandleObject UNUSED(proxy)) const override | ||||
{ | { | ||||
return true; | return nullptr; | ||||
} | } | ||||
// Throw an exception is JS attempts to query the prototype. | // Throw an exception is JS attempts to query the prototype. | ||||
virtual bool getPrototypeIfOrdinary(JSContext* UNUSED(cx), JS::HandleObject UNUSED(proxy), bool* UNUSED(isOrdinary), JS::MutableHandleObject UNUSED(protop)) const override | virtual bool getPrototypeIfOrdinary(JSContext* UNUSED(cx), JS::HandleObject UNUSED(proxy), bool* UNUSED(isOrdinary), JS::MutableHandleObject UNUSED(protop)) const override | ||||
{ | { | ||||
return false; | return false; | ||||
} | } | ||||
// Throw an exception - no prototype to set. | // Throw an exception - no prototype to set. | ||||
virtual bool setImmutablePrototype(JSContext* UNUSED(cx), JS::HandleObject UNUSED(proxy), bool* UNUSED(succeeded)) const override | virtual bool setImmutablePrototype(JSContext* UNUSED(cx), JS::HandleObject UNUSED(proxy), bool* UNUSED(succeeded)) const override | ||||
Show All 16 Lines |
Wildfire Games · Phabricator