Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Initial documentation for new embedding API

8 views
Skip to first unread message

Pelle Johnsen

unread,
Jun 30, 2008, 11:56:18 AM6/30/08
to
Hi,

I have written some initial documentation for the new embedding API we
are working on. This is still very early in the process, so things may
yet change quite a bit. Any feedback appreciated.

http://wiki.mozilla.org/Embedding/NewApi/GtkLinux

-Pelle

Pelle Johnsen

unread,
Jun 30, 2008, 12:00:07 PM6/30/08
to
Off to a good start :)

The link should be:

http://wiki.mozilla.org/Embedding/NewApi

mlutken

unread,
Jun 30, 2008, 5:29:07 PM6/30/08
to
I might be interested in assisting with a wxWidgets implementation.
I am in the process of trying to embed Mozilla in a wxWidgets
application anyway.

-Martin Lütken

mlutken

unread,
Jul 1, 2008, 3:41:19 AM7/1/08
to
I have tried incapsulating some of the core DOM interfaces into STL/
stdc++ like ones. It seems to work pretty well. I have iterates for
collections, lists and everywhere I use std::string. Also I have tried
to mimic the javascript naming and interface as much as possible. So I
return values instead of just the error result and so on.

It is notcomplete but it is good enough for my purpose but perhaps the
ideas could be used in this context. I also have had some wild toughts
about whether itwould be possible to extens the XPIDL "compiler" to
also generate those STL like interfaces automatically .

Pelle Johnsen

unread,
Jul 3, 2008, 1:24:43 PM7/3/08
to
Sounds very interesting.

We talked a bit about doing something like that in general, but found
that it was good to have the extra layer of insulations from changes to
the underlying API.

However it may well be a good idea for DOM access. And having it
automated would definitely be very cool :)

Would you be able to share some of your code for us to see?

-Pelle

mlutken

unread,
Jul 4, 2008, 7:31:36 AM7/4/08
to
Here it is:
http://www.doxys.dk/MozillaSTLDom.tar.bz2

It is not polished and I use macros because I was lazy, but anyway it
works nicely.

I also would recommend using boost::signals or similar method for
events relaying.

-Martin Lütken


0 new messages