Skip to content
  • timothy@apple.com's avatar
    Annotate the Objective-C DOM APIs with the JavaScriptCore/WebKitAvailability.h... · 746258bd
    timothy@apple.com authored
    Annotate the Objective-C DOM APIs with the JavaScriptCore/WebKitAvailability.h availability macros and version macros.
    
    WebCore:
    
    2008-10-09  Timothy Hatcher  <timothy@apple.com>
    
            Annotate the Objective-C DOM APIs with the JavaScriptCore/WebKitAvailability.h
            availability macros and version macros.
    
            https://bugs.webkit.org/show_bug.cgi?id=21496
            rdar://problem/6259225
    
            Reviewed by Sam Weinig.
    
            * bindings/objc/DOMCSS.h: Add a version #if around catgory interface.
            * bindings/objc/DOMEventException.h: Include JavaScriptCore/WebKitAvailability.h
            and add an #if around the enum.
            * bindings/objc/DOMException.h: Ditto. Give the enum a name and remove the
            comment to match the other headers.
            * bindings/objc/DOMExtensions.h: Annotate the methods with version 3.0 or later.
            * bindings/objc/DOMObject.h: Add a version #if around class interface.
            * bindings/objc/DOMRangeException.h: Include JavaScriptCore/WebKitAvailability.h
            and add a version #if around the enum.
            * bindings/objc/DOMSVGException.h: Ditto. Use the latest version since SVG is new.
            * bindings/objc/DOMXPathException.h: Ditto. Use the 3.0 version.
            * bindings/objc/PublicDOMInterfaces.h: Annotate classes and protocols for
            when they where added to WebKit. Also annotate individual methods that are
            deprecated or where added after the class was added to WebKit.
            * bindings/objc/WebScriptObject.h: Include JavaScriptCore/WebKitAvailability.h
            since this header is included by most DOM headers. Annotate the JSObject method.
    
            * bindings/scripts/CodeGeneratorObjC.pm:
            (ReadPublicInterfaces): Parse out the availability macro for each function/property.
            And parse out the availability version for the class/protocol. Default to
            WEBKIT_VERSION_LATEST if the class is new.
            (GenerateHeader): Include JavaScriptCore/WebKitAvailability.h if needed. Add the
            interface availability version check if the class has a required version. Create
            a public interface key (used to lookup in $publicInterfaces) and make a declaration
            suffix that includes the availability macro (if needed). Use the "available in 1.3
            and later but deprecated in 3.0" macro instead of "deprecated in 10.5 and later" as
            the default availability macro for old style methods. Tweak line breaks in the generated
            headers to look good and not have too many extra lines.
    
    WebKit/mac:
    
    2008-10-09  Timothy Hatcher  <timothy@apple.com>
    
            Don't convert JavaScriptCore header include paths to WebKit paths. This was needed
            back when NPAPI and WebScriptObject migrated from JavaScriptCore. Also remove
            JavaScriptCore from the VPATH.
    
            Reviewed by Sam Weinig.
    
            * MigrateHeaders.make:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@37465 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    746258bd