- Page restrictions apply
- Added by Automation System, last edited by Automation System on Oct 17, 2011 (view change)
FactoryBase.cpp
00001 /**********************************************************\ 00002 Original Author: Georg Fritzsche 00003 00004 Created: Oct 23, 2010 00005 License: Dual license model; choose one of two: 00006 New BSD License 00007 http://www.opensource.org/licenses/bsd-license.php 00008 - or - 00009 GNU Lesser General Public License, version 2.1 00010 http://www.gnu.org/licenses/lgpl-2.1.html 00011 00012 Copyright 2010 Georg Fritzsche, Firebreath development team 00013 \**********************************************************/ 00014 00015 #include "FactoryBase.h" 00016 #include "ConstructDefaultPluginWindows.h" 00017 #include "NpapiPluginFactory.h" 00018 00019 #ifdef FB_WIN 00020 #include "ActiveXFactoryDefinitions.h" 00021 #endif 00022 00023 #include "PluginInfo.h" 00024 #include "precompiled_headers.h" // On windows, everything above this line in PCH 00025 00026 FB::FactoryBase::FactoryBase() 00027 { 00028 00029 } 00030 00031 FB::FactoryBase::~FactoryBase() 00032 { 00033 00034 } 00035 00036 void FB::FactoryBase::globalPluginInitialize() 00037 { 00038 00039 } 00040 00041 void FB::FactoryBase::globalPluginDeinitialize() 00042 { 00043 00044 } 00045 00046 std::string FB::FactoryBase::getPluginName() 00047 { 00048 return FB::getPluginName(""); 00049 } 00050 00051 std::string FB::FactoryBase::getPluginName( const std::string& mimetype ) 00052 { 00053 return FB::getPluginName(mimetype); 00054 } 00055 00056 std::string FB::FactoryBase::getPluginDescription() 00057 { 00058 return FB::getPluginDescription(""); 00059 } 00060 00061 std::string FB::FactoryBase::getPluginDescription( const std::string& mimetype ) 00062 { 00063 return FB::getPluginDescription(mimetype); 00064 } 00065 00066 FB::Npapi::NpapiPluginPtr FB::FactoryBase::createNpapiPlugin(const FB::Npapi::NpapiBrowserHostPtr& host, const std::string& mimetype) 00067 { 00068 return FB::Npapi::createNpapiPlugin(host, mimetype); 00069 } 00070 00071 void FB::FactoryBase::getLoggingMethods( FB::Log::LogMethodList& outMethods ) 00072 { 00073 #ifndef NDEBUG 00074 outMethods.push_back(std::make_pair(FB::Log::LogMethod_Console, std::string())); 00075 #endif 00076 } 00077 00078 FB::Log::LogLevel FB::FactoryBase::getLogLevel() 00079 { 00080 return FB::Log::LogLevel_Info; 00081 } 00082 00083 00084 #ifdef FB_WIN 00085 FB::PluginWindowWin* FB::FactoryBase::createPluginWindowWin(const WindowContextWin& ctx) 00086 { 00087 return FB::createPluginWindowWin(ctx); 00088 } 00089 00090 FB::PluginWindowlessWin* FB::FactoryBase::createPluginWindowless(const WindowContextWindowless& ctx) 00091 { 00092 return FB::createPluginWindowless(ctx); 00093 } 00094 IDispatchEx* FB::FactoryBase::createCOMJSObject(const FB::BrowserHostPtr& host, const FB::JSAPIWeakPtr& api, bool autoRelease/* = false*/) 00095 { 00096 return _getCOMJSWrapper(host, api, autoRelease); 00097 } 00098 00099 HRESULT FB::FactoryBase::UpdateWindowsRegistry( bool install ) 00100 { 00101 return _updateRegistry(install); 00102 } 00103 00104 #endif 00105 00106 #ifdef FB_MACOSX 00107 FB::PluginWindowMacICA* FB::FactoryBase::createPluginWindowMacICA() 00108 { 00109 return FB::createPluginWindowMacICA(); 00110 } 00111 FB::PluginWindowMacCA* FB::FactoryBase::createPluginWindowMacCA() 00112 { 00113 return FB::createPluginWindowMacCA(); 00114 } 00115 FB::PluginWindowMacCG* FB::FactoryBase::createPluginWindowMacCG() 00116 { 00117 return FB::createPluginWindowMacCG(); 00118 } 00119 #ifndef NP_NO_QUICKDRAW 00120 FB::PluginWindowMacQD* FB::FactoryBase::createPluginWindowMacQD() 00121 { 00122 return FB::createPluginWindowMacQD(); 00123 } 00124 #endif 00125 FB::PluginEventMacCocoa* FB::FactoryBase::createPluginEventMacCocoa() 00126 { 00127 return FB::createPluginEventMacCocoa(); 00128 } 00129 #ifndef NP_NO_CARBON 00130 FB::PluginEventMacCarbon* FB::FactoryBase::createPluginEventMacCarbon() 00131 { 00132 return FB::createPluginEventMacCarbon(); 00133 } 00134 #endif 00135 00136 #endif 00137 00138 #ifdef FB_X11 00139 FB::PluginWindowX11* FB::FactoryBase::createPluginWindowX11(const FB::WindowContextX11& ctx) 00140 { 00141 return FB::createPluginWindowX11(ctx); 00142 } 00143 00144 #endif 00145
Generated on Mon Oct 17 2011 16:24:40 for FireBreath by
1.7.2
Labels:
