-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJSObject.h
More file actions
32 lines (25 loc) · 911 Bytes
/
JSObject.h
File metadata and controls
32 lines (25 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once
using namespace System;
using namespace System::Runtime::InteropServices;
using namespace WebKit::Interop;
using namespace WebKit::JSCore;
namespace WebKit {
namespace JSCore {
ref class JSValue;
ref class JSContext;
public ref class JSObject : public WebKit::JSCore::JSValue
{
public:
bool HasProperty(String ^ propertyName);
JSValue ^ GetProperty(String ^ propertyName);
void SetProperty(String ^ propertyName, bool value);
void SetProperty(String ^ propertyName, double value);
void SetProperty(String ^ propertyName, System::Object ^ value);
void SetProperty(String ^ propertyName, System::String ^ value);
JSValue ^ CallFunction(String ^ methodName, ... array<Object ^> ^ variableArgs);
internal:
JSObject(JSContext ^ context, JSObjectRef object);
private:
void SetProperty(String ^ propertyName, JSValueRef value);
};
}} // namespace WebKit::JSCore