From 00a8997af37b3a56218f3689c232473d5e06a0ad Mon Sep 17 00:00:00 2001 From: Doug Turner Date: Fri, 13 Nov 2009 11:47:27 -0800 Subject: [PATCH] Bug 528425 - exthandler doesnt compile when using widget=cairo-qt. r=sdwilsh --- uriloader/exthandler/unix/nsGNOMERegistry.cpp | 2 +- uriloader/exthandler/unix/nsMIMEInfoUnix.cpp | 10 +++++----- uriloader/exthandler/unix/nsMIMEInfoUnix.h | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/uriloader/exthandler/unix/nsGNOMERegistry.cpp b/uriloader/exthandler/unix/nsGNOMERegistry.cpp index f6b26a7fead..509b153298a 100644 --- a/uriloader/exthandler/unix/nsGNOMERegistry.cpp +++ b/uriloader/exthandler/unix/nsGNOMERegistry.cpp @@ -51,11 +51,11 @@ #ifdef MOZ_WIDGET_GTK2 #include #include +#endif #ifdef MOZ_PLATFORM_HILDON #include #endif -#endif /* static */ PRBool nsGNOMERegistry::HandlerExists(const char *aProtocolScheme) diff --git a/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp b/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp index b02de204f98..ddbffba415f 100644 --- a/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp +++ b/uriloader/exthandler/unix/nsMIMEInfoUnix.cpp @@ -37,7 +37,7 @@ * * ***** END LICENSE BLOCK ***** */ -#ifdef MOZ_PLATFORM_HILDON +#if defined (MOZ_PLATFORM_HILDON) && defined (MOZ_ENABLE_GNOMEVFS) #include #include #include @@ -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* diff --git a/uriloader/exthandler/unix/nsMIMEInfoUnix.h b/uriloader/exthandler/unix/nsMIMEInfoUnix.h index 056c264adca..64c7cace1b0 100644 --- a/uriloader/exthandler/unix/nsMIMEInfoUnix.h +++ b/uriloader/exthandler/unix/nsMIMEInfoUnix.h @@ -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