Skip to content
  • cblu's avatar
    WebCore: · 341cf3cb
    cblu authored
    	For the new plug-in API, we need to pass a WebPluginContainer to the plug-in view upon creation. The is owned by the WebFrame. To make this all work, I had to move the WebCore plug-in and java view constructors to WebBridge from WebViewFactory since WebBridge has the frame.
    
            * khtml/khtml_part.cpp:
            (KHTMLPart::createJavaContext): New APPLE_CHANGES around the java context constructor so we pass the part.
            * kwq/KWQKHTMLPartImpl.mm:
            (KWQKHTMLPartImpl::createPart): call the bridge to create the view
            * kwq/KWQKJavaAppletWidget.mm:
            (KJavaAppletWidget::KJavaAppletWidget): save the context
            (KJavaAppletWidget::showApplet): call the bridge to create the view
            * kwq/WebCoreBridge.h:
            * kwq/WebCoreViewFactory.h:
            * kwq/khtml/java/kjavaappletcontext.h: made constructor take the part
            * kwq/khtml/java/kjavaappletwidget.h: ivar for the context
    
    WebKit:
    
            * WebCoreSupport.subproj/WebBridge.m:
            (-[WebBridge requestedURL]):
            (-[WebBridge viewForPluginWithURL:serviceType:arguments:baseURL:]):
            (-[WebBridge viewForJavaAppletWithFrame:baseURL:parameters:]):
            * WebCoreSupport.subproj/WebViewFactory.m:
            (-[WebViewFactory fileButton]):
            (-[WebViewFactory pluginsInfo]):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2438 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    341cf3cb