summaryrefslogtreecommitdiffstats
path: root/src/dom/jsengine.h
diff options
context:
space:
mode:
authorBob Jamison <ishmalius@gmail.com>2006-09-05 16:00:09 +0000
committerishmal <ishmal@users.sourceforge.net>2006-09-05 16:00:09 +0000
commit1cf78b0381215b4af2f502a5234812e13e12c43f (patch)
treef14e09446e478143f9562a331eaa82e7efd6c1f4 /src/dom/jsengine.h
parentcomments for later (diff)
downloadinkscape-1cf78b0381215b4af2f502a5234812e13e12c43f.tar.gz
inkscape-1cf78b0381215b4af2f502a5234812e13e12c43f.zip
Massive update for smart pointers. Rework js dom binding to be smarter. Placeholder for dom binding, finish later.
(bzr r1692)
Diffstat (limited to 'src/dom/jsengine.h')
-rw-r--r--src/dom/jsengine.h76
1 files changed, 18 insertions, 58 deletions
diff --git a/src/dom/jsengine.h b/src/dom/jsengine.h
index aa7297f9c..abcbb23e9 100644
--- a/src/dom/jsengine.h
+++ b/src/dom/jsengine.h
@@ -73,36 +73,24 @@ public:
bool evaluateFile(const DOMString &script);
- JSObject *wrapDocument(const Document *doc);
-
- JSObject *new_Attr(Attr *obj);
- JSObject *new_CDATASection(CDATASection *obj);
- JSObject *new_CharacterData(CharacterData *obj);
- JSObject *new_Comment(Comment *obj);
- JSObject *new_Document(Document *obj);
- JSObject *new_DocumentFragment(DocumentFragment *obj);
- JSObject *new_DocumentType(DocumentType *obj);
- JSObject *new_DOMConfiguration(DOMConfiguration *obj);
- JSObject *new_DOMError(DOMError *obj);
- JSObject *new_DOMException(DOMException *obj);
- JSObject *new_DOMImplementation(DOMImplementation *obj);
- JSObject *new_DOMImplementationList(DOMImplementationList *obj);
- JSObject *new_DOMImplementationRegistry(DOMImplementationSource *obj);
- JSObject *new_DOMImplementationSource(DOMImplementationSource *obj);
- JSObject *new_DOMLocator(DOMLocator *obj);
- JSObject *new_DOMStringList(DOMStringList *obj);
- JSObject *new_Element(Element *obj);
- JSObject *new_Entity(Entity *obj);
- JSObject *new_EntityReference(EntityReference *obj);
- JSObject *new_NamedNodeMap(NamedNodeMap *obj);
- JSObject *new_NameList(NameList *obj);
- JSObject *new_Node(Node *obj);
- JSObject *new_NodeList(NodeList *obj);
- JSObject *new_Notation(Notation *obj);
- JSObject *new_ProcessingInstruction(ProcessingInstruction *obj);
- JSObject *new_Text(Text *obj);
- JSObject *new_TypeInfo(TypeInfo *obj);
- JSObject *new_UserDataHandler(UserDataHandler *obj);
+ /**
+ * Return the runtime of the wrapped JS engine
+ */
+ JSRuntime *getRuntime()
+ { return rt; }
+
+ /**
+ * Return the current context of the wrapped JS engine
+ */
+ JSContext *getContext()
+ { return cx; }
+
+ /**
+ * Return the current global object of the wrapped JS engine
+ */
+ JSObject *getGlobalObject()
+ { return globalObj; }
+
private:
@@ -166,34 +154,6 @@ private:
engine->error((char *)message);
}
- JSObject *proto_Attr;
- JSObject *proto_CDATASection;
- JSObject *proto_CharacterData;
- JSObject *proto_Comment;
- JSObject *proto_Document;
- JSObject *proto_DocumentFragment;
- JSObject *proto_DocumentType;
- JSObject *proto_DOMConfiguration;
- JSObject *proto_DOMError;
- JSObject *proto_DOMException;
- JSObject *proto_DOMImplementation;
- JSObject *proto_DOMImplementationList;
- JSObject *proto_DOMImplementationRegistry;
- JSObject *proto_DOMImplementationSource;
- JSObject *proto_DOMLocator;
- JSObject *proto_DOMStringList;
- JSObject *proto_Element;
- JSObject *proto_Entity;
- JSObject *proto_EntityReference;
- JSObject *proto_NamedNodeMap;
- JSObject *proto_NameList;
- JSObject *proto_Node;
- JSObject *proto_NodeList;
- JSObject *proto_Notation;
- JSObject *proto_ProcessingInstruction;
- JSObject *proto_Text;
- JSObject *proto_TypeInfo;
- JSObject *proto_UserDataHandler;