mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 07:34:20 +00:00
NOT PART OF BUILD. Updated pluginhostctrl project to remove some duff targets and added a README file
This commit is contained in:
parent
dcef7e8328
commit
2633b1998c
85
embedding/browser/activex/src/pluginhostctrl/README.txt
Normal file
85
embedding/browser/activex/src/pluginhostctrl/README.txt
Normal file
@ -0,0 +1,85 @@
|
||||
ActiveX control for hosting Netscape plugins in IE
|
||||
==================================================
|
||||
|
||||
This folder contains an ActiveX control that allows you to host
|
||||
NP API compatible plugins within Internet Explorer. It's pretty simple to
|
||||
use and is a self-contained DLL called pluginhostctrl.dll. It has no runtime
|
||||
or build dependencies on any other
|
||||
part of the Mozilla
|
||||
|
||||
|
||||
To build
|
||||
========
|
||||
|
||||
1. Open pluginhostctrl.dsp
|
||||
2. Build "Win32 Debug" or another target
|
||||
3. Open some of the test files in IE to verify it works
|
||||
|
||||
The control currently reads plugins from your most current Netscape 4.x
|
||||
installation. There is no support for Mozilla or NS 6.x yet.
|
||||
|
||||
A note to developers: If you intend to modify this control IN ANY WAY then
|
||||
you MUST also change the CLSID. This is necessary to prevent your control
|
||||
from registering itself over this control or vice versa.
|
||||
|
||||
Use a tool such as guidgen.exe or uuidgen.exe to create a new CLSID.
|
||||
|
||||
|
||||
Manual installation
|
||||
===================
|
||||
|
||||
Assuming you have the precompiled DLL and wish to install it on a machine,
|
||||
you must register it:
|
||||
|
||||
regsvr32 pluginhostctrl.dll
|
||||
|
||||
You must have administrator privileges to install a new control on
|
||||
operating systems such as Windows NT, 2000 & XP.
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
Insert some HTML like this into your content:
|
||||
|
||||
<OBJECT CLASSID="CLSID:DBB2DE32-61F1-4F7F-BEB8-A37F5BC24EE2"
|
||||
WIDTH="500" HEIGHT="300">
|
||||
<PARAM name="type" value="video/quicktime"/>
|
||||
<PARAM name="src" value="http://www.foobar.com/some_movie.mov"/>
|
||||
<!-- Custom arguments -->
|
||||
<PARAM name="loop" value="true"/>
|
||||
</OBJECT>
|
||||
|
||||
The CLSID attribute tells IE to create an instance of the plugin hosting
|
||||
control, the width and height specify the dimensions in pixels.
|
||||
|
||||
The following <EMBED> attributes have <PARAM> tag equivalents:
|
||||
|
||||
* <PARAM name="type" ...> is equivalent to TYPE
|
||||
Specifies the MIME type of the plugin. The control uses this value to
|
||||
determine which plugin it should create to handle the content.
|
||||
|
||||
* <PARAM name="src" ...> is equivalent to SRC
|
||||
Specifies an URL for the initial stream of data to feed the plugin.
|
||||
If you havent't specified a "type" PARAM, the control will attempt to use
|
||||
the MIME type of this stream to create the correct plugin.
|
||||
|
||||
* <PARAM name="pluginspage" ...> is equivalent to PLUGINSPAGE
|
||||
Specifies a URL where the plugin may be installed from. The default
|
||||
plugin will redirect you to this page when you do not have the correct
|
||||
plugin installed.
|
||||
|
||||
You may also supply any custom plugin parameters as additional <PARAM>
|
||||
elements.
|
||||
|
||||
|
||||
Still to do
|
||||
===========
|
||||
|
||||
* Only hosts windowed plugins.
|
||||
* Untested on Win98/95/Me.
|
||||
* Doesn't work for the Adobe Acrobat plugin yet.
|
||||
* Streaming data blocks the UI because it's running on the same thread.
|
||||
Should be moved to another thread.
|
||||
* Plugins cannot create writeable streams.
|
||||
* Package pluginhostctrl.dll into a CAB file automatic installation in IE.
|
@ -18,11 +18,8 @@ CFG=pluginhostctrl - Win32 Debug
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "pluginhostctrl - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
|
||||
!MESSAGE "pluginhostctrl - Win32 Unicode Debug" (based on "Win32 (x86) Dynamic-Link Library")
|
||||
!MESSAGE "pluginhostctrl - Win32 Release MinSize" (based on "Win32 (x86) Dynamic-Link Library")
|
||||
!MESSAGE "pluginhostctrl - Win32 Release MinDependency" (based on "Win32 (x86) Dynamic-Link Library")
|
||||
!MESSAGE "pluginhostctrl - Win32 Unicode Release MinSize" (based on "Win32 (x86) Dynamic-Link Library")
|
||||
!MESSAGE "pluginhostctrl - Win32 Unicode Release MinDependency" (based on "Win32 (x86) Dynamic-Link Library")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
@ -68,47 +65,6 @@ SOURCE="$(InputPath)"
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ELSEIF "$(CFG)" == "pluginhostctrl - Win32 Unicode Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "DebugU"
|
||||
# PROP BASE Intermediate_Dir "DebugU"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "DebugU"
|
||||
# PROP Intermediate_Dir "DebugU"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /MTd /W3 /Gm /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D "_UNICODE" /Yu"stdafx.h" /FD /GZ /c
|
||||
# ADD CPP /nologo /MTd /W3 /Gm /ZI /Od /I "pluginsdk_include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D "_UNICODE" /Yu"stdafx.h" /FD /GZ /c
|
||||
# ADD BASE RSC /l 0x1809 /d "_DEBUG"
|
||||
# ADD RSC /l 0x1809 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib version.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept
|
||||
# Begin Custom Build - Performing registration
|
||||
OutDir=.\DebugU
|
||||
TargetPath=.\DebugU\pluginhostctrl.dll
|
||||
InputPath=.\DebugU\pluginhostctrl.dll
|
||||
SOURCE="$(InputPath)"
|
||||
|
||||
"$(OutDir)\regsvr32.trg" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
if "%OS%"=="" goto NOTNT
|
||||
if not "%OS%"=="Windows_NT" goto NOTNT
|
||||
regsvr32 /s /c "$(TargetPath)"
|
||||
echo regsvr32 exec. time > "$(OutDir)\regsvr32.trg"
|
||||
goto end
|
||||
:NOTNT
|
||||
echo Warning : Cannot register Unicode DLL on Windows 95
|
||||
:end
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ELSEIF "$(CFG)" == "pluginhostctrl - Win32 Release MinSize"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
@ -179,98 +135,13 @@ SOURCE="$(InputPath)"
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ELSEIF "$(CFG)" == "pluginhostctrl - Win32 Unicode Release MinSize"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "ReleaseUMinSize"
|
||||
# PROP BASE Intermediate_Dir "ReleaseUMinSize"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "ReleaseUMinSize"
|
||||
# PROP Intermediate_Dir "ReleaseUMinSize"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /MT /W3 /O1 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "_UNICODE" /D "_ATL_DLL" /D "_ATL_MIN_CRT" /Yu"stdafx.h" /FD /c
|
||||
# ADD CPP /nologo /MT /W3 /O1 /I "pluginsdk_include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "_UNICODE" /D "_ATL_DLL" /D "_ATL_MIN_CRT" /Yu"stdafx.h" /FD /c
|
||||
# ADD BASE RSC /l 0x1809 /d "NDEBUG"
|
||||
# ADD RSC /l 0x1809 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib version.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
|
||||
# Begin Custom Build - Performing registration
|
||||
OutDir=.\ReleaseUMinSize
|
||||
TargetPath=.\ReleaseUMinSize\pluginhostctrl.dll
|
||||
InputPath=.\ReleaseUMinSize\pluginhostctrl.dll
|
||||
SOURCE="$(InputPath)"
|
||||
|
||||
"$(OutDir)\regsvr32.trg" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
if "%OS%"=="" goto NOTNT
|
||||
if not "%OS%"=="Windows_NT" goto NOTNT
|
||||
regsvr32 /s /c "$(TargetPath)"
|
||||
echo regsvr32 exec. time > "$(OutDir)\regsvr32.trg"
|
||||
goto end
|
||||
:NOTNT
|
||||
echo Warning : Cannot register Unicode DLL on Windows 95
|
||||
:end
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ELSEIF "$(CFG)" == "pluginhostctrl - Win32 Unicode Release MinDependency"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "ReleaseUMinDependency"
|
||||
# PROP BASE Intermediate_Dir "ReleaseUMinDependency"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "ReleaseUMinDependency"
|
||||
# PROP Intermediate_Dir "ReleaseUMinDependency"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /MT /W3 /O1 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "_UNICODE" /D "_ATL_STATIC_REGISTRY" /D "_ATL_MIN_CRT" /Yu"stdafx.h" /FD /c
|
||||
# ADD CPP /nologo /MT /W3 /O1 /I "pluginsdk_include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "_UNICODE" /D "_ATL_STATIC_REGISTRY" /D "_ATL_MIN_CRT" /Yu"stdafx.h" /FD /c
|
||||
# ADD BASE RSC /l 0x1809 /d "NDEBUG"
|
||||
# ADD RSC /l 0x1809 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib version.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
|
||||
# Begin Custom Build - Performing registration
|
||||
OutDir=.\ReleaseUMinDependency
|
||||
TargetPath=.\ReleaseUMinDependency\pluginhostctrl.dll
|
||||
InputPath=.\ReleaseUMinDependency\pluginhostctrl.dll
|
||||
SOURCE="$(InputPath)"
|
||||
|
||||
"$(OutDir)\regsvr32.trg" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
|
||||
if "%OS%"=="" goto NOTNT
|
||||
if not "%OS%"=="Windows_NT" goto NOTNT
|
||||
regsvr32 /s /c "$(TargetPath)"
|
||||
echo regsvr32 exec. time > "$(OutDir)\regsvr32.trg"
|
||||
goto end
|
||||
:NOTNT
|
||||
echo Warning : Cannot register Unicode DLL on Windows 95
|
||||
:end
|
||||
|
||||
# End Custom Build
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "pluginhostctrl - Win32 Debug"
|
||||
# Name "pluginhostctrl - Win32 Unicode Debug"
|
||||
# Name "pluginhostctrl - Win32 Release MinSize"
|
||||
# Name "pluginhostctrl - Win32 Release MinDependency"
|
||||
# Name "pluginhostctrl - Win32 Unicode Release MinSize"
|
||||
# Name "pluginhostctrl - Win32 Unicode Release MinDependency"
|
||||
# Begin Group "Source Files"
|
||||
|
||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||
|
Loading…
x
Reference in New Issue
Block a user