Older
-
r89
(2008-09-01 jacob berkman <jacob@ilovegom.org>
* xulapp/c...) committed by ja...@87k.net
- 2008-09-01 jacob berkman <jacob@ilovegom.org>
* xulapp/components/gom/src/keysym2ucs.[ch]:
* xulapp/components/gom/src/nsGtkKeyUtils.{cpp,h}: copy from mozilla
* xulapp/components/gom/src/xgGtkElement.cpp
(xgGtkElement::Event): convert gdk events into dom events
(xgGtkElement::EventAfter): convert gdk events into dom events
(xgGtkElement::OnCreated): ask for HandleDefault, add some widget
events to our widget, and hook up event signal handlers
(xgGtkElement::HandleDefault): just print a message for now
2008-09-01 jacob berkman <jacob@ilovegom.org>
* xulapp/components/gom/src/keysym2ucs.[ch]:
* xulapp/components/gom/src/nsGtkKeyUtils.{cpp,h}: copy from mozilla
* xulapp/components/gom/src/xgGtkElement.cpp
(xgGtkElement::Event): convert gdk events into dom events
(xgGtkElement::EventAfter): convert gdk events into dom events
(xgGtkElement::OnCreated): ask for HandleDefault, add some widget
events to our widget, and hook up event signal handlers
(xgGtkElement::HandleDefault): just print a message for now
-
r88
(2008-09-01 jacob berkman <jacob@ilovegom.org>
* xulapp/c...) committed by ja...@87k.net
- 2008-09-01 jacob berkman <jacob@ilovegom.org>
* xulapp/components/gom/src/xgGtkElement.cpp
(xgGtkElement::DefineProperties): move to xgGtkElement, as simple
xgGObjects get their properties defined dynamically via its
nsIXPCScriptable implementation
(xgGtkElement::Resolve): resolve on nsIAtoms
* xulapp/components/gom/src/xgGObject.cpp
(xgGObject::GetProperty, xgGObject::SetProperty): split into two;
one operates on a JSObject, and a helper operates on a GObject
(xgGObject::Resolve): add variants that operate on jsval property
names
(xgGObject::GetProperty, xgGObject::SetProperty): use static
variants
2008-09-01 jacob berkman <jacob@ilovegom.org>
* xulapp/components/gom/src/xgGtkElement.cpp
(xgGtkElement::DefineProperties): move to xgGtkElement, as simple
xgGObjects get their properties defined dynamically via its
nsIXPCScriptable implementation
(xgGtkElement::Resolve): resolve on nsIAtoms
* xulapp/components/gom/src/xgGObject.cpp
(xgGObject::GetProperty, xgGObject::SetProperty): split into two;
one operates on a JSObject, and a helper operates on a GObject
(xgGObject::Resolve): add variants that operate on jsval property
names
(xgGObject::GetProperty, xgGObject::SetProperty): use static
variants
-
r87
(2008-09-01 jacob berkman <jacob@ilovegom.org>
* configur...) committed by ja...@87k.net
- 2008-09-01 jacob berkman <jacob@ilovegom.org>
* configure.ac: generate package version number based on svn
revision
2008-09-01 jacob berkman <jacob@ilovegom.org>
* configure.ac: generate package version number based on svn
revision
-
r86
(2008-09-01 jacob berkman <jacob@ilovegom.org>
* xulapp/c...) committed by ja...@87k.net
- 2008-09-01 jacob berkman <jacob@ilovegom.org>
* xulapp/components/gom/src/xgGObject.{h,cpp} (class xgGObject):
modify xgGObjectUtils to be an nsIXPCScriptable xgIGObjectHolder
* xulapp/components/gom/src/gomvalue.cpp (gom_g_value): use
xgGObject instead of gomjsobject for getting a GObject from a
jsval
(gom_jsval): use xgGObject instead of gomjsobject for getting a
JSObject from a GObject
* xulapp/components/gom/src/xgGtkElement.cpp: use xgGObject as a
base class
(xgGtkElement::Init): create the object here
(xgGtkElement::ParentChanged): add child properties using
attributes
(xgGtkElement::WillAppendChild): don't unref the return of
GetGObject()
(xgGtkElement::GetJSContext): get the JSContext from this
element's document
* xulapp/app/application.ini.in (EnableExtensionManager): enable
extensions
* include/gom/gomcamel.h: don't try to pull in headers mozilla
won't like
2008-09-01 jacob berkman <jacob@ilovegom.org>
* xulapp/components/gom/src/xgGObject.{h,cpp} (class xgGObject):
modify xgGObjectUtils to be an nsIXPCScriptable xgIGObjectHolder
* xulapp/components/gom/src/gomvalue.cpp (gom_g_value): use
xgGObject instead of gomjsobject for getting a GObject from a
jsval
(gom_jsval): use xgGObject instead of gomjsobject for getting a
JSObject from a GObject
* xulapp/components/gom/src/xgGtkElement.cpp: use xgGObject as a
base class
(xgGtkElement::Init): create the object here
(xgGtkElement::ParentChanged): add child properties using
attributes
(xgGtkElement::WillAppendChild): don't unref the return of
GetGObject()
(xgGtkElement::GetJSContext): get the JSContext from this
element's document
* xulapp/app/application.ini.in (EnableExtensionManager): enable
extensions
* include/gom/gomcamel.h: don't try to pull in headers mozilla
won't like
-
r85
(2008-08-30 jacob berkman <jacob@ilovegom.org>
* xulapp/c...) committed by ja...@87k.net
- 2008-08-30 jacob berkman <jacob@ilovegom.org>
* xulapp/components/gom/src/gomcamel.c:
* xulapp/components/gom/src/gomvalue.c: copy from libgom
* xulapp/components/gom/src/xgGObjectUtils.h: static class which
handles some GObject/JSObject interaction for us
* xulapp/components/gom/src/xgGtkElement.cpp:
(xgGtkElement::WidgetActivate): handle activate events on
GtkEntries
(xgGtkElement::OnCreated): add our GObject's properties to our
JSObject
(xgGtkElement::HandlesAttribute): only handle attributes for which
we have a property
* include/gommacros.h (GOM_LOC): print the file's basename, not
its full path
* include/gom/gomvalue.h (GOM_VALUE_ERROR): C++ doesn't allow
trailing commas, or something daft
2008-08-30 jacob berkman <jacob@ilovegom.org>
* xulapp/components/gom/src/gomcamel.c:
* xulapp/components/gom/src/gomvalue.c: copy from libgom
* xulapp/components/gom/src/xgGObjectUtils.h: static class which
handles some GObject/JSObject interaction for us
* xulapp/components/gom/src/xgGtkElement.cpp:
(xgGtkElement::WidgetActivate): handle activate events on
GtkEntries
(xgGtkElement::OnCreated): add our GObject's properties to our
JSObject
(xgGtkElement::HandlesAttribute): only handle attributes for which
we have a property
* include/gommacros.h (GOM_LOC): print the file's basename, not
its full path
* include/gom/gomvalue.h (GOM_VALUE_ERROR): C++ doesn't allow
trailing commas, or something daft
-
r84
(2008-08-27 jacob <jacob@ilovegom.org>
* xulapp/component...) committed by ja...@87k.net
- 2008-08-27 jacob <jacob@ilovegom.org>
* xulapp/components/gom/src/xgGtkElement.cpp (xgGtkElement::SetAttribute):
add the attribute to our hash table whether it is handled as a
property or not, so that attribute lookups work as they should
(xgGtkElement::HasAttribute, xgGtkElement::GetAttributeCount)
(xgGtkElement::GetAttributeNameAt): implement
2008-08-27 jacob <jacob@ilovegom.org>
* xulapp/components/gom/src/xgGtkElement.cpp (xgGtkElement::SetAttribute):
add the attribute to our hash table whether it is handled as a
property or not, so that attribute lookups work as they should
(xgGtkElement::HasAttribute, xgGtkElement::GetAttributeCount)
(xgGtkElement::GetAttributeNameAt): implement
-
-
r82
(2008-08-24 jacob <jacob@ilovegom.org>
* xulapp/various: ...) committed by ja...@87k.net
- 2008-08-24 jacob <jacob@ilovegom.org>
* xulapp/various: continue to fixup 'make dist', and enable 'make
package', which is a binary tarball distribution
2008-08-24 jacob <jacob@ilovegom.org>
* xulapp/various: continue to fixup 'make dist', and enable 'make
package', which is a binary tarball distribution
-
r81
(2008-08-24 jacob <jacob@ilovegom.org>
* configure.ac: us...) committed by ja...@87k.net
- 2008-08-24 jacob <jacob@ilovegom.org>
* configure.ac: use a source file we actually dist to configure
the sourcedir
* xulapp/Makefile.inc: dist all the files in this directory
* xulapp/configure-mozilla: a script which will run configure on a
mozilla source tree
2008-08-24 jacob <jacob@ilovegom.org>
* configure.ac: use a source file we actually dist to configure
the sourcedir
* xulapp/Makefile.inc: dist all the files in this directory
* xulapp/configure-mozilla: a script which will run configure on a
mozilla source tree
-
r80
(2008-08-24 jacob <jacob@ilovegom.org>
* xulapp/mozconfig...) committed by ja...@87k.net
- 2008-08-24 jacob <jacob@ilovegom.org>
* xulapp/mozconfig: remove mk_add_options, as we not longer use
client.mk
* xulapp/app/Makefile.in: disable some things for now
* xulapp/Makefile.inc: just run make in our mozilla objdir
* Makefile.am: move xulapp's build to xulapp/Makefile.inc
* configure.ac: run mozilla's configure here
2008-08-24 jacob <jacob@ilovegom.org>
* xulapp/mozconfig: remove mk_add_options, as we not longer use
client.mk
* xulapp/app/Makefile.in: disable some things for now
* xulapp/Makefile.inc: just run make in our mozilla objdir
* Makefile.am: move xulapp's build to xulapp/Makefile.inc
* configure.ac: run mozilla's configure here
-
r79
(2008-08-23 jacob <jacob@ilovegom.org>
* move src/xulapp ...) committed by ja...@87k.net
- 2008-08-23 jacob <jacob@ilovegom.org>
* move src/xulapp to xulapp, and build it using the mozilla build
system
2008-08-23 jacob <jacob@ilovegom.org>
* move src/xulapp to xulapp, and build it using the mozilla build
system
-
r78
(2008-08-21 jacob berkman <jacob@ilovegom.org>
* src/xula...) committed by ja...@87k.net
- 2008-08-21 jacob berkman <jacob@ilovegom.org>
* src/xulapp/chrome/content/xpgom/gom.xul: gom as a xulrunner
app
* src/xpgom/xgGomModule.cc: just register our XTF components
* src/xpgom/xgGomElementFactory.cc (CreateElement): add
support for script tags
* src/xpgom/xgScriptElement.cc: an implementation of <script>
elements
* src/xpgom/xgGtkElement.cc (GetAttribute): use string APIs
that work for both frozen and internal linkage
2008-08-21 jacob berkman <jacob@ilovegom.org>
* src/xulapp/chrome/content/xpgom/gom.xul: gom as a xulrunner
app
* src/xpgom/xgGomModule.cc: just register our XTF components
* src/xpgom/xgGomElementFactory.cc (CreateElement): add
support for script tags
* src/xpgom/xgScriptElement.cc: an implementation of <script>
elements
* src/xpgom/xgGtkElement.cc (GetAttribute): use string APIs
that work for both frozen and internal linkage
-
r77
(Add aborted work to implement nsIDocShell, nsIGlobalScriptOb...) committed by ja...@87k.net
- Add aborted work to implement nsIDocShell, nsIGlobalScriptObject
Add aborted work to implement nsIDocShell, nsIGlobalScriptObject
-
r76
(2008-08-16 jacob berkman <jacob@ilovegom.org>
* src/xpgo...) committed by ja...@87k.net
- 2008-08-16 jacob berkman <jacob@ilovegom.org>
* src/xpgom/xgGomModule.cc: update for xgWindow
* src/xpgom/xgNavigator.js.in: an implementation of
nsIDOMNavigator
* src/xpgom/xgParser.js: rename xgGomParser.js
* src/xpgom/xpgom.js: use a window object instead of the
defunct context
* src/xpgom/xgWindow.cc: an xpcom-based window object
2008-08-16 jacob berkman <jacob@ilovegom.org>
* src/xpgom/xgGomModule.cc: update for xgWindow
* src/xpgom/xgNavigator.js.in: an implementation of
nsIDOMNavigator
* src/xpgom/xgParser.js: rename xgGomParser.js
* src/xpgom/xpgom.js: use a window object instead of the
defunct context
* src/xpgom/xgWindow.cc: an xpcom-based window object
-
-
r74
(2008-08-16 jacob berkman <jacob@ilovegom.org>
* src/xpgo...) committed by ja...@87k.net
- 2008-08-16 jacob berkman <jacob@ilovegom.org>
* src/xpgom/xgGomModule.cc (nsGomModuleConstructor):
initialize the gtk widget types here for now, instead of using
the defunct libgom
* src/xpgom/xgGomContext.cc: beginnings of the XTF-based
runtime
* src/xpgom/xgGtkElementFactory.cc (CreateElement): factory
for creating gtk elements
* src/xpgom/xgGomParser.js: load a url using the sax parser,
and give notice when the document is created
* src/xpgom/xgGomElementFactory.cc (CreateElement): stub for
handling non-gtk gom elements
* src/xpgom/xpgom.js: use our custom interface for loading
gom apps
* src/xpgom/xgGtkElement.cc: beginnings of an XTF-based gom
implementation
2008-08-16 jacob berkman <jacob@ilovegom.org>
* src/xpgom/xgGomModule.cc (nsGomModuleConstructor):
initialize the gtk widget types here for now, instead of using
the defunct libgom
* src/xpgom/xgGomContext.cc: beginnings of the XTF-based
runtime
* src/xpgom/xgGtkElementFactory.cc (CreateElement): factory
for creating gtk elements
* src/xpgom/xgGomParser.js: load a url using the sax parser,
and give notice when the document is created
* src/xpgom/xgGomElementFactory.cc (CreateElement): stub for
handling non-gtk gom elements
* src/xpgom/xpgom.js: use our custom interface for loading
gom apps
* src/xpgom/xgGtkElement.cc: beginnings of an XTF-based gom
implementation
-
r73
(2008-08-13 jacob berkman <jacob@ilovegom.org>
* src/gom/...) committed by ja...@87k.net
- 2008-08-13 jacob berkman <jacob@ilovegom.org>
* src/gom/gom.c (main): disable xpcom initialization
* src/libgom/gomuriutils.c (gom_uri_join)
(gom_uri_get_contents): implement using gio
2008-08-13 jacob berkman <jacob@ilovegom.org>
* src/gom/gom.c (main): disable xpcom initialization
* src/libgom/gomuriutils.c (gom_uri_join)
(gom_uri_get_contents): implement using gio
-
r72
(2008-08-12 jacob berkman <jacob@ilovegom.org>
* src/xpgo...) committed by ja...@87k.net
- 2008-08-12 jacob berkman <jacob@ilovegom.org>
* src/xpgom/xpgom.js: use an io stream and
nsISAXXMLReader-based parser instead of XHR so that we can
load scripts etc. correctly
* src/xpgom/xgElement.cc (SetAttribute): implement
* src/xpgom/xgNode.cc (AppendChild): implement
* src/xpgom/xgDocument.cc (CreateElementNS): implement
* src/xpgom/gomwrapped.cc (gom_wrap_g_object): here is a
thought: check to make sure that the object we are wrapping
actually supports the interface we're looking for
* src/xpgom/xgWrapped.cc (QueryInterface): fallback to
re-wrapping our GObject if we haven't found a type yet
2008-08-12 jacob berkman <jacob@ilovegom.org>
* src/xpgom/xpgom.js: use an io stream and
nsISAXXMLReader-based parser instead of XHR so that we can
load scripts etc. correctly
* src/xpgom/xgElement.cc (SetAttribute): implement
* src/xpgom/xgNode.cc (AppendChild): implement
* src/xpgom/xgDocument.cc (CreateElementNS): implement
* src/xpgom/gomwrapped.cc (gom_wrap_g_object): here is a
thought: check to make sure that the object we are wrapping
actually supports the interface we're looking for
* src/xpgom/xgWrapped.cc (QueryInterface): fallback to
re-wrapping our GObject if we haven't found a type yet
-
r71
(2008-08-11 jacob berkman <jacob@ilovegom.org>
* include/...) committed by ja...@87k.net
- 2008-08-11 jacob berkman <jacob@ilovegom.org>
* include/gommacros.h (XG_RETURN_NOT_IMPLEMENTED): macro to
return not implemented for xpcom funcs
(GOM_RETURN_NSRESULT_FROM_GERROR): now only executes if error
is set
(XG_WRAPPED_IMPL_GET_OBJECT): implement an attribute getter
for objects
(XG_WRAPPED_IMPL_GET_STRING): ditto for strings
(XG_WRAPPED_IMPL_GET_SIMPLE, XG_WRAPPED_IMPL_GET_ENUM)
(XG_WRAPPED_IMPL_GET_BOOL, XG_WRAPPED_IMPL_GET_ULONG): etc
(GOM_WRAPPED_GET_OBJECT): set a GValue based on an xpcom
getter function
(GOM_WRAPPED_GET_ENUM, GOM_WRAPPED_GET_STRING)
(GOM_WRAPPED_GET_BOOL, GOM_WRAPPED_GET_ULONG): ditto
* src/xpgom/xgGomModule.cc (nsGomModuleConstructor): add new
wrapper types
* src/xpgom/xgNode.cc: implement attribute getters
* src/xpgom/xgNodeList.cc: xpcom wrapper for GomNodeList
* src/xpgom/gomwrappedelement.cc
(gom_wrapped_element_get_property): implement attribute getter
* src/xpgom/gomwrappednamednodemap.cc: GObject
nsIDOMNamedNodeMap wrapper
* src/xpgom/xgDocument.cc: implement all attribute getters
* src/xpgom/gomwrappednode.cc (gom_wrapped_node_get_property):
implement all properties
* src/xpgom/gomwrapped.cc (gom_wrap_xpcom): use
QueryInterface() to find the most highly specific interface
this object supports
(gom_wrap_g_object): we don't need to do that here, since com
objects will be using query interface itself (although perhaps
we need to do a custom implementation of that...)
* src/xpgom/gomwrappeddocument.cc
(gom_wrapped_document_get_property): implement more properties
* src/xpgom/xgWrapped.cc (~xgWrapped): warn if we had an
object, but it was destroyed
(Init): also grab a weak ref of our object to catch destroyed
objects
* src/xpgom/gomwrappedattr.cc: GObject nsIDOMAttr wrapper
* src/libgom/gomdoc.c (gom_doc_import_node): apply specified
attrs when importing elements
2008-08-11 jacob berkman <jacob@ilovegom.org>
* include/gommacros.h (XG_RETURN_NOT_IMPLEMENTED): macro to
return not implemented for xpcom funcs
(GOM_RETURN_NSRESULT_FROM_GERROR): now only executes if error
is set
(XG_WRAPPED_IMPL_GET_OBJECT): implement an attribute getter
for objects
(XG_WRAPPED_IMPL_GET_STRING): ditto for strings
(XG_WRAPPED_IMPL_GET_SIMPLE, XG_WRAPPED_IMPL_GET_ENUM)
(XG_WRAPPED_IMPL_GET_BOOL, XG_WRAPPED_IMPL_GET_ULONG): etc
(GOM_WRAPPED_GET_OBJECT): set a GValue based on an xpcom
getter function
(GOM_WRAPPED_GET_ENUM, GOM_WRAPPED_GET_STRING)
(GOM_WRAPPED_GET_BOOL, GOM_WRAPPED_GET_ULONG): ditto
* src/xpgom/xgGomModule.cc (nsGomModuleConstructor): add new
wrapper types
* src/xpgom/xgNode.cc: implement attribute getters
* src/xpgom/xgNodeList.cc: xpcom wrapper for GomNodeList
* src/xpgom/gomwrappedelement.cc
(gom_wrapped_element_get_property): implement attribute getter
* src/xpgom/gomwrappednamednodemap.cc: GObject
nsIDOMNamedNodeMap wrapper
* src/xpgom/xgDocument.cc: implement all attribute getters
* src/xpgom/gomwrappednode.cc (gom_wrapped_node_get_property):
implement all properties
* src/xpgom/gomwrapped.cc (gom_wrap_xpcom): use
QueryInterface() to find the most highly specific interface
this object supports
(gom_wrap_g_object): we don't need to do that here, since com
objects will be using query interface itself (although perhaps
we need to do a custom implementation of that...)
* src/xpgom/gomwrappeddocument.cc
(gom_wrapped_document_get_property): implement more properties
* src/xpgom/xgWrapped.cc (~xgWrapped): warn if we had an
object, but it was destroyed
(Init): also grab a weak ref of our object to catch destroyed
objects
* src/xpgom/gomwrappedattr.cc: GObject nsIDOMAttr wrapper
* src/libgom/gomdoc.c (gom_doc_import_node): apply specified
attrs when importing elements
-
r70
(2008-08-09 jacob berkman <jacob@ilovegom.org>
* src/xpgo...) committed by ja...@87k.net
- 2008-08-09 jacob berkman <jacob@ilovegom.org>
* src/xpgom/xgElement.cc: an nsIElement wrapper of a
GomElement
* src/xpgom/xgGomModule.cc (nsGomModuleConstructor):
initialize GomWidget, and our wrapper classes
* src/xpgom/gomwrapped.cc: the base GObject for a wrapped
nsISupports object; implement wrapping a GObject or an
nsISupports with the other
* src/xpgom/gomwrappeddocument.cc: a GObject wrapping of an
nsIDOMDocument
* src/xpgom/xgNode.cc (ReplaceChild): implement
* src/xpgom/xgDOMImplementation.cc (CreateDocument): use the
gom_wrap* api to create our nsIDOMDocument
* src/xpgom/xgWrapped.cc: rename xgObject.cc; support the
xgPIWrapped interface
* src/xpgom/gomwrappedelement.cc: a GObject wrapping of an
nsIDOMElement
* src/xpgom/xgDocument.cc (Init): take our wrapped object here
rather than in the constructor
(GetDocumentElement): implement
(ImportNode): implement
* src/xpgom/gomwrappednode.cc: a GObject wrapping of an
nsIDOMNode
* src/xpgom/gomwrappeddomimplementation.cc: a GObject wrapping
of an nsIDOMDOMImplementation
* src/libgom/gomcmt.c: implementation of GomComment
* src/libgom/gominterfaces.c (gom_unknown_query_interface): a
clever implementation of _query_interface() for GObjects
* src/libgom/gomdoc.c (gom_doc_get_property): use gom_unknown
to query our first child for its element interface
(gom_doc_create_comment): implement
(gom_doc_create_cdata_section): implement
(get_elements_by_tag_name): instead of using a GObject type
check, use gom_unknown_query_interface
(gom_doc_import_node): begin to implement
(get_element_by_id): use gom_unknown_query_interface
* src/libgom/gomcdata.c: implementaion of GomCDATASection
2008-08-09 jacob berkman <jacob@ilovegom.org>
* src/xpgom/xgElement.cc: an nsIElement wrapper of a
GomElement
* src/xpgom/xgGomModule.cc (nsGomModuleConstructor):
initialize GomWidget, and our wrapper classes
* src/xpgom/gomwrapped.cc: the base GObject for a wrapped
nsISupports object; implement wrapping a GObject or an
nsISupports with the other
* src/xpgom/gomwrappeddocument.cc: a GObject wrapping of an
nsIDOMDocument
* src/xpgom/xgNode.cc (ReplaceChild): implement
* src/xpgom/xgDOMImplementation.cc (CreateDocument): use the
gom_wrap* api to create our nsIDOMDocument
* src/xpgom/xgWrapped.cc: rename xgObject.cc; support the
xgPIWrapped interface
* src/xpgom/gomwrappedelement.cc: a GObject wrapping of an
nsIDOMElement
* src/xpgom/xgDocument.cc (Init): take our wrapped object here
rather than in the constructor
(GetDocumentElement): implement
(ImportNode): implement
* src/xpgom/gomwrappednode.cc: a GObject wrapping of an
nsIDOMNode
* src/xpgom/gomwrappeddomimplementation.cc: a GObject wrapping
of an nsIDOMDOMImplementation
* src/libgom/gomcmt.c: implementation of GomComment
* src/libgom/gominterfaces.c (gom_unknown_query_interface): a
clever implementation of _query_interface() for GObjects
* src/libgom/gomdoc.c (gom_doc_get_property): use gom_unknown
to query our first child for its element interface
(gom_doc_create_comment): implement
(gom_doc_create_cdata_section): implement
(get_elements_by_tag_name): instead of using a GObject type
check, use gom_unknown_query_interface
(gom_doc_import_node): begin to implement
(get_element_by_id): use gom_unknown_query_interface
* src/libgom/gomcdata.c: implementaion of GomCDATASection
-
r69
(2008-08-05 jacob berkman <jacob@ilovegom.org>
* src/xpgo...) committed by ja...@87k.net
- 2008-08-05 jacob berkman <jacob@ilovegom.org>
* src/xpgom/xgGomModule.cc (nsGomModuleConstructor): use a proper
module constructor to initialize Gtk
* include/gommacros.h (GOM_ASTRING_TO_GSTRING): remove bogus
optimization that referenced free memory
2008-08-05 jacob berkman <jacob@ilovegom.org>
* src/xpgom/xgGomModule.cc (nsGomModuleConstructor): use a proper
module constructor to initialize Gtk
* include/gommacros.h (GOM_ASTRING_TO_GSTRING): remove bogus
optimization that referenced free memory
-
r68
(2008-08-04 jacob berkman <jacob@ilovegom.org>
* src/xpgo...) committed by ja...@87k.net
- 2008-08-04 jacob berkman <jacob@ilovegom.org>
* src/xpgom/xgGomModule.cc: xgDOMImplementation has an init
function now
* src/xpgom/xgObject.cc (xgObject): unref our object
(Init): if we don't yet have an object, but do have a type,
try creating an object; then check that our object implements
our required interfaces
* src/xpgom/xgNode.cc (GetNodeName, GetNodeType): implement
* src/xpgom/xgDOMImplementation.cc (Init): check that our
GObject implements GOM_TYPE_DOM_IMPLEMENTATION
(HasFeature): use new macros
(CreateDocument): implement
* src/libgom/gomdom.c (gom_dom_class_init): there's really no
reason to make this a singleton object
* include/gommacros.h (GOM_ASTRING_TO_GSTRING)
(GOM_GERROR_TO_NSRESULT, GOM_RETURN_NSRESULT_FROM_GERROR)
(GOM_XGO_CHECK_INIALIZED): some macros useful for xpcom
objects
* src/xpgom/xgDocument.cc:
* include/xpgom/xgDocument.hh: xpcom binding for GomDocument
interface
* include/xpgom/xgObject.hh (class xgObject): base class for
xpcom objects proxying a GObject
* include/xpgom/xgNode.hh: xpcom binding for GomNode interface
* include/xpgom/xgDOMImplementation.hh
(nsIDOMDOMImplementation): abstract some common bits to xgObject
2008-08-04 jacob berkman <jacob@ilovegom.org>
* src/xpgom/xgGomModule.cc: xgDOMImplementation has an init
function now
* src/xpgom/xgObject.cc (xgObject): unref our object
(Init): if we don't yet have an object, but do have a type,
try creating an object; then check that our object implements
our required interfaces
* src/xpgom/xgNode.cc (GetNodeName, GetNodeType): implement
* src/xpgom/xgDOMImplementation.cc (Init): check that our
GObject implements GOM_TYPE_DOM_IMPLEMENTATION
(HasFeature): use new macros
(CreateDocument): implement
* src/libgom/gomdom.c (gom_dom_class_init): there's really no
reason to make this a singleton object
* include/gommacros.h (GOM_ASTRING_TO_GSTRING)
(GOM_GERROR_TO_NSRESULT, GOM_RETURN_NSRESULT_FROM_GERROR)
(GOM_XGO_CHECK_INIALIZED): some macros useful for xpcom
objects
* src/xpgom/xgDocument.cc:
* include/xpgom/xgDocument.hh: xpcom binding for GomDocument
interface
* include/xpgom/xgObject.hh (class xgObject): base class for
xpcom objects proxying a GObject
* include/xpgom/xgNode.hh: xpcom binding for GomNode interface
* include/xpgom/xgDOMImplementation.hh
(nsIDOMDOMImplementation): abstract some common bits to xgObject
-
r67
(2008-08-01 jacob berkman <jacob@ilovegom.org>
* src/xpgo...) committed by ja...@87k.net
- 2008-08-01 jacob berkman <jacob@ilovegom.org>
* src/xpgom/xgGomModule.cc (xgGomRegistrationProc): try to
initialize Gtk
* src/xpgom/xgDOMImplementation.cc (xgDOMImplementation):
initialize gdom
(xgDOMImplementation): release gdom
(HasFeature): initial implementation
* include/xpgom/xgDOMImplementation.hh
(nsIDOMDOMImplementation): add a C object that we will proxy for
* src/xpgom/xpgom.js: a new Gom shell, written in JS
* include/gom/dom/*.h: add missing G_END_DECLS
2008-08-01 jacob berkman <jacob@ilovegom.org>
* src/xpgom/xgGomModule.cc (xgGomRegistrationProc): try to
initialize Gtk
* src/xpgom/xgDOMImplementation.cc (xgDOMImplementation):
initialize gdom
(xgDOMImplementation): release gdom
(HasFeature): initial implementation
* include/xpgom/xgDOMImplementation.hh
(nsIDOMDOMImplementation): add a C object that we will proxy for
* src/xpgom/xpgom.js: a new Gom shell, written in JS
* include/gom/dom/*.h: add missing G_END_DECLS
-
r66
(2008-07-31 jacob berkman <jacob@ilovegom.org>
* configur...) committed by ja...@87k.net
- 2008-07-31 jacob berkman <jacob@ilovegom.org>
* configure.ac: turn libtool on again, for now, and use
correct flags for building xpcom components
* src/xpgom/xgGomModule.cc: register our xpcom components
* src/xpgom/xgDOMImplementation.cc:
* include/xpgom/xgDOMImplementation.hh
(nsIDOMDOMImplementation): XPCOM-based DOMImplementation
object
2008-07-31 jacob berkman <jacob@ilovegom.org>
* configure.ac: turn libtool on again, for now, and use
correct flags for building xpcom components
* src/xpgom/xgGomModule.cc: register our xpcom components
* src/xpgom/xgDOMImplementation.cc:
* include/xpgom/xgDOMImplementation.hh
(nsIDOMDOMImplementation): XPCOM-based DOMImplementation
object
-
r65
(2008-07-27 jacob berkman <jacob@ilovegom.org>
* configur...) committed by ja...@87k.net
- 2008-07-27 jacob berkman <jacob@ilovegom.org>
* configure.ac: port to using xulrunner sdk rather than
spidermonkey checkout
* src/libgom/gomjswindow.c (gom_js_window_parser_end_element):
(gom_js_window_parse_file): use new gom_uri_* methods for
loading files
* src/libgom/gomxhr.c (gom_xhr_open): comment out bits that
used GomURI until this is back in action
* src/gom/gom.c (main): find a GRE and initialize XPCOM
* src/libgom/gomuriutils.cc (gom_uri_join): new nsIURI-based implementation
(gom_uri_get_contents): glib-like api for loading uris
2008-07-27 jacob berkman <jacob@ilovegom.org>
* configure.ac: port to using xulrunner sdk rather than
spidermonkey checkout
* src/libgom/gomjswindow.c (gom_js_window_parser_end_element):
(gom_js_window_parse_file): use new gom_uri_* methods for
loading files
* src/libgom/gomxhr.c (gom_xhr_open): comment out bits that
used GomURI until this is back in action
* src/gom/gom.c (main): find a GRE and initialize XPCOM
* src/libgom/gomuriutils.cc (gom_uri_join): new nsIURI-based implementation
(gom_uri_get_contents): glib-like api for loading uris
-
r64
(2008-07-26 jacob berkman <jacob@ilovegom.org>
* src/libg...) committed by ja...@87k.net
- 2008-07-26 jacob berkman <jacob@ilovegom.org>
* src/libgom/gomdominterfaces.c:
* src/libgom/gomdoc.c (gom_doc_get_property)
(gom_doc_set_property): add documentURI level 3 property
* src/libgom/gomjswindow.c
(gom_js_window_parser_start_element): create a document
manually, that is without using the standard DOM api, so we
can pass in the document's uri
(gom_js_window_parser_end_element): use GomURI to resolve
relative hrefs
(gom_js_window_parse_file): use GomURI to resolve relative
paths
* src/libgom/gomxhr.c (gom_xhr_get_property): impl for readyState
(gom_xhr_set_property): impl for document
(is_token): determine if something is an HTTP token
(gom_xhr_open): begin implementation
(is_lws): determine if something is http leading whitespace
(is_quoted_string, is_value): more http rfc checks
(gom_xhr_set_request_header): implement
* src/libgom/gomjsxmlhttprequest.c (gom_js_xml_http_request_open)
(gom_js_xml_http_request_set_request_header)
(gom_js_xml_http_request_send)
(gom_js_xml_http_request_abort)
(gom_js_xml_http_request_get_all_response_headers)
(gom_js_xml_http_request_get_response_header): implement binding
(gom_js_xml_http_request_construct): set the appropriate
document object when constructing
* cppflags.py:
* ldflags.py: detect python build options
* src/libgom/gomuri.c: new object for manipulating uris
2008-07-26 jacob berkman <jacob@ilovegom.org>
* src/libgom/gomdominterfaces.c:
* src/libgom/gomdoc.c (gom_doc_get_property)
(gom_doc_set_property): add documentURI level 3 property
* src/libgom/gomjswindow.c
(gom_js_window_parser_start_element): create a document
manually, that is without using the standard DOM api, so we
can pass in the document's uri
(gom_js_window_parser_end_element): use GomURI to resolve
relative hrefs
(gom_js_window_parse_file): use GomURI to resolve relative
paths
* src/libgom/gomxhr.c (gom_xhr_get_property): impl for readyState
(gom_xhr_set_property): impl for document
(is_token): determine if something is an HTTP token
(gom_xhr_open): begin implementation
(is_lws): determine if something is http leading whitespace
(is_quoted_string, is_value): more http rfc checks
(gom_xhr_set_request_header): implement
* src/libgom/gomjsxmlhttprequest.c (gom_js_xml_http_request_open)
(gom_js_xml_http_request_set_request_header)
(gom_js_xml_http_request_send)
(gom_js_xml_http_request_abort)
(gom_js_xml_http_request_get_all_response_headers)
(gom_js_xml_http_request_get_response_header): implement binding
(gom_js_xml_http_request_construct): set the appropriate
document object when constructing
* cppflags.py:
* ldflags.py: detect python build options
* src/libgom/gomuri.c: new object for manipulating uris
|