Re: Linking to Firefox' GRE from embedding app

2006-07-21 Thread Callum Prentice
rv = XPCOMGlueStartup("c:\program files\mozilla\firefox\xpcom.dll"); nsCString s("c:\program files\mozilla\firefox"); Don't you need to escape the '\' in the path with '\\' ? ___ dev-embedding mailing list dev-embedding@lists.mozilla.org https

Re: observing events in nsWindow

2006-06-28 Thread Callum Prentice
I was going to say 'have you looked at uBrowser, but looking at the readme I concluded that that would be useless :-) Heh.. I'll roll this code into uBrowser once I get it working. I'm not a Gecko expert, but if Gecko doesn't support what you want, maybe it is possible to hook into the invalid

Re: observing events in nsWindow

2006-06-27 Thread Callum Prentice
I am using an embedded version and copying what gets rendered into a buffer which I use later. I'm currently copying the whole page at 15Hz which is very wasteful if nothing much is changing. The various overloaded Invalidate() methods in nsWindow tell me which areas have changed and I'd like

observing events in nsWindow

2006-06-26 Thread Callum Prentice
I would like to observe events in nsWindow.cpp from the body of my application so that when a method in nsWindow is called, my application can retrieve some (integer) values. nsWindow::DispatchEvent(...) looks like it might do what I need (via a helper method) but I don't know how to 'catch' ev

Determining if a rendered page changed

2006-05-23 Thread Callum Prentice
My application that embeds Gecko grabs the output of a rendered page into a chunk of memory and displays it elsewhere. In order for this approach to work with pages that have any form of dynamic content, I need to grab the whole page frequently - I'm currently doing it at 15Hz. Whilst this work

Re: Catching and ignoring hyperlinks

2006-05-11 Thread Callum Prentice
1, 2006, at 10:32 AM, Callum Prentice wrote: I'm using an embedded instance Gecko for some of my application UI and sometimes want to do things in C++ land when an HTML link is clicked. I can catch the click via observers and the HandleEvent() method and get the relevant attributes from the a

Catching and ignoring hyperlinks

2006-05-11 Thread Callum Prentice
I'm using an embedded instance Gecko for some of my application UI and sometimes want to do things in C++ land when an HTML link is clicked. I can catch the click via observers and the HandleEvent() method and get the relevant attributes from the anchor tag but after doing so I want to stop th

Re: Bundling HTML/images inside hosting application

2006-05-01 Thread Callum Prentice
You could try creating your content and strings and passing it as a URL like this: data:text/html,hello world or data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ccircle%20cx%3D%2250%25%22%20cy%3D%2250%25%22%20r%3D%2240%25%22%20fill%3D%22red%22%2F%3E%3C%2Fsvg%

Re: NEW_H is undefined

2006-04-12 Thread Callum Prentice
Many thanks for the suggestions - changing Cygwin configuration from 'Unix/Binary' to 'DOS/text' did the trick for me. What's strange is that it used to work and (to the best of my knowledge), nothing has changed on my dev box - same Cygwin, same MSVC install, same checkout, same .mozconfig. T

Re: Possibly a VERY dumb question...Event Loop

2006-04-10 Thread Callum Prentice
Niky - may not be that useful but if you're looking for some more example code, you might try looking at http://ubrowser.com - there is source and an example exe there. It's something I've put together as a testbed for something I'm doing at work - might be a few nuggets of useful information t

NEW_H is undefined

2006-04-07 Thread Callum Prentice
I kicked off a Windows build that's been sitting on my machine for weeks it fails when trying to compile nsDependentString.cpp with the following error: "c:\mozilla\objdir-opt-xulrunner-small\dist\include\string\nsString.h(55) : fatal error C1083: Cannot open include file: '': No such file or d

Re: Building 1.5.0.1....No 'embed_base_s.lib'!

2006-04-06 Thread Callum Prentice
Is that Firefox 1.5.0.1, which AFAIK, is branch 1.8? May not be useful info but just in case - I'm also on that branch but using a 'libxul' build instead of a 'browser' one. I do see an embed_base_s.lib in dist\lib, although I'm not linking against it. The only thing that comes to mind is that

Re: embedding browser without UI

2006-02-14 Thread Callum Prentice
http://www.ubrowser.com/downloads.php There might be something useful here - sounds like it's a bit like what you want to do. Cal. ___ dev-embedding mailing list dev-embedding@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-embedding