mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
31 lines
1.2 KiB
C
31 lines
1.2 KiB
C
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||
|
/* 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 JSAOBJECTBUILDER_H
|
||
|
#define JSAOBJECTBUILDER_H
|
||
|
|
||
|
class JSCustomObject;
|
||
|
class JSCustomArray;
|
||
|
class nsAString;
|
||
|
|
||
|
class JSAObjectBuilder
|
||
|
{
|
||
|
public:
|
||
|
virtual ~JSAObjectBuilder() = 0;
|
||
|
|
||
|
virtual void DefineProperty(JSCustomObject *aObject, const char *name, JSCustomObject *aValue) = 0;
|
||
|
virtual void DefineProperty(JSCustomObject *aObject, const char *name, JSCustomArray *aValue) = 0;
|
||
|
virtual void DefineProperty(JSCustomObject *aObject, const char *name, int value) = 0;
|
||
|
virtual void DefineProperty(JSCustomObject *aObject, const char *name, double value) = 0;
|
||
|
virtual void DefineProperty(JSCustomObject *aObject, const char *name, const char *value) = 0;
|
||
|
virtual void ArrayPush(JSCustomArray *aArray, int value) = 0;
|
||
|
virtual void ArrayPush(JSCustomArray *aArray, const char *value) = 0;
|
||
|
virtual void ArrayPush(JSCustomArray *aArray, JSCustomObject *aObject) = 0;
|
||
|
virtual JSCustomArray *CreateArray() = 0;
|
||
|
virtual JSCustomObject *CreateObject() = 0;
|
||
|
};
|
||
|
|
||
|
#endif
|