mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1171131 - Make dom/plugins/ipc build for iOS. r=jimm
This commit is contained in:
parent
11d4d96764
commit
7f09fa3724
@ -130,7 +130,7 @@ PluginInstanceChild::PluginInstanceChild(const NPPluginFuncs* aPluginIface,
|
||||
, mMode(aMode)
|
||||
, mNames(aNames)
|
||||
, mValues(aValues)
|
||||
#if defined(XP_MACOSX)
|
||||
#if defined(XP_DARWIN)
|
||||
, mContentsScaleFactor(1.0)
|
||||
#endif
|
||||
, mDrawingModel(kDefaultDrawingModel)
|
||||
@ -1281,6 +1281,8 @@ PluginInstanceChild::AnswerNPP_SetWindow(const NPRemoteWindow& aWindow)
|
||||
// TODO: Need Android impl
|
||||
#elif defined(MOZ_WIDGET_QT)
|
||||
// TODO: Need QT-nonX impl
|
||||
#elif defined(MOZ_WIDGET_UIKIT)
|
||||
// Don't care
|
||||
#else
|
||||
# error Implement me for your OS
|
||||
#endif
|
||||
@ -2933,7 +2935,7 @@ PluginInstanceChild::MaybeCreatePlatformHelperSurface(void)
|
||||
bool
|
||||
PluginInstanceChild::EnsureCurrentBuffer(void)
|
||||
{
|
||||
#ifndef XP_MACOSX
|
||||
#ifndef XP_DARWIN
|
||||
nsIntRect toInvalidate(0, 0, 0, 0);
|
||||
gfxIntSize winSize = gfxIntSize(mWindow.width, mWindow.height);
|
||||
|
||||
@ -2979,7 +2981,7 @@ PluginInstanceChild::EnsureCurrentBuffer(void)
|
||||
}
|
||||
|
||||
return true;
|
||||
#else // XP_MACOSX
|
||||
#elif defined(XP_MACOSX)
|
||||
|
||||
if (!mDoubleBufferCARenderer.HasCALayer()) {
|
||||
void *caLayer = nullptr;
|
||||
@ -3033,9 +3035,8 @@ PluginInstanceChild::EnsureCurrentBuffer(void)
|
||||
nsIntRect toInvalidate(0, 0, mWindow.width, mWindow.height);
|
||||
mAccumulatedInvalidRect.UnionRect(mAccumulatedInvalidRect, toInvalidate);
|
||||
}
|
||||
|
||||
return true;
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -374,7 +374,7 @@ private:
|
||||
InfallibleTArray<nsCString> mValues;
|
||||
NPP_t mData;
|
||||
NPWindow mWindow;
|
||||
#if defined(XP_MACOSX)
|
||||
#if defined(XP_DARWIN)
|
||||
double mContentsScaleFactor;
|
||||
#endif
|
||||
int16_t mDrawingModel;
|
||||
|
@ -270,7 +270,7 @@ PluginInstanceParent::AnswerNPN_GetValue_NPNVnetscapeWindow(NativeWindowHandle*
|
||||
HWND id;
|
||||
#elif defined(MOZ_X11)
|
||||
XID id;
|
||||
#elif defined(XP_MACOSX)
|
||||
#elif defined(XP_DARWIN)
|
||||
intptr_t id;
|
||||
#elif defined(ANDROID)
|
||||
// TODO: Need Android impl
|
||||
|
@ -280,7 +280,7 @@ PluginModuleChild::InitForChrome(const std::string& aPluginFilename,
|
||||
|
||||
nsPluginFile pluginFile(localFile);
|
||||
|
||||
#if defined(MOZ_X11) || defined(OS_MACOSX)
|
||||
#if defined(MOZ_X11) || defined(XP_MACOSX)
|
||||
nsPluginInfo info = nsPluginInfo();
|
||||
if (NS_FAILED(pluginFile.GetPluginInfo(info, &mLibrary))) {
|
||||
return false;
|
||||
@ -291,7 +291,7 @@ PluginModuleChild::InitForChrome(const std::string& aPluginFilename,
|
||||
if (StringBeginsWith(nsDependentCString(info.fDescription), flash10Head)) {
|
||||
AddQuirk(QUIRK_FLASH_EXPOSE_COORD_TRANSLATION);
|
||||
}
|
||||
#else // defined(OS_MACOSX)
|
||||
#else // defined(XP_MACOSX)
|
||||
const char* namePrefix = "Plugin Content";
|
||||
char nameBuffer[80];
|
||||
snprintf(nameBuffer, sizeof(nameBuffer), "%s (%s)", namePrefix, info.fName);
|
||||
|
Loading…
Reference in New Issue
Block a user