diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-02-20 12:44:29 -0500 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-04-14 12:49:22 +0200 |
commit | 2f23073a3a4d00f0f46849045aad41913f977b5a (patch) | |
tree | 207ed283735ff6c5c54e7c977f172d82cd47f74a /dom/plugins/ipc | |
parent | 496fbaf738fb00824d7e972e874bfdbe85caaee5 (diff) | |
download | UXP-2f23073a3a4d00f0f46849045aad41913f977b5a.tar UXP-2f23073a3a4d00f0f46849045aad41913f977b5a.tar.gz UXP-2f23073a3a4d00f0f46849045aad41913f977b5a.tar.lz UXP-2f23073a3a4d00f0f46849045aad41913f977b5a.tar.xz UXP-2f23073a3a4d00f0f46849045aad41913f977b5a.zip |
Issue #1053 - Remove android support from NPAPI
Diffstat (limited to 'dom/plugins/ipc')
-rw-r--r-- | dom/plugins/ipc/NPEventAndroid.h | 55 | ||||
-rw-r--r-- | dom/plugins/ipc/PluginInstanceChild.cpp | 2 | ||||
-rw-r--r-- | dom/plugins/ipc/PluginInstanceParent.cpp | 3 | ||||
-rw-r--r-- | dom/plugins/ipc/PluginMessageUtils.h | 4 | ||||
-rw-r--r-- | dom/plugins/ipc/moz.build | 1 |
5 files changed, 1 insertions, 64 deletions
diff --git a/dom/plugins/ipc/NPEventAndroid.h b/dom/plugins/ipc/NPEventAndroid.h deleted file mode 100644 index f664af857..000000000 --- a/dom/plugins/ipc/NPEventAndroid.h +++ /dev/null @@ -1,55 +0,0 @@ -/* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 8 -*- */ -/* vim: set sw=4 ts=8 et tw=80 ft=cpp : */ -/* 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/. */ - -// This is a NPEventX11.h derived stub for Android -// Plugins aren't actually supported yet - -#ifndef mozilla_dom_plugins_NPEventAndroid_h -#define mozilla_dom_plugins_NPEventAndroid_h - -#include "npapi.h" - -namespace mozilla { - -namespace plugins { - -struct NPRemoteEvent { - NPEvent event; -}; - -} - -} - - -namespace IPC { - -template <> -struct ParamTraits<mozilla::plugins::NPRemoteEvent> -{ - typedef mozilla::plugins::NPRemoteEvent paramType; - - static void Write(Message* aMsg, const paramType& aParam) - { - aMsg->WriteBytes(&aParam, sizeof(paramType)); - } - - static bool Read(const Message* aMsg, PickleIterator* aIter, paramType* aResult) - { - return aMsg->ReadBytesInto(aIter, aResult, sizeof(paramType)); - } - - static void Log(const paramType& aParam, std::wstring* aLog) - { - // TODO - aLog->append(L"(AndroidEvent)"); - } -}; - -} // namespace IPC - - -#endif // mozilla_dom_plugins_NPEventAndroid_h diff --git a/dom/plugins/ipc/PluginInstanceChild.cpp b/dom/plugins/ipc/PluginInstanceChild.cpp index 3f2cdbc13..a4f6b6b51 100644 --- a/dom/plugins/ipc/PluginInstanceChild.cpp +++ b/dom/plugins/ipc/PluginInstanceChild.cpp @@ -1427,8 +1427,6 @@ PluginInstanceChild::AnswerNPP_SetWindow(const NPRemoteWindow& aWindow) if (mPluginIface->setwindow) (void) mPluginIface->setwindow(&mData, &mWindow); -#elif defined(ANDROID) - // TODO: Need Android impl #elif defined(MOZ_WIDGET_UIKIT) // Don't care #else diff --git a/dom/plugins/ipc/PluginInstanceParent.cpp b/dom/plugins/ipc/PluginInstanceParent.cpp index bdd15ca99..24b1410bc 100644 --- a/dom/plugins/ipc/PluginInstanceParent.cpp +++ b/dom/plugins/ipc/PluginInstanceParent.cpp @@ -265,9 +265,6 @@ PluginInstanceParent::AnswerNPN_GetValue_NPNVnetscapeWindow(NativeWindowHandle* XID id; #elif defined(XP_DARWIN) intptr_t id; -#elif defined(ANDROID) - // TODO: Need Android impl - int id; #else #warning Implement me #endif diff --git a/dom/plugins/ipc/PluginMessageUtils.h b/dom/plugins/ipc/PluginMessageUtils.h index 4532fac93..a9cd52ae2 100644 --- a/dom/plugins/ipc/PluginMessageUtils.h +++ b/dom/plugins/ipc/PluginMessageUtils.h @@ -111,7 +111,7 @@ struct NPAudioDeviceChangeDetailsIPC typedef HWND NativeWindowHandle; #elif defined(MOZ_X11) typedef XID NativeWindowHandle; -#elif defined(XP_DARWIN) || defined(ANDROID) +#elif defined(XP_DARWIN) typedef intptr_t NativeWindowHandle; // never actually used, will always be 0 #else #error Need NativeWindowHandle for this platform @@ -736,8 +736,6 @@ struct ParamTraits<mozilla::plugins::NPAudioDeviceChangeDetailsIPC> # include "mozilla/plugins/NPEventOSX.h" #elif defined(XP_WIN) # include "mozilla/plugins/NPEventWindows.h" -#elif defined(ANDROID) -# include "mozilla/plugins/NPEventAndroid.h" #elif defined(XP_UNIX) # include "mozilla/plugins/NPEventUnix.h" #else diff --git a/dom/plugins/ipc/moz.build b/dom/plugins/ipc/moz.build index 15ed6410d..051d5a3b4 100644 --- a/dom/plugins/ipc/moz.build +++ b/dom/plugins/ipc/moz.build @@ -17,7 +17,6 @@ EXPORTS.mozilla.plugins += [ 'BrowserStreamParent.h', 'ChildAsyncCall.h', 'ChildTimer.h', - 'NPEventAndroid.h', 'NPEventOSX.h', 'NPEventUnix.h', 'NPEventWindows.h', |