Re: Gtk2::MozEmbed + DOM



On Wed, 2005-03-09 at 17:33 +0100, Scott Lanning wrote:

It's not possible to get to the DOM from Gtk2::MozEmbed, is it?
If not, is it from (non-perl) gtkmozembed? If so, any hints on
where to look to implement it in Gtk2::MozEmbed would be appreciated.

I don't know much about it, but I think in order to do that, you'd have
to use gtk_moz_embed_get_nsIWebBrowser to get the nsIWebBrowser[2]
object, and access the contentDOMWindow attribute to get to the toplevel
window's object.

Gtk2::MozEmbed uses Perl's XS language to wrap gtkmozembed.  So
xs/GtkMozEmbed.xs in the tarball / CVS repository would be the first
place to look if you wanted to add support for the above stuff.  Since
it involves C++, you'd also have to look into getting g++ integrated --
which I know nothing about.  There have been some C++ threads on the
perl-xs list[3], though.

-- 
HTH,
-Torsten

[1]
http://www.mozilla.org/unix/gtk-embedding.html#gtk_moz_embed_get_nsIWebBrowser

[2]
http://www.mozilla.org/projects/embedding/embedapiref/embedapi4.html

[3]
http://www.nntp.perl.org/group/perl.xs/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]