Re: URGENT! RenderOffScreen replacement in Gecko 1.9

2014-02-13 Thread Christian Sell
doesn't seem to work (or even compile) with recent (=24) XULRunner versions ___ dev-embedding mailing list dev-embedding@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-embedding

Offscreen rendering from C++

2014-02-13 Thread Christian Sell
Hello all, we are using XULRunner 24 embedded in a Java application through Eclipse SWT. We need extended functionality only available through the XPCOM API, and since the old JavaXPCOM binding has vanished, we are migrating all code to C++, which we access from Java through a narrow JNI API.

Registering components under XULRunner 24

2014-02-13 Thread Christian Sell
Hello, me again ;). We are embedding XULRunner in our Java application, using a thin integration layer written in C++ that provides extended functionality. We also have a XPCOM component written in Javascript, which we previously called though JavaXPCOM, and now need to call from C++. However,

Re: Offscreen rendering from C++

2014-02-13 Thread Christian Sell
Hi, I almost expected this answer. Actually, we already have the working code in a Javascript component, which we previously called via JavaXPCOM. Since we are now forced to write our own C++ XPCOM access layer, I thought it would make sense to also migrate the component code in order to limit

Re: Registering components under XULRunner 24

2014-02-13 Thread Christian Sell
no, file points to the directory where the component resides. I dont know where the output from nsIConsoleService goes, as that is maintained by the Eclipse/SWT integration. I'll try pointing to the manifest file. Thanks ___ dev-embedding mailing list

Re: Registering components under XULRunner 24

2014-02-13 Thread Christian Sell
doesnt work. I am creating the file like this: retval = directory-Get(NS_GRE_DIR, NS_GET_IID(nsILocalFile), (void **)greDir); file-InitWithFile(greDir); file-AppendRelativePath(NS_LITERAL_STRING(components/components.manifest)); the contents of the components.manifest file are just one line:

Re: Registering components under XULRunner 24

2014-02-13 Thread Christian Sell
added component and contract entries to the manifest file, still no hope. BTW, file-Exists() returns true. I am out till next week. This was a fruitless day.. ___ dev-embedding mailing list dev-embedding@lists.mozilla.org

Re: Registering components under XULRunner 24

2014-02-14 Thread Christian Sell
I tried that, too, but it didn't do the job either. However, today I found this article: https://developer.mozilla.org/en-US/docs/Mozilla/XPCOM/XPCOM_changes_in_Gecko_2.0, which seems to indicate that I also have to update the javascript component code. I'll do that on monday. thanks for your

Re: Registering components under XULRunner 24

2014-02-17 Thread Christian Sell
so I've tried to follow the guide under the URL in my previous mail, but still no success. However, looking at the source code of my component, and the sample code under the mentioned URL, I found an import reference to an external file:

Re: Registering components under XULRunner 24

2014-02-17 Thread Christian Sell
the AppendRelativePath actually returns an NS_ERROR_UNRECOGNIZED_PATH (never checked the return code before)! The file does exist on the filesystem! How in the world am I to create the nsIFile object? What is going wrong?? ___ dev-embedding mailing

Re: Registering components under XULRunner 24

2014-02-17 Thread Christian Sell
replaced the file-AppendRelativePath(NS_LITERAL_STRING(components/components.manifest)); with 2 calls: retval = file-Append(NS_LITERAL_STRING(components)); retval = file-Append(NS_LITERAL_STRING(components.manifest)); now the manifest file is detected and parsed, resulting in a

Re: Registering components under XULRunner 24

2014-02-17 Thread Christian Sell
heres the code that fails to load the component: nsCOMPtrnsIRegionCapture regionPrinter; retval = servMan-GetServiceByContractID(@mozilla.org/regioncapture;1, NS_GET_IID(nsIRegionCapture), getter_AddRefs(regionPrinter)); ___ dev-embedding mailing

Re: Registering components under XULRunner 24

2014-02-17 Thread Christian Sell
added another line to components.manifest, as mentioned in the referenced document: category profile-after-change RegionCapture @mozilla.org/regioncapture;1 still getting NS_ERROR_FACTORY_NOT_REGISTERED. There are no error messages in nsIConsoleService (at least none my listener gets). This is

Re: Registering components under XULRunner 24

2014-02-17 Thread Christian Sell
ok, I finally got it registered, there was one change that I had applied to the wrong copy of one file. So, in summary, heres the steps I had to go through: 1. create a manifest file with the described entries 2. change the component javascript file and add the generateNSGetFactory thingy 3.

embedded XULRunner 24: AddonManager not initialized

2014-02-20 Thread Christian Sell
Hello, after getting components to register successfully in our Java embedded XULRunner, I am now dealing with plugins/addons. In particular, we need plugins for PDF. First thing I did was to copy the related executables (DLLs to the plugins directory, EXEs to the xulrunner base directory).

Re: Java: how to use xulrunner to convert html to postscript?

2014-02-20 Thread Christian Sell
we have done something similar, actually also from within SWT/Java. Heres some caveats: 1. If you want a version of XULRunner 10, you must move up to at least Eclipse 4.4M5. That version supports XULRunner 24. You can, however, manipulate your Eclipse target to include the 4.4M5 SWT bundles

how to implement nsIWepProgressListener in C++

2014-02-20 Thread Christian Sell
Hello, I have the following class declaration: class MyLocationListener: public nsIWebProgressListener { public: MyLocationListener(); virtual ~MyLocationListener(); NS_DECL_ISUPPORTS NS_DECL_NSIWEBPROGRESSLISTENER }; and the corresponding implementation. I am using this class in the

Re: how to implement nsIWepProgressListener in C++

2014-02-24 Thread Christian Sell
ok, I have finally managed. Heres the code: //class decl class LocationListener: public nsIWebProgressListener, public nsSupportsWeakReference { public: LocationListener(); virtual ~LocationListenerW(); NS_DECL_ISUPPORTS NS_DECL_NSIWEBPROGRESSLISTENER }; //class impl