Bug 528425 - exthandler doesnt compile when using widget=cairo-qt. r=sdwilsh

This commit is contained in:
Doug Turner 2009-11-13 11:47:27 -08:00
Родитель 4fb475eb16
Коммит 00a8997af3
3 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -51,11 +51,11 @@
#ifdef MOZ_WIDGET_GTK2
#include <glib.h>
#include <glib-object.h>
#endif
#ifdef MOZ_PLATFORM_HILDON
#include <libintl.h>
#endif
#endif
/* static */ PRBool
nsGNOMERegistry::HandlerExists(const char *aProtocolScheme)

Просмотреть файл

@ -37,7 +37,7 @@
*
* ***** END LICENSE BLOCK ***** */
#ifdef MOZ_PLATFORM_HILDON
#if defined (MOZ_PLATFORM_HILDON) && defined (MOZ_ENABLE_GNOMEVFS)
#include <glib.h>
#include <hildon-uri.h>
#include <hildon-mime.h>
@ -57,7 +57,7 @@ nsresult
nsMIMEInfoUnix::LoadUriInternal(nsIURI * aURI)
{
nsresult rv = nsGNOMERegistry::LoadURL(aURI);
#ifdef MOZ_PLATFORM_HILDON
#if defined (MOZ_PLATFORM_HILDON) && defined (MOZ_ENABLE_GNOMEVFS)
if (NS_FAILED(rv)){
HildonURIAction *action = hildon_uri_get_default_action(mType.get(), nsnull);
if (action) {
@ -90,7 +90,7 @@ nsMIMEInfoUnix::GetHasDefaultHandler(PRBool *_retval)
if (*_retval)
return NS_OK;
#ifdef MOZ_PLATFORM_HILDON
#if defined (MOZ_PLATFORM_HILDON) && defined (MOZ_ENABLE_GNOMEVFS)
HildonURIAction *action = hildon_uri_get_default_action(mType.get(), nsnull);
if (action) {
*_retval = PR_TRUE;
@ -109,7 +109,7 @@ nsMIMEInfoUnix::LaunchDefaultWithFile(nsIFile *aFile)
nsCAutoString nativePath;
aFile->GetNativePath(nativePath);
#ifdef MOZ_PLATFORM_HILDON
#if defined (MOZ_PLATFORM_HILDON) && defined (MOZ_ENABLE_GNOMEVFS)
if(NS_SUCCEEDED(LaunchDefaultWithDBus(PromiseFlatCString(nativePath).get())))
return NS_OK;
#endif
@ -150,7 +150,7 @@ nsMIMEInfoUnix::LaunchDefaultWithFile(nsIFile *aFile)
return LaunchWithIProcess(mDefaultApplication, nativePath);
}
#ifdef MOZ_PLATFORM_HILDON
#if defined (MOZ_PLATFORM_HILDON) && defined (MOZ_ENABLE_GNOMEVFS)
/* This method tries to launch the associated default handler for the given
* mime/file via hildon specific APIs (in this case hildon_mime_open_file*

Просмотреть файл

@ -57,7 +57,7 @@ protected:
virtual NS_HIDDEN_(nsresult) LoadUriInternal(nsIURI *aURI);
virtual NS_HIDDEN_(nsresult) LaunchDefaultWithFile(nsIFile *aFile);
#ifdef MOZ_PLATFORM_HILDON
#if defined (MOZ_PLATFORM_HILDON) && defined (MOZ_ENABLE_GNOMEVFS)
nsresult LaunchDefaultWithDBus(const char *aFilePath);
NS_IMETHOD GetPossibleApplicationHandlers(nsIMutableArray * *aPossibleAppHandlers);
#endif