2013-04-29  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Implement WebCLDevice::getExtension
        Issue #19

        Implement WebCLPlatform::getExtension
        Issue #225

        Reviewed by Igor.

        Patch adds a WebCLExtensionsAccessor templated class, in order
        to share all ::getSupportedExtensions and ::getExtension implementations
        across WebCL, WebCLPlatforma and WebCLDevice classes.

        The case of WebCL class is peculiar because it has no associated
        ComputeType. To work around this problem, a NullTypePtr (typedef to
        void*) is used as default template type.
        Ideally, using nullptr_t would be preferred than void* since use the
        only value that can be assigned to it is '0' (or nullptr), but WebCore
        does not support building with C++11 for all platforms. A "FIXME" was
        put in place.

        * Modules/webcl/WebCL.cpp:
        (WebCore::WebCL::WebCL):
        (WebCore):
        * Modules/webcl/WebCL.h:
        (WebCL):
        * Modules/webcl/WebCLDevice.cpp:
        (WebCore::WebCLDevice::WebCLDevice):
        * Modules/webcl/WebCLDevice.h:
        (WebCLDevice):
        * Modules/webcl/WebCLDevice.idl:
        * Modules/webcl/WebCLExtensionsAccessor.cpp: Copied from Source/WebCore/Modules/webcl/WebCLDevice.h.
        (WebCore):
        (WebCore::::getExtension):
        (WebCore::::getSupportedExtensions):
        * Modules/webcl/WebCLExtensionsAccessor.h: Copied from Source/WebCore/Modules/webcl/WebCLDevice.h.
        (WebCore):
        (WebCLExtensionsAccessor):
        (WebCore::WebCLExtensionsAccessor::~WebCLExtensionsAccessor):
        (WebCore::WebCLExtensionsAccessor::accessor):
        (WebCore::WebCLExtensionsAccessor::WebCLExtensionsAccessor):
        * Modules/webcl/WebCLPlatform.cpp:
        (WebCore::WebCLPlatform::WebCLPlatform):
        * Modules/webcl/WebCLPlatform.h:
        (WebCLPlatform):
        * Modules/webcl/WebCLPlatform.idl:
        * WebCore.xcodeproj/project.pbxproj:
        * bindings/js/JSWebCLCustom.cpp:
        (WebCore::JSWebCL::createContext):
        (WebCore):
        (WebCore::toJS):
        * bindings/js/JSWebCLCustom.h:
        (WebCore):
        * bindings/js/JSWebCLDeviceCustom.cpp:
        (WebCore::JSWebCLDevice::getExtension):
        (WebCore):
        * bindings/js/JSWebCLPlatformCustom.cpp:
        (WebCore::JSWebCLPlatform::getExtension):
        * platform/ComputeExtensions.h:
        (ComputeExtensions):
        * platform/opencl/ComputeExtensionsCL.cpp:
        (WebCore::ComputeExtensions::supports):
2013-04-30  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Various unreviewed fixes to license blocks, unneeded includes
        removal, minor style nits.

        * Modules/webcl/WebCL.cpp:
        * Modules/webcl/WebCL.h:
        * Modules/webcl/WebCLDevice.idl:
        * Modules/webcl/WebCLGLBuffer.idl:
        * Modules/webcl/WebCLMemoryObject.cpp:
        * Modules/webcl/WebCLObject.h:
        * bindings/js/JSWebCLCustom.cpp:
        * bindings/js/JSWebCLCustom.h:
        * bindings/js/JSWebCLDeviceCustom.cpp:
        * bindings/js/JSWebCLPlatformCustom.cpp: