Skip to content

Commit

Permalink
[OS/2] ipc/plugins: Adapt to ESR 45 changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmik committed Jun 28, 2017
1 parent 06ac2e1 commit aaeb27a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions dom/plugins/ipc/PluginInstanceChild.cpp
Expand Up @@ -1168,7 +1168,7 @@ void PluginInstanceChild::DeleteWindow()
bool
PluginInstanceChild::AnswerCreateChildPluginWindow(NativeWindowHandle* aChildPluginWindow)
{
#if defined(XP_WIN)
#if defined(XP_WIN) || defined(XP_OS2)
MOZ_ASSERT(!mPluginWindowHWND);

if (!CreatePluginWindow()) {
Expand All @@ -1188,9 +1188,11 @@ PluginInstanceChild::AnswerCreateChildPluginWindow(NativeWindowHandle* aChildPlu
bool
PluginInstanceChild::RecvCreateChildPopupSurrogate(const NativeWindowHandle& aNetscapeWindow)
{
#if defined(XP_WIN)
#if defined(XP_WIN) || defined(XP_OS2)
mCachedWinlessPluginHWND = aNetscapeWindow;
#if defined(XP_WIN)
CreateWinlessPopupSurrogate();
#endif
return true;
#else
NS_NOTREACHED("PluginInstanceChild::CreateChildPluginWindow not implemented!");
Expand Down
2 changes: 1 addition & 1 deletion dom/plugins/ipc/PluginModuleParent.cpp
Expand Up @@ -2286,7 +2286,7 @@ PluginModuleParent::NP_Initialize(NPNetscapeFuncs* bFuncs, NPError* error)
return NS_OK;
}

#if defined(XP_WIN) || defined(XP_MACOSX)
#if defined(XP_WIN) || defined(XP_MACOSX) || defined(XP_OS2)

nsresult
PluginModuleContentParent::NP_Initialize(NPNetscapeFuncs* bFuncs, NPError* error)
Expand Down
2 changes: 1 addition & 1 deletion dom/plugins/ipc/PluginModuleParent.h
Expand Up @@ -375,7 +375,7 @@ class PluginModuleContentParent : public PluginModuleParent

virtual ~PluginModuleContentParent();

#if defined(XP_WIN) || defined(XP_MACOSX)
#if defined(XP_WIN) || defined(XP_MACOSX) || defined(XP_OS2)
nsresult NP_Initialize(NPNetscapeFuncs* bFuncs, NPError* error) override;
#endif

Expand Down

0 comments on commit aaeb27a

Please sign in to comment.