Skip to content
  • weinig's avatar
    WebCore: · 38baa376
    weinig authored
            Reviewed by Adam Roben.
    
            <rdar://problem/5435940>
            The COM bindings for the DOM should be autogenerated like the other DOM bindings
    
            Initial commit of the autogeneration of the COM DOM Bindings.  No behavior change
            is being introduced in this patch and to insure that no conflicts arise, a temporary
            prefix of "GEN_" has been used for all the new classes.
    
            The build architecture for these bindings differs slightly from the other autogenerated
            bindings.  Instead of building in WebCore and migrating the resuting code to WebKit (as
            is done for the Objective-C bindigs currently), the IDLs and generation scripts are
            migrated to WebKit and built there.  This is done with a series of scripts and Makefiles.
    
            This commit includes:
                - Hand rolled root class/Interface GEN_DOMObject used to facilated object creation
                  and ref-counting.
                - Generating all of the Core DOM and most of HTML and CSS
                - Generating Event, EventTarget, and EventListener
    
            * WebCore.vcproj/MigrateIDLAndScripts.make: Added.
            * WebCore.vcproj/WebCore.vcproj:
            * WebCore.vcproj/migrate-idls.sh: Added.
            * bindings/scripts/CodeGenerator.pm:
            * bindings/scripts/CodeGeneratorCOM.pm: Added.
            * dom/EventListener.h: Make the isWindowEvent parameter default to false
            to allow autogeneration based on the IDL.
    
    WebKit/win:
    
            Reviewed by Adam Roben.
    
            <rdar://problem/5435940>
            The COM bindings for the DOM should be autogenerated like the other DOM bindings
    
            Initial commit of the autogeneration of the COM DOM Bindings.  No behavior change
            is being introduced in this patch and to insure that no conflicts arise, a temporary
            prefix of "GEN_" has been used for all the new classes.
    
            The build architecture for these bindings differs slightly from the other autogenerated
            bindings.  Instead of building in WebCore and migrating the resuting code to WebKit (as
            is done for the Objective-C bindigs currently), the IDLs and generation scripts are
            migrated to WebKit and built there.  This is done with a series of scripts and Makefiles.
    
            This commit includes:
                - Hand rolled root class/Interface GEN_DOMObject used to facilated object creation
                  and ref-counting.
                - Generating all of the Core DOM and most of HTML and CSS
                - Generating Event, EventTarget, and EventListener
    
            * DOMCreateInstance.cpp: Added.
            (domWrapperCache):
            (getDOMWrapper):
            (setDOMWrapper):
            (removeDOMWrapper):
            (GEN_DOMNode::createInstance):
            (GEN_DOMImplementation::createInstance):
            (GEN_DOMCSSRule::createInstance):
            (GEN_DOMStyleSheet::createInstance):
            (GEN_DOMCSSValue::createInstance):
            * DOMCreateInstance.h: Added.
            Temporary location for createInstance/object caching methods.  This will be broken up
            into seperate files in the near future.
    
            * GEN_DOMObject.cpp: Added.
            (GEN_DOMObject::GEN_DOMObject):
            (GEN_DOMObject::~GEN_DOMObject):
            (GEN_DOMObject::QueryInterface):
            (GEN_DOMObject::AddRef):
            (GEN_DOMObject::Release):
            * GEN_DOMObject.h: Added.
            Hand rolled base class.
    
            * Interfaces/IGEN_DOMObject.idl: Added. 
            Hand rolled base interface.
    
            * WebKit.vcproj/DerivedSources.make: Added.
            * WebKit.vcproj/FixMIDLHeaders.pl: Added.
            This script is required because MIDL is producing un-buildable code due to
            circular dependencies.
    
            * WebKit.vcproj/Interfaces.vcproj:
            * WebKit.vcproj/WebKit.vcproj:
            * WebKit.vcproj/WebKitGUID.vcproj:
            * WebKit.vcproj/build-generated-files.sh: Added.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27655 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    38baa376