26 #ifndef BINDINGS_C_INSTANCE_H_ 27 #define BINDINGS_C_INSTANCE_H_ 29 #if ENABLE(NETSCAPE_PLUGIN_API) 31 #include "BridgeJSC.h" 32 #include "runtime_root.h" 33 #include <wtf/text/WTFString.h> 43 class CInstance :
public Instance {
45 static Ref<CInstance>
create(
NPObject*
object, RefPtr<RootObject>&& rootObject)
50 static void setGlobalException(String);
51 static void moveGlobalExceptionToExecState(ExecState*);
55 Class *getClass()
const override;
57 JSValue valueOf(ExecState*)
const override;
60 JSValue getMethod(ExecState*, PropertyName)
override;
61 JSValue invokeMethod(ExecState*, RuntimeMethod*)
override;
62 bool supportsInvokeDefaultMethod()
const override;
63 JSValue invokeDefaultMethod(ExecState*)
override;
65 bool supportsConstruct()
const override;
66 JSValue invokeConstruct(ExecState*,
const ArgList&)
override;
68 void getPropertyNames(ExecState*, PropertyNameArray&)
override;
71 JSValue numberValue(ExecState*)
const;
74 NPObject *getObject()
const {
return _object; }
77 CInstance(
NPObject*, RefPtr<RootObject>&&);
79 RuntimeObject* newRuntimeObject(ExecState*)
override;
80 bool toJSPrimitive(ExecState*,
const char*, JSValue&)
const;
83 mutable CClass *_class;
91 #endif // ENABLE(NETSCAPE_PLUGIN_API) Definition: AirOpcode.h:4
std::unique_ptr< Layout > create(RenderBlockFlow &)
Definition: SimpleLineLayout.cpp:861
DOMString stringValue
Definition: TypeConversions.idl:77
bool value
Definition: value.h:37
PreferredPrimitiveType
Definition: JSCJSValue.h:75
Definition: npruntime.h:323
Ref< T > adoptRef(T &)
Definition: Ref.h:208