Skip to content
  • darin's avatar
    WebCore: · 366d0866
    darin authored
    	Rework plugin code to prepare to move more of it into WebKit.
    
    	* khtml/rendering/render_applet.cpp:
    	(RenderApplet::RenderApplet): Create a widget for the applet using
    	the new simpler API.
    
    	* kwq/kdecore/kconfig.h:
    	* kwq/KWQKConfigBase.mm: Eliminate KConfigBase.
    	Set things up so we are poised to handle the other non-plugin
    	config keys easily in the future.
    
    	* kwq/KWQKHTMLPart.mm: (KHTMLPart::requestObject): Use the new simpler
    	IFPluginWidgetCreate API instead of the older WCPluginWidget one.
    
    	* kwq/qt/qstring.h: Add simpler conversions to/from NSString.
    	* kwq/KWQString.mm: (QString::fromNSString): New.
    
    	* kwq/WCPluginWidget.h: Made this API simpler both for the C++
    	side and the Objective-C side. There's now no class, and only one
    	function that needs to be supplied (normally by WebKit).
    	* kwq/WCJavaAppletWidget.h: Same thing for the Java case.
    
    	* kwq/WCJavaAppletWidget.mm:
    	(IFSetJavaAppletViewCreationFunction): New.
    	(IFJavaAppletWidgetCreate): New. Most of the code that was in here
    	is now moved into WebKit.
    	* kwq/WCPluginWidget.mm:
    	(IFSetPluginViewCreationFunction): New.
    	(IFPluginWidgetCreate): New. Most of the code that was in here
    	is now moved into WebKit.
    
    	* libwebcore.exp: Update for new function names.
    
    WebKit:
    
    	Rework plugin code to prepare to move more of here from WebCore.
    
    	* Plugins.subproj/IFPluginView.mm:
    	(IFPluginViewCreate): New. Does all the work of creating an NSView
    	for a plug-in, including stuff previously done in WebCore.
    	(IFJavaAppletViewCreate): Same as above, for Java applets.
    	(+[IFPluginView load]): Set up the function pointers using the new
    	improved WebCore API.
    
    	* Plugins.subproj/IFNullPluginView.mm:
    	(-[IFNullPluginView load]): Remove this setup because now there's
    	no separate call to set up a null plug-in.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1075 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    366d0866