mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 00:38:39 +09:00
Issue #80 - De-unify dom/plugins/base
This commit is contained in:
parent
f5938791ba
commit
e3f9a09400
8 changed files with 17 additions and 10 deletions
|
|
@ -38,10 +38,12 @@ EXPORTS.mozilla += [
|
|||
'PluginPRLibrary.h',
|
||||
]
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'nsJSNPRuntime.cpp',
|
||||
'nsNPAPIPlugin.cpp',
|
||||
'nsNPAPIPluginInstance.cpp',
|
||||
'nsNPAPIPluginStreamListener.cpp',
|
||||
'nsPluginHost.cpp',
|
||||
'nsPluginInstanceOwner.cpp',
|
||||
'nsPluginModule.cpp',
|
||||
'nsPluginStreamListenerPeer.cpp',
|
||||
|
|
@ -49,24 +51,19 @@ UNIFIED_SOURCES += [
|
|||
'PluginPRLibrary.cpp',
|
||||
]
|
||||
|
||||
SOURCES += [
|
||||
'nsNPAPIPlugin.cpp', # Conflict with X11 headers
|
||||
'nsPluginHost.cpp', # Conflict with NS_NPAPIPLUGIN_CALLBACK
|
||||
]
|
||||
|
||||
if CONFIG['OS_ARCH'] == 'WINNT':
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'nsPluginDirServiceProvider.cpp',
|
||||
'nsPluginNativeWindowWin.cpp',
|
||||
'nsPluginsDirWin.cpp',
|
||||
]
|
||||
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'nsPluginNativeWindow.cpp',
|
||||
'nsPluginsDirDarwin.cpp',
|
||||
]
|
||||
else:
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'nsPluginsDirUnix.cpp',
|
||||
]
|
||||
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
|
|
@ -75,7 +72,7 @@ else:
|
|||
'nsPluginNativeWindowGtk.cpp',
|
||||
]
|
||||
else:
|
||||
UNIFIED_SOURCES += [
|
||||
SOURCES += [
|
||||
'nsPluginNativeWindow.cpp',
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@
|
|||
#include "nsILoadContext.h"
|
||||
#include "mozilla/dom/HTMLObjectElementBinding.h"
|
||||
#include "AudioChannelService.h"
|
||||
#include "GeckoProfiler.h"
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::dom;
|
||||
|
|
|
|||
|
|
@ -9,11 +9,13 @@
|
|||
#include "nsDirectoryServiceDefs.h"
|
||||
#include "nsDirectoryServiceUtils.h"
|
||||
#include "nsIFile.h"
|
||||
#include "nsIHttpChannel.h"
|
||||
#include "nsNetUtil.h"
|
||||
#include "nsPluginHost.h"
|
||||
#include "nsNPAPIPlugin.h"
|
||||
#include "nsPluginLogging.h"
|
||||
#include "nsPluginStreamListenerPeer.h"
|
||||
#include "GeckoProfiler.h"
|
||||
|
||||
#include <stdint.h>
|
||||
#include <algorithm>
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
#include "nsIHTTPHeaderListener.h"
|
||||
#include "nsIRequest.h"
|
||||
#include "nsITimer.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsCOMArray.h"
|
||||
#include "nsIOutputStream.h"
|
||||
#include "nsIPluginInstanceOwner.h"
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@ using mozilla::DefaultXDisplay;
|
|||
#include "mozilla/IMEStateManager.h"
|
||||
#include "mozilla/TextComposition.h"
|
||||
#include "mozilla/AutoRestore.h"
|
||||
#include "mozilla/plugins/PluginAsyncSurrogate.h"
|
||||
|
||||
#include "nsContentCID.h"
|
||||
#include "nsWidgetsCID.h"
|
||||
|
|
@ -90,6 +91,7 @@ static NS_DEFINE_CID(kAppShellCID, NS_APPSHELL_CID);
|
|||
using namespace mozilla;
|
||||
using namespace mozilla::dom;
|
||||
using namespace mozilla::layers;
|
||||
using namespace mozilla::plugins;
|
||||
|
||||
static inline nsPoint AsNsPoint(const nsIntPoint &p) {
|
||||
return nsPoint(p.x, p.y);
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
#include "mozilla/BasicEvents.h"
|
||||
#include "mozilla/DebugOnly.h"
|
||||
#include "nsPluginHost.h"
|
||||
|
||||
#include "windows.h"
|
||||
#include "windowsx.h"
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@
|
|||
#include "nsPluginInstanceOwner.h"
|
||||
#include "nsDataHashtable.h"
|
||||
#include "nsNullPrincipal.h"
|
||||
#include "prtime.h"
|
||||
|
||||
#define BYTERANGE_REQUEST_CONTEXT 0x01020304
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
#include "nsIBlocklistService.h"
|
||||
#include "nsIUnicodeDecoder.h"
|
||||
#include "nsIPlatformCharset.h"
|
||||
#include "nsIURI.h"
|
||||
#include "nsPluginLogging.h"
|
||||
#include "nsNPAPIPlugin.h"
|
||||
#include "nsCharSeparatedTokenizer.h"
|
||||
|
|
@ -26,6 +27,7 @@
|
|||
|
||||
using mozilla::dom::EncodingUtils;
|
||||
using mozilla::dom::FakePluginTagInit;
|
||||
using mozilla::dom::FakePluginMimeEntry;
|
||||
using namespace mozilla;
|
||||
|
||||
// These legacy flags are used in the plugin registry. The states are now
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue