mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-30 04:17:31 +09:00
Issue #80 - De-unify dom/plugins/ipc
This commit is contained in:
parent
e3f9a09400
commit
3dac0f5daf
9 changed files with 22 additions and 14 deletions
|
|
@ -6,6 +6,7 @@
|
||||||
#define _include_dom_plugins_ipc_D3D11SurfaceHolder_h__
|
#define _include_dom_plugins_ipc_D3D11SurfaceHolder_h__
|
||||||
|
|
||||||
#include "ipc/IPCMessageUtils.h"
|
#include "ipc/IPCMessageUtils.h"
|
||||||
|
#include "mozilla/gfx/2D.h"
|
||||||
#include "mozilla/gfx/Point.h"
|
#include "mozilla/gfx/Point.h"
|
||||||
#include "mozilla/gfx/Types.h"
|
#include "mozilla/gfx/Types.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
#define dom_plugins_ipc_PluginAsyncSurrogate_h
|
#define dom_plugins_ipc_PluginAsyncSurrogate_h
|
||||||
|
|
||||||
#include "mozilla/UniquePtr.h"
|
#include "mozilla/UniquePtr.h"
|
||||||
|
#include "mozilla/WeakPtr.h"
|
||||||
#include "npapi.h"
|
#include "npapi.h"
|
||||||
#include "npfunctions.h"
|
#include "npfunctions.h"
|
||||||
#include "npruntime.h"
|
#include "npruntime.h"
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
#include "mozilla/BasicEvents.h"
|
#include "mozilla/BasicEvents.h"
|
||||||
#include "mozilla/Preferences.h"
|
#include "mozilla/Preferences.h"
|
||||||
|
#include "D3D11SurfaceHolder.h"
|
||||||
#include "PluginInstanceParent.h"
|
#include "PluginInstanceParent.h"
|
||||||
#include "BrowserStreamParent.h"
|
#include "BrowserStreamParent.h"
|
||||||
#include "PluginAsyncSurrogate.h"
|
#include "PluginAsyncSurrogate.h"
|
||||||
|
|
@ -69,8 +70,10 @@ extern const wchar_t* kFlashFullscreenClass;
|
||||||
#include <ApplicationServices/ApplicationServices.h>
|
#include <ApplicationServices/ApplicationServices.h>
|
||||||
#endif // defined(XP_MACOSX)
|
#endif // defined(XP_MACOSX)
|
||||||
|
|
||||||
|
using namespace mozilla;
|
||||||
using namespace mozilla::plugins;
|
using namespace mozilla::plugins;
|
||||||
using namespace mozilla::layers;
|
using namespace mozilla::layers;
|
||||||
|
using namespace mozilla::gfx;
|
||||||
using namespace mozilla::gl;
|
using namespace mozilla::gl;
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
|
|
@ -29,10 +29,14 @@
|
||||||
#include "nsNPAPIPlugin.h"
|
#include "nsNPAPIPlugin.h"
|
||||||
#include "nsPrintfCString.h"
|
#include "nsPrintfCString.h"
|
||||||
#include "prsystem.h"
|
#include "prsystem.h"
|
||||||
|
#include "PluginBackgroundDestroyer.h"
|
||||||
#include "PluginQuirks.h"
|
#include "PluginQuirks.h"
|
||||||
|
#include "PluginStreamParent.h"
|
||||||
|
#include "StreamNotifyParent.h"
|
||||||
#include "GeckoProfiler.h"
|
#include "GeckoProfiler.h"
|
||||||
#include "nsPluginTags.h"
|
#include "nsPluginTags.h"
|
||||||
#include "nsUnicharUtils.h"
|
#include "nsUnicharUtils.h"
|
||||||
|
#include "mozilla/layers/ImageBridgeChild.h"
|
||||||
#include "mozilla/layers/TextureClientRecycleAllocator.h"
|
#include "mozilla/layers/TextureClientRecycleAllocator.h"
|
||||||
|
|
||||||
#ifdef XP_WIN
|
#ifdef XP_WIN
|
||||||
|
|
@ -56,6 +60,7 @@ using mozilla::ipc::MessageChannel;
|
||||||
using mozilla::ipc::GeckoChildProcessHost;
|
using mozilla::ipc::GeckoChildProcessHost;
|
||||||
|
|
||||||
using namespace mozilla;
|
using namespace mozilla;
|
||||||
|
using namespace mozilla::layers;
|
||||||
using namespace mozilla::plugins;
|
using namespace mozilla::plugins;
|
||||||
using namespace mozilla::plugins::parent;
|
using namespace mozilla::plugins::parent;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,8 @@
|
||||||
#ifndef dom_plugins_PluginQuirks_h
|
#ifndef dom_plugins_PluginQuirks_h
|
||||||
#define dom_plugins_PluginQuirks_h
|
#define dom_plugins_PluginQuirks_h
|
||||||
|
|
||||||
|
#include "nsString.h"
|
||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
namespace plugins {
|
namespace plugins {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
#define dom_plugins_PluginUtilsWin_h 1
|
#define dom_plugins_PluginUtilsWin_h 1
|
||||||
|
|
||||||
#include "npapi.h"
|
#include "npapi.h"
|
||||||
|
#include "PluginModuleParent.h"
|
||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
namespace plugins {
|
namespace plugins {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
Program('plugin-hang-ui')
|
Program('plugin-hang-ui')
|
||||||
|
|
||||||
UNIFIED_SOURCES += [
|
SOURCES += [
|
||||||
'MiniShmChild.cpp',
|
'MiniShmChild.cpp',
|
||||||
'PluginHangUIChild.cpp',
|
'PluginHangUIChild.cpp',
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
SharedLibrary('plugin_child_interpose')
|
SharedLibrary('plugin_child_interpose')
|
||||||
|
|
||||||
UNIFIED_SOURCES += [ "%s.mm" % (LIBRARY_NAME) ]
|
SOURCES += [ "%s.mm" % (LIBRARY_NAME) ]
|
||||||
|
|
||||||
OS_LIBS += ['-framework Carbon']
|
OS_LIBS += ['-framework Carbon']
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -48,13 +48,11 @@ if CONFIG['OS_ARCH'] == 'WINNT':
|
||||||
EXPORTS.mozilla.plugins += [
|
EXPORTS.mozilla.plugins += [
|
||||||
'PluginSurfaceParent.h',
|
'PluginSurfaceParent.h',
|
||||||
]
|
]
|
||||||
UNIFIED_SOURCES += [
|
SOURCES += [
|
||||||
|
'MiniShmParent.cpp',
|
||||||
'PluginHangUIParent.cpp',
|
'PluginHangUIParent.cpp',
|
||||||
'PluginSurfaceParent.cpp',
|
'PluginSurfaceParent.cpp',
|
||||||
]
|
]
|
||||||
SOURCES += [
|
|
||||||
'MiniShmParent.cpp', # Issues with CreateEvent
|
|
||||||
]
|
|
||||||
DEFINES['MOZ_HANGUI_PROCESS_NAME'] = '"plugin-hang-ui%s"' % CONFIG['BIN_SUFFIX']
|
DEFINES['MOZ_HANGUI_PROCESS_NAME'] = '"plugin-hang-ui%s"' % CONFIG['BIN_SUFFIX']
|
||||||
LOCAL_INCLUDES += [
|
LOCAL_INCLUDES += [
|
||||||
'/widget',
|
'/widget',
|
||||||
|
|
@ -66,15 +64,17 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
||||||
'PluginInterposeOSX.h',
|
'PluginInterposeOSX.h',
|
||||||
]
|
]
|
||||||
|
|
||||||
UNIFIED_SOURCES += [
|
SOURCES += [
|
||||||
'BrowserStreamChild.cpp',
|
'BrowserStreamChild.cpp',
|
||||||
'BrowserStreamParent.cpp',
|
'BrowserStreamParent.cpp',
|
||||||
'ChildAsyncCall.cpp',
|
'ChildAsyncCall.cpp',
|
||||||
'ChildTimer.cpp',
|
'ChildTimer.cpp',
|
||||||
'PluginAsyncSurrogate.cpp',
|
'PluginAsyncSurrogate.cpp',
|
||||||
'PluginBackgroundDestroyer.cpp',
|
'PluginBackgroundDestroyer.cpp',
|
||||||
|
'PluginInstanceChild.cpp',
|
||||||
'PluginInstanceParent.cpp',
|
'PluginInstanceParent.cpp',
|
||||||
'PluginMessageUtils.cpp',
|
'PluginMessageUtils.cpp',
|
||||||
|
'PluginModuleChild.cpp',
|
||||||
'PluginModuleParent.cpp',
|
'PluginModuleParent.cpp',
|
||||||
'PluginProcessChild.cpp',
|
'PluginProcessChild.cpp',
|
||||||
'PluginProcessParent.cpp',
|
'PluginProcessParent.cpp',
|
||||||
|
|
@ -83,23 +83,18 @@ UNIFIED_SOURCES += [
|
||||||
'PluginScriptableObjectParent.cpp',
|
'PluginScriptableObjectParent.cpp',
|
||||||
'PluginStreamChild.cpp',
|
'PluginStreamChild.cpp',
|
||||||
'PluginStreamParent.cpp',
|
'PluginStreamParent.cpp',
|
||||||
]
|
|
||||||
|
|
||||||
SOURCES += [
|
|
||||||
'PluginInstanceChild.cpp', # 'PluginThreadCallback' : ambiguous symbol
|
|
||||||
'PluginModuleChild.cpp', # Redefinition of mozilla::WindowsDllInterceptor sUser32Intercept
|
|
||||||
'PluginWidgetChild.cpp',
|
'PluginWidgetChild.cpp',
|
||||||
'PluginWidgetParent.cpp',
|
'PluginWidgetParent.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
||||||
UNIFIED_SOURCES += [
|
SOURCES += [
|
||||||
'PluginInterposeOSX.mm',
|
'PluginInterposeOSX.mm',
|
||||||
'PluginUtilsOSX.mm',
|
'PluginUtilsOSX.mm',
|
||||||
]
|
]
|
||||||
|
|
||||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
||||||
UNIFIED_SOURCES += [
|
SOURCES += [
|
||||||
'D3D11SurfaceHolder.cpp',
|
'D3D11SurfaceHolder.cpp',
|
||||||
'PluginUtilsWin.cpp'
|
'PluginUtilsWin.cpp'
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue