<https://webkit.org/b/126500> Move Objective-C DOM bindings off the legacy WebKit...
authormrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 7 Jan 2014 06:09:35 +0000 (06:09 +0000)
committermrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 7 Jan 2014 06:09:35 +0000 (06:09 +0000)
commita95497416809e5cc046858d6bfbd7d07e295b6da
tree0a6d039def00eebe31a50be317cd452d4ac0addc
parentb86d2f1687bad85f8da4c5109693dfcacbb72d5d
<https://webkit.org/b/126500> Move Objective-C DOM bindings off the legacy WebKit availability macros

The legacy WebKit availability macros are verbose, confusing, and provide no benefit
over using the system availability macros directly. The original vision was that
they'd serve a cross-platform purpose but that never came to be.

The OS X version used in the new availability macros is based on the mapping in
JavaScriptCore/WebKitAvailability.h.

Part of <rdar://problem/15512304>.

Reviewed by Sam Weinig.

* bindings/objc/DOMCSS.h:
* bindings/objc/DOMEventException.h:
* bindings/objc/DOMException.h:
* bindings/objc/DOMExtensions.h:
* bindings/objc/DOMObject.h:
* bindings/objc/DOMRangeException.h:
* bindings/objc/DOMXPathException.h:
* bindings/objc/PublicDOMInterfaces.h:
* bindings/objc/WebScriptObject.h:
* bindings/scripts/CodeGeneratorObjC.pm:
(ReadPublicInterfaces):
(GenerateHeader): Tag enums with WK_ENUM_AVAILABLE_MAC and classes with WEBKIT_CLASS_AVAILABLE_MAC.
Remove the #ifs that we were previously generating now that enums are appropriately tagged.
* bindings/scripts/test/ObjC/DOMTestActiveDOMObject.h:
* bindings/scripts/test/ObjC/DOMTestActiveDOMObjectInternal.h:
* bindings/scripts/test/ObjC/DOMTestCallback.h:
* bindings/scripts/test/ObjC/DOMTestCallbackInternal.h:
* bindings/scripts/test/ObjC/DOMTestCustomNamedGetter.h:
* bindings/scripts/test/ObjC/DOMTestCustomNamedGetterInternal.h:
* bindings/scripts/test/ObjC/DOMTestEventConstructor.h:
* bindings/scripts/test/ObjC/DOMTestEventConstructorInternal.h:
* bindings/scripts/test/ObjC/DOMTestEventTarget.h:
* bindings/scripts/test/ObjC/DOMTestEventTargetInternal.h:
* bindings/scripts/test/ObjC/DOMTestException.h:
* bindings/scripts/test/ObjC/DOMTestExceptionInternal.h:
* bindings/scripts/test/ObjC/DOMTestGenerateIsReachable.h:
* bindings/scripts/test/ObjC/DOMTestGenerateIsReachableInternal.h:
* bindings/scripts/test/ObjC/DOMTestInterface.h:
* bindings/scripts/test/ObjC/DOMTestInterfaceInternal.h:
* bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.h:
* bindings/scripts/test/ObjC/DOMTestMediaQueryListListenerInternal.h:
* bindings/scripts/test/ObjC/DOMTestNamedConstructor.h:
* bindings/scripts/test/ObjC/DOMTestNamedConstructorInternal.h:
* bindings/scripts/test/ObjC/DOMTestNode.h:
* bindings/scripts/test/ObjC/DOMTestNodeInternal.h:
* bindings/scripts/test/ObjC/DOMTestObj.h:
* bindings/scripts/test/ObjC/DOMTestObjInternal.h:
* bindings/scripts/test/ObjC/DOMTestOverloadedConstructors.h:
* bindings/scripts/test/ObjC/DOMTestOverloadedConstructorsInternal.h:
* bindings/scripts/test/ObjC/DOMTestSerializedScriptValueInterface.h:
* bindings/scripts/test/ObjC/DOMTestSerializedScriptValueInterfaceInternal.h:
* bindings/scripts/test/ObjC/DOMTestTypedefs.h:
* bindings/scripts/test/ObjC/DOMTestTypedefsInternal.h:
* bindings/scripts/test/ObjC/DOMattribute.h:
* bindings/scripts/test/ObjC/DOMattributeInternal.h:
* bindings/scripts/test/ObjC/DOMreadonly.h:
* bindings/scripts/test/ObjC/DOMreadonlyInternal.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@161406 268f45cc-cd09-0410-ab3c-d52691b4dbfc
45 files changed:
Source/WebCore/ChangeLog
Source/WebCore/bindings/objc/DOMCSS.h
Source/WebCore/bindings/objc/DOMEventException.h
Source/WebCore/bindings/objc/DOMException.h
Source/WebCore/bindings/objc/DOMExtensions.h
Source/WebCore/bindings/objc/DOMObject.h
Source/WebCore/bindings/objc/DOMRangeException.h
Source/WebCore/bindings/objc/DOMXPathException.h
Source/WebCore/bindings/objc/PublicDOMInterfaces.h
Source/WebCore/bindings/objc/WebScriptObject.h
Source/WebCore/bindings/scripts/CodeGeneratorObjC.pm
Source/WebCore/bindings/scripts/test/ObjC/DOMTestActiveDOMObject.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestActiveDOMObjectInternal.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestCallback.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestCallbackInternal.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestCustomNamedGetter.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestCustomNamedGetterInternal.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestEventConstructor.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestEventConstructorInternal.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestEventTarget.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestEventTargetInternal.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestException.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestExceptionInternal.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestGenerateIsReachable.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestGenerateIsReachableInternal.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestInterface.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestInterfaceInternal.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListenerInternal.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestNamedConstructor.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestNamedConstructorInternal.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestNode.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestNodeInternal.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestObjInternal.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestOverloadedConstructors.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestOverloadedConstructorsInternal.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestSerializedScriptValueInterface.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestSerializedScriptValueInterfaceInternal.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestTypedefs.h
Source/WebCore/bindings/scripts/test/ObjC/DOMTestTypedefsInternal.h
Source/WebCore/bindings/scripts/test/ObjC/DOMattribute.h
Source/WebCore/bindings/scripts/test/ObjC/DOMattributeInternal.h
Source/WebCore/bindings/scripts/test/ObjC/DOMreadonly.h
Source/WebCore/bindings/scripts/test/ObjC/DOMreadonlyInternal.h