mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1008795 - Remove MOZ_ENABLE_MEEGOTOUCHSHARE. r=romaxa
This commit is contained in:
parent
88c977341d
commit
ece5a88ece
@ -1315,9 +1315,6 @@ QtSparql/qsparqlresult.h
|
||||
#if MOZ_TREE_PIXMAN!=1
|
||||
pixman.h
|
||||
#endif
|
||||
#if MOZ_ENABLE_MEEGOTOUCHSHARE
|
||||
shareuiinterface.h
|
||||
#endif
|
||||
#if MOZ_NATIVE_LIBVPX==1
|
||||
vpx/vpx_codec.h
|
||||
vpx/vpx_decoder.h
|
||||
|
@ -24,10 +24,8 @@
|
||||
#ifdef MOZ_ENABLE_DBUS
|
||||
#include "nsDBusHandlerApp.h"
|
||||
#endif
|
||||
#if defined(MOZ_WIDGET_ANDROID) || defined(MOZ_ENABLE_MEEGOTOUCHSHARE)
|
||||
#include "nsExternalSharingAppService.h"
|
||||
#endif
|
||||
#if defined(MOZ_WIDGET_ANDROID)
|
||||
#include "nsExternalSharingAppService.h"
|
||||
#include "nsExternalURLHandlerService.h"
|
||||
#endif
|
||||
|
||||
@ -85,10 +83,8 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(PlatformLocalHandlerApp_t)
|
||||
#ifdef MOZ_ENABLE_DBUS
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsDBusHandlerApp)
|
||||
#endif
|
||||
#if defined(MOZ_WIDGET_ANDROID) || defined(MOZ_ENABLE_MEEGOTOUCHSHARE)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsExternalSharingAppService)
|
||||
#endif
|
||||
#if defined(MOZ_WIDGET_ANDROID)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsExternalSharingAppService)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsExternalURLHandlerService)
|
||||
#endif
|
||||
|
||||
@ -115,10 +111,8 @@ NS_DEFINE_NAMED_CID(NS_LOCALHANDLERAPP_CID);
|
||||
#ifdef MOZ_ENABLE_DBUS
|
||||
NS_DEFINE_NAMED_CID(NS_DBUSHANDLERAPP_CID);
|
||||
#endif
|
||||
#if defined(MOZ_WIDGET_ANDROID) || defined(MOZ_ENABLE_MEEGOTOUCHSHARE)
|
||||
NS_DEFINE_NAMED_CID(NS_EXTERNALSHARINGAPPSERVICE_CID);
|
||||
#endif
|
||||
#if defined(MOZ_WIDGET_ANDROID)
|
||||
NS_DEFINE_NAMED_CID(NS_EXTERNALSHARINGAPPSERVICE_CID);
|
||||
NS_DEFINE_NAMED_CID(NS_EXTERNALURLHANDLERSERVICE_CID);
|
||||
#endif
|
||||
NS_DEFINE_NAMED_CID(NS_SHENTRY_CID);
|
||||
@ -144,10 +138,8 @@ const mozilla::Module::CIDEntry kDocShellCIDs[] = {
|
||||
#ifdef MOZ_ENABLE_DBUS
|
||||
{ &kNS_DBUSHANDLERAPP_CID, false, nullptr, nsDBusHandlerAppConstructor },
|
||||
#endif
|
||||
#if defined(MOZ_WIDGET_ANDROID) || defined(MOZ_ENABLE_MEEGOTOUCHSHARE)
|
||||
{ &kNS_EXTERNALSHARINGAPPSERVICE_CID, false, nullptr, nsExternalSharingAppServiceConstructor },
|
||||
#endif
|
||||
#if defined(MOZ_WIDGET_ANDROID)
|
||||
{ &kNS_EXTERNALSHARINGAPPSERVICE_CID, false, nullptr, nsExternalSharingAppServiceConstructor },
|
||||
{ &kNS_EXTERNALURLHANDLERSERVICE_CID, false, nullptr, nsExternalURLHandlerServiceConstructor },
|
||||
#endif
|
||||
{ &kNS_SHENTRY_CID, false, nullptr, nsSHEntryConstructor },
|
||||
@ -197,10 +189,8 @@ const mozilla::Module::ContractIDEntry kDocShellContracts[] = {
|
||||
#ifdef MOZ_ENABLE_DBUS
|
||||
{ NS_DBUSHANDLERAPP_CONTRACTID, &kNS_DBUSHANDLERAPP_CID },
|
||||
#endif
|
||||
#if defined(MOZ_WIDGET_ANDROID) || defined(MOZ_ENABLE_MEEGOTOUCHSHARE)
|
||||
{ NS_EXTERNALSHARINGAPPSERVICE_CONTRACTID, &kNS_EXTERNALSHARINGAPPSERVICE_CID },
|
||||
#endif
|
||||
#if defined(MOZ_WIDGET_ANDROID)
|
||||
{ NS_EXTERNALSHARINGAPPSERVICE_CONTRACTID, &kNS_EXTERNALSHARINGAPPSERVICE_CID },
|
||||
{ NS_EXTERNALURLHANDLERSERVICE_CONTRACTID, &kNS_EXTERNALURLHANDLERSERVICE_CID },
|
||||
#endif
|
||||
{ NS_SHENTRY_CONTRACTID, &kNS_SHENTRY_CID },
|
||||
|
@ -45,11 +45,6 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
||||
'nsExternalURLHandlerService.h',
|
||||
]]
|
||||
|
||||
if CONFIG['MOZ_ENABLE_MEEGOTOUCHSHARE']:
|
||||
EXPORTS += [
|
||||
osdir + '/nsExternalSharingAppService.h',
|
||||
]
|
||||
|
||||
EXPORTS.mozilla.dom += [
|
||||
'ExternalHelperAppChild.h',
|
||||
'ExternalHelperAppParent.h',
|
||||
@ -111,11 +106,6 @@ if CONFIG['MOZ_ENABLE_DBUS']:
|
||||
'nsDBusHandlerApp.cpp',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_ENABLE_MEEGOTOUCHSHARE']:
|
||||
UNIFIED_SOURCES += [
|
||||
'unix/nsMeegoExternalSharingAppService.cpp',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_ENABLE_CONTENTACTION']:
|
||||
UNIFIED_SOURCES += [
|
||||
'nsContentHandlerApp.cpp',
|
||||
|
@ -1,51 +0,0 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "shareuiinterface.h"
|
||||
#include <MDataUri>
|
||||
#include "nsExternalSharingAppService.h"
|
||||
#include "nsString.h"
|
||||
|
||||
NS_IMPL_ISUPPORTS(nsExternalSharingAppService, nsIExternalSharingAppService)
|
||||
|
||||
nsExternalSharingAppService::nsExternalSharingAppService()
|
||||
: mShareUi(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
nsExternalSharingAppService::~nsExternalSharingAppService()
|
||||
{
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsExternalSharingAppService::ShareWithDefault(const nsAString & aData,
|
||||
const nsAString & aMime,
|
||||
const nsAString & aTitle)
|
||||
{
|
||||
if (!mShareUi)
|
||||
mShareUi = new ShareUiInterface();
|
||||
|
||||
if (!mShareUi || !mShareUi->isValid())
|
||||
return NS_ERROR_NOT_AVAILABLE;
|
||||
|
||||
if (aData.IsEmpty())
|
||||
return NS_ERROR_INVALID_ARG;
|
||||
|
||||
MDataUri uri;
|
||||
uri.setTextData(QString::fromUtf16(aData.BeginReading(), aData.Length()));
|
||||
uri.setMimeType(QString::fromUtf16(aMime.BeginReading(), aMime.Length()));
|
||||
uri.setAttribute("title", QString::fromUtf16(aTitle.BeginReading(), 0));
|
||||
|
||||
mShareUi->share(QStringList(uri.toString()));
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsExternalSharingAppService::GetSharingApps(const nsAString & aMIMEType,
|
||||
uint32_t *aLen,
|
||||
nsISharingHandlerApp ***aHandlers)
|
||||
{
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
Loading…
Reference in New Issue
Block a user