Changeset 142849 in webkit


Ignore:
Timestamp:
Feb 13, 2013 10:17:26 PM (11 years ago)
Author:
haraken@chromium.org
Message:

[V8] Generate wrapper methods for custom methods
https://bugs.webkit.org/show_bug.cgi?id=109678

Reviewed by Adam Barth.

Currently V8 directly calls back custom methods written
in custom binding files. This makes it impossible for code
generators to hook custom methods (e.g. Code generators cannot
insert a code for FeatureObservation into custom methods).
To solve the problem, we should generate wrapper methods for
custom methods.

No tests. No change in behavior.

  • page/DOMWindow.idl: Removed overloaded methods. The fact that methods in an IDL

file are overloaded but they are not overloaded in custom bindings confuses code
generators. (For some reason, this problem hasn't appeared before this change.)

  • xml/XMLHttpRequest.idl: Ditto.
  • bindings/scripts/CodeGeneratorV8.pm:

(GenerateHeader):
(GenerateDomainSafeFunctionGetter):
(GenerateEventListenerCallback):
(GenerateFunctionCallback):
(GenerateNonStandardFunction):
(GenerateImplementation):

  • bindings/scripts/test/V8/V8TestInterface.cpp:

(WebCore::TestInterfaceV8Internal::supplementalMethod3Callback):
(TestInterfaceV8Internal):
(WebCore):

  • bindings/scripts/test/V8/V8TestObj.cpp:

(WebCore::TestObjV8Internal::customMethodCallback):
(TestObjV8Internal):
(WebCore::TestObjV8Internal::customMethodWithArgsCallback):
(WebCore::TestObjV8Internal::classMethod2Callback):
(WebCore):
(WebCore::ConfigureV8TestObjTemplate):

  • bindings/scripts/test/V8/V8TestObj.h:

(V8TestObj):

  • bindings/v8/custom/V8ClipboardCustom.cpp:

(WebCore::V8Clipboard::clearDataCallbackCustom):
(WebCore::V8Clipboard::setDragImageCallbackCustom):

  • bindings/v8/custom/V8ConsoleCustom.cpp:

(WebCore::V8Console::traceCallbackCustom):
(WebCore::V8Console::assertCallbackCustom):
(WebCore::V8Console::profileCallbackCustom):
(WebCore::V8Console::profileEndCallbackCustom):

  • bindings/v8/custom/V8CryptoCustom.cpp:

(WebCore::V8Crypto::getRandomValuesCallbackCustom):

  • bindings/v8/custom/V8DOMFormDataCustom.cpp:

(WebCore::V8DOMFormData::appendCallbackCustom):

  • bindings/v8/custom/V8DOMWindowCustom.cpp:

(WebCore::V8DOMWindow::addEventListenerCallbackCustom):
(WebCore::V8DOMWindow::removeEventListenerCallbackCustom):
(WebCore::V8DOMWindow::postMessageCallbackCustom):
(WebCore::V8DOMWindow::toStringCallbackCustom):
(WebCore::V8DOMWindow::releaseEventsCallbackCustom):
(WebCore::V8DOMWindow::captureEventsCallbackCustom):
(WebCore::V8DOMWindow::showModalDialogCallbackCustom):
(WebCore::V8DOMWindow::openCallbackCustom):
(WebCore::V8DOMWindow::setTimeoutCallbackCustom):
(WebCore::V8DOMWindow::setIntervalCallbackCustom):

  • bindings/v8/custom/V8DataViewCustom.cpp:

(WebCore::V8DataView::getInt8CallbackCustom):
(WebCore::V8DataView::getUint8CallbackCustom):
(WebCore::V8DataView::setInt8CallbackCustom):
(WebCore::V8DataView::setUint8CallbackCustom):

  • bindings/v8/custom/V8DedicatedWorkerContextCustom.cpp:

(WebCore::V8DedicatedWorkerContext::postMessageCallbackCustom):

  • bindings/v8/custom/V8DeviceMotionEventCustom.cpp:

(WebCore::V8DeviceMotionEvent::initDeviceMotionEventCallbackCustom):

  • bindings/v8/custom/V8DeviceOrientationEventCustom.cpp:

(WebCore::V8DeviceOrientationEvent::initDeviceOrientationEventCallbackCustom):

  • bindings/v8/custom/V8DocumentCustom.cpp:

(WebCore::V8Document::evaluateCallbackCustom):
(WebCore::V8Document::createTouchListCallbackCustom):

  • bindings/v8/custom/V8GeolocationCustom.cpp:

(WebCore::V8Geolocation::getCurrentPositionCallbackCustom):
(WebCore::V8Geolocation::watchPositionCallbackCustom):

  • bindings/v8/custom/V8HTMLAllCollectionCustom.cpp:

(WebCore::V8HTMLAllCollection::itemCallbackCustom):
(WebCore::V8HTMLAllCollection::namedItemCallbackCustom):

  • bindings/v8/custom/V8HTMLCanvasElementCustom.cpp:

(WebCore::V8HTMLCanvasElement::getContextCallbackCustom):
(WebCore::V8HTMLCanvasElement::toDataURLCallbackCustom):

  • bindings/v8/custom/V8HTMLDocumentCustom.cpp:

(WebCore::V8HTMLDocument::writeCallbackCustom):
(WebCore::V8HTMLDocument::writelnCallbackCustom):
(WebCore::V8HTMLDocument::openCallbackCustom):

  • bindings/v8/custom/V8HTMLFormControlsCollectionCustom.cpp:

(WebCore::V8HTMLFormControlsCollection::namedItemCallbackCustom):

  • bindings/v8/custom/V8HTMLImageElementConstructor.cpp:

(WebCore::v8HTMLImageElementConstructorCallbackCustom):
(WebCore::V8HTMLImageElementConstructor::GetTemplate):

  • bindings/v8/custom/V8HTMLInputElementCustom.cpp:

(WebCore::V8HTMLInputElement::setSelectionRangeCallbackCustom):

  • bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp:

(WebCore::V8HTMLOptionsCollection::namedItemCallbackCustom):
(WebCore::V8HTMLOptionsCollection::removeCallbackCustom):
(WebCore::V8HTMLOptionsCollection::addCallbackCustom):

  • bindings/v8/custom/V8HTMLSelectElementCustom.cpp:

(WebCore::V8HTMLSelectElement::removeCallbackCustom):

  • bindings/v8/custom/V8HistoryCustom.cpp:

(WebCore::V8History::pushStateCallbackCustom):
(WebCore::V8History::replaceStateCallbackCustom):

  • bindings/v8/custom/V8InjectedScriptHostCustom.cpp:

(WebCore::V8InjectedScriptHost::inspectedObjectCallbackCustom):
(WebCore::V8InjectedScriptHost::internalConstructorNameCallbackCustom):
(WebCore::V8InjectedScriptHost::isHTMLAllCollectionCallbackCustom):
(WebCore::V8InjectedScriptHost::typeCallbackCustom):
(WebCore::V8InjectedScriptHost::functionDetailsCallbackCustom):
(WebCore::V8InjectedScriptHost::getInternalPropertiesCallbackCustom):
(WebCore::V8InjectedScriptHost::getEventListenersCallbackCustom):
(WebCore::V8InjectedScriptHost::inspectCallbackCustom):
(WebCore::V8InjectedScriptHost::databaseIdCallbackCustom):
(WebCore::V8InjectedScriptHost::storageIdCallbackCustom):
(WebCore::V8InjectedScriptHost::evaluateCallbackCustom):
(WebCore::V8InjectedScriptHost::setFunctionVariableValueCallbackCustom):

  • bindings/v8/custom/V8InspectorFrontendHostCustom.cpp:

(WebCore::V8InspectorFrontendHost::platformCallbackCustom):
(WebCore::V8InspectorFrontendHost::portCallbackCustom):
(WebCore::V8InspectorFrontendHost::showContextMenuCallbackCustom):
(WebCore::V8InspectorFrontendHost::recordActionTakenCallbackCustom):
(WebCore::V8InspectorFrontendHost::recordPanelShownCallbackCustom):
(WebCore::V8InspectorFrontendHost::recordSettingChangedCallbackCustom):

  • bindings/v8/custom/V8JavaScriptCallFrameCustom.cpp:

(WebCore::V8JavaScriptCallFrame::evaluateCallbackCustom):
(WebCore::V8JavaScriptCallFrame::restartCallbackCustom):
(WebCore::V8JavaScriptCallFrame::setVariableValueCallbackCustom):
(WebCore::V8JavaScriptCallFrame::scopeTypeCallbackCustom):

  • bindings/v8/custom/V8LocationCustom.cpp:

(WebCore::V8Location::reloadAccessorGetter):
(WebCore::V8Location::replaceAccessorGetter):
(WebCore::V8Location::assignAccessorGetter):
(WebCore::V8Location::reloadCallbackCustom):
(WebCore::V8Location::replaceCallbackCustom):
(WebCore::V8Location::assignCallbackCustom):
(WebCore::V8Location::valueOfCallbackCustom):
(WebCore::V8Location::toStringCallbackCustom):

  • bindings/v8/custom/V8MessageEventCustom.cpp:

(WebCore::V8MessageEvent::initMessageEventCallbackCustom):
(WebCore::V8MessageEvent::webkitInitMessageEventCallbackCustom):

  • bindings/v8/custom/V8MessagePortCustom.cpp:

(WebCore::V8MessagePort::postMessageCallbackCustom):

  • bindings/v8/custom/V8NodeCustom.cpp:

(WebCore::V8Node::insertBeforeCallbackCustom):
(WebCore::V8Node::replaceChildCallbackCustom):
(WebCore::V8Node::removeChildCallbackCustom):
(WebCore::V8Node::appendChildCallbackCustom):

  • bindings/v8/custom/V8NotificationCenterCustom.cpp:

(WebCore::V8NotificationCenter::requestPermissionCallbackCustom):

  • bindings/v8/custom/V8NotificationCustom.cpp:

(WebCore::V8Notification::requestPermissionCallbackCustom):

  • bindings/v8/custom/V8SQLResultSetRowListCustom.cpp:

(WebCore::V8SQLResultSetRowList::itemCallbackCustom):

  • bindings/v8/custom/V8SQLTransactionCustom.cpp:

(WebCore::V8SQLTransaction::executeSqlCallbackCustom):

  • bindings/v8/custom/V8SQLTransactionSyncCustom.cpp:

(WebCore::V8SQLTransactionSync::executeSqlCallbackCustom):

  • bindings/v8/custom/V8SVGLengthCustom.cpp:

(WebCore::V8SVGLength::convertToSpecifiedUnitsCallbackCustom):

  • bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:

(WebCore::V8WebGLRenderingContext::getAttachedShadersCallbackCustom):
(WebCore::V8WebGLRenderingContext::getBufferParameterCallbackCustom):
(WebCore::V8WebGLRenderingContext::getExtensionCallbackCustom):
(WebCore::V8WebGLRenderingContext::getFramebufferAttachmentParameterCallbackCustom):
(WebCore::V8WebGLRenderingContext::getParameterCallbackCustom):
(WebCore::V8WebGLRenderingContext::getProgramParameterCallbackCustom):
(WebCore::V8WebGLRenderingContext::getRenderbufferParameterCallbackCustom):
(WebCore::V8WebGLRenderingContext::getShaderParameterCallbackCustom):
(WebCore::V8WebGLRenderingContext::getSupportedExtensionsCallbackCustom):
(WebCore::V8WebGLRenderingContext::getTexParameterCallbackCustom):
(WebCore::V8WebGLRenderingContext::getUniformCallbackCustom):
(WebCore::V8WebGLRenderingContext::getVertexAttribCallbackCustom):
(WebCore::V8WebGLRenderingContext::uniform1fvCallbackCustom):
(WebCore::V8WebGLRenderingContext::uniform1ivCallbackCustom):
(WebCore::V8WebGLRenderingContext::uniform2fvCallbackCustom):
(WebCore::V8WebGLRenderingContext::uniform2ivCallbackCustom):
(WebCore::V8WebGLRenderingContext::uniform3fvCallbackCustom):
(WebCore::V8WebGLRenderingContext::uniform3ivCallbackCustom):
(WebCore::V8WebGLRenderingContext::uniform4fvCallbackCustom):
(WebCore::V8WebGLRenderingContext::uniform4ivCallbackCustom):
(WebCore::V8WebGLRenderingContext::uniformMatrix2fvCallbackCustom):
(WebCore::V8WebGLRenderingContext::uniformMatrix3fvCallbackCustom):
(WebCore::V8WebGLRenderingContext::uniformMatrix4fvCallbackCustom):
(WebCore::V8WebGLRenderingContext::vertexAttrib1fvCallbackCustom):
(WebCore::V8WebGLRenderingContext::vertexAttrib2fvCallbackCustom):
(WebCore::V8WebGLRenderingContext::vertexAttrib3fvCallbackCustom):
(WebCore::V8WebGLRenderingContext::vertexAttrib4fvCallbackCustom):

  • bindings/v8/custom/V8WorkerContextCustom.cpp:

(WebCore::V8WorkerContext::importScriptsCallbackCustom):
(WebCore::V8WorkerContext::setTimeoutCallbackCustom):
(WebCore::V8WorkerContext::setIntervalCallbackCustom):

  • bindings/v8/custom/V8WorkerCustom.cpp:

(WebCore::V8Worker::postMessageCallbackCustom):

  • bindings/v8/custom/V8XMLHttpRequestCustom.cpp:

(WebCore::V8XMLHttpRequest::openCallbackCustom):
(WebCore::V8XMLHttpRequest::sendCallbackCustom):

  • bindings/v8/custom/V8XSLTProcessorCustom.cpp:

(WebCore::V8XSLTProcessor::setParameterCallbackCustom):
(WebCore::V8XSLTProcessor::getParameterCallbackCustom):
(WebCore::V8XSLTProcessor::removeParameterCallbackCustom):

Location:
trunk/Source/WebCore
Files:
45 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r142848 r142849  
     12013-02-13  Kentaro Hara  <haraken@chromium.org>
     2
     3        [V8] Generate wrapper methods for custom methods
     4        https://bugs.webkit.org/show_bug.cgi?id=109678
     5
     6        Reviewed by Adam Barth.
     7
     8        Currently V8 directly calls back custom methods written
     9        in custom binding files. This makes it impossible for code
     10        generators to hook custom methods (e.g. Code generators cannot
     11        insert a code for FeatureObservation into custom methods).
     12        To solve the problem, we should generate wrapper methods for
     13        custom methods.
     14
     15        No tests. No change in behavior.
     16
     17        * page/DOMWindow.idl: Removed overloaded methods. The fact that methods in an IDL
     18        file are overloaded but they are not overloaded in custom bindings confuses code
     19        generators. (For some reason, this problem hasn't appeared before this change.)
     20        * xml/XMLHttpRequest.idl: Ditto.
     21
     22        * bindings/scripts/CodeGeneratorV8.pm:
     23        (GenerateHeader):
     24        (GenerateDomainSafeFunctionGetter):
     25        (GenerateEventListenerCallback):
     26        (GenerateFunctionCallback):
     27        (GenerateNonStandardFunction):
     28        (GenerateImplementation):
     29        * bindings/scripts/test/V8/V8TestInterface.cpp:
     30        (WebCore::TestInterfaceV8Internal::supplementalMethod3Callback):
     31        (TestInterfaceV8Internal):
     32        (WebCore):
     33        * bindings/scripts/test/V8/V8TestObj.cpp:
     34        (WebCore::TestObjV8Internal::customMethodCallback):
     35        (TestObjV8Internal):
     36        (WebCore::TestObjV8Internal::customMethodWithArgsCallback):
     37        (WebCore::TestObjV8Internal::classMethod2Callback):
     38        (WebCore):
     39        (WebCore::ConfigureV8TestObjTemplate):
     40        * bindings/scripts/test/V8/V8TestObj.h:
     41        (V8TestObj):
     42        * bindings/v8/custom/V8ClipboardCustom.cpp:
     43        (WebCore::V8Clipboard::clearDataCallbackCustom):
     44        (WebCore::V8Clipboard::setDragImageCallbackCustom):
     45        * bindings/v8/custom/V8ConsoleCustom.cpp:
     46        (WebCore::V8Console::traceCallbackCustom):
     47        (WebCore::V8Console::assertCallbackCustom):
     48        (WebCore::V8Console::profileCallbackCustom):
     49        (WebCore::V8Console::profileEndCallbackCustom):
     50        * bindings/v8/custom/V8CryptoCustom.cpp:
     51        (WebCore::V8Crypto::getRandomValuesCallbackCustom):
     52        * bindings/v8/custom/V8DOMFormDataCustom.cpp:
     53        (WebCore::V8DOMFormData::appendCallbackCustom):
     54        * bindings/v8/custom/V8DOMWindowCustom.cpp:
     55        (WebCore::V8DOMWindow::addEventListenerCallbackCustom):
     56        (WebCore::V8DOMWindow::removeEventListenerCallbackCustom):
     57        (WebCore::V8DOMWindow::postMessageCallbackCustom):
     58        (WebCore::V8DOMWindow::toStringCallbackCustom):
     59        (WebCore::V8DOMWindow::releaseEventsCallbackCustom):
     60        (WebCore::V8DOMWindow::captureEventsCallbackCustom):
     61        (WebCore::V8DOMWindow::showModalDialogCallbackCustom):
     62        (WebCore::V8DOMWindow::openCallbackCustom):
     63        (WebCore::V8DOMWindow::setTimeoutCallbackCustom):
     64        (WebCore::V8DOMWindow::setIntervalCallbackCustom):
     65        * bindings/v8/custom/V8DataViewCustom.cpp:
     66        (WebCore::V8DataView::getInt8CallbackCustom):
     67        (WebCore::V8DataView::getUint8CallbackCustom):
     68        (WebCore::V8DataView::setInt8CallbackCustom):
     69        (WebCore::V8DataView::setUint8CallbackCustom):
     70        * bindings/v8/custom/V8DedicatedWorkerContextCustom.cpp:
     71        (WebCore::V8DedicatedWorkerContext::postMessageCallbackCustom):
     72        * bindings/v8/custom/V8DeviceMotionEventCustom.cpp:
     73        (WebCore::V8DeviceMotionEvent::initDeviceMotionEventCallbackCustom):
     74        * bindings/v8/custom/V8DeviceOrientationEventCustom.cpp:
     75        (WebCore::V8DeviceOrientationEvent::initDeviceOrientationEventCallbackCustom):
     76        * bindings/v8/custom/V8DocumentCustom.cpp:
     77        (WebCore::V8Document::evaluateCallbackCustom):
     78        (WebCore::V8Document::createTouchListCallbackCustom):
     79        * bindings/v8/custom/V8GeolocationCustom.cpp:
     80        (WebCore::V8Geolocation::getCurrentPositionCallbackCustom):
     81        (WebCore::V8Geolocation::watchPositionCallbackCustom):
     82        * bindings/v8/custom/V8HTMLAllCollectionCustom.cpp:
     83        (WebCore::V8HTMLAllCollection::itemCallbackCustom):
     84        (WebCore::V8HTMLAllCollection::namedItemCallbackCustom):
     85        * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp:
     86        (WebCore::V8HTMLCanvasElement::getContextCallbackCustom):
     87        (WebCore::V8HTMLCanvasElement::toDataURLCallbackCustom):
     88        * bindings/v8/custom/V8HTMLDocumentCustom.cpp:
     89        (WebCore::V8HTMLDocument::writeCallbackCustom):
     90        (WebCore::V8HTMLDocument::writelnCallbackCustom):
     91        (WebCore::V8HTMLDocument::openCallbackCustom):
     92        * bindings/v8/custom/V8HTMLFormControlsCollectionCustom.cpp:
     93        (WebCore::V8HTMLFormControlsCollection::namedItemCallbackCustom):
     94        * bindings/v8/custom/V8HTMLImageElementConstructor.cpp:
     95        (WebCore::v8HTMLImageElementConstructorCallbackCustom):
     96        (WebCore::V8HTMLImageElementConstructor::GetTemplate):
     97        * bindings/v8/custom/V8HTMLInputElementCustom.cpp:
     98        (WebCore::V8HTMLInputElement::setSelectionRangeCallbackCustom):
     99        * bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp:
     100        (WebCore::V8HTMLOptionsCollection::namedItemCallbackCustom):
     101        (WebCore::V8HTMLOptionsCollection::removeCallbackCustom):
     102        (WebCore::V8HTMLOptionsCollection::addCallbackCustom):
     103        * bindings/v8/custom/V8HTMLSelectElementCustom.cpp:
     104        (WebCore::V8HTMLSelectElement::removeCallbackCustom):
     105        * bindings/v8/custom/V8HistoryCustom.cpp:
     106        (WebCore::V8History::pushStateCallbackCustom):
     107        (WebCore::V8History::replaceStateCallbackCustom):
     108        * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
     109        (WebCore::V8InjectedScriptHost::inspectedObjectCallbackCustom):
     110        (WebCore::V8InjectedScriptHost::internalConstructorNameCallbackCustom):
     111        (WebCore::V8InjectedScriptHost::isHTMLAllCollectionCallbackCustom):
     112        (WebCore::V8InjectedScriptHost::typeCallbackCustom):
     113        (WebCore::V8InjectedScriptHost::functionDetailsCallbackCustom):
     114        (WebCore::V8InjectedScriptHost::getInternalPropertiesCallbackCustom):
     115        (WebCore::V8InjectedScriptHost::getEventListenersCallbackCustom):
     116        (WebCore::V8InjectedScriptHost::inspectCallbackCustom):
     117        (WebCore::V8InjectedScriptHost::databaseIdCallbackCustom):
     118        (WebCore::V8InjectedScriptHost::storageIdCallbackCustom):
     119        (WebCore::V8InjectedScriptHost::evaluateCallbackCustom):
     120        (WebCore::V8InjectedScriptHost::setFunctionVariableValueCallbackCustom):
     121        * bindings/v8/custom/V8InspectorFrontendHostCustom.cpp:
     122        (WebCore::V8InspectorFrontendHost::platformCallbackCustom):
     123        (WebCore::V8InspectorFrontendHost::portCallbackCustom):
     124        (WebCore::V8InspectorFrontendHost::showContextMenuCallbackCustom):
     125        (WebCore::V8InspectorFrontendHost::recordActionTakenCallbackCustom):
     126        (WebCore::V8InspectorFrontendHost::recordPanelShownCallbackCustom):
     127        (WebCore::V8InspectorFrontendHost::recordSettingChangedCallbackCustom):
     128        * bindings/v8/custom/V8JavaScriptCallFrameCustom.cpp:
     129        (WebCore::V8JavaScriptCallFrame::evaluateCallbackCustom):
     130        (WebCore::V8JavaScriptCallFrame::restartCallbackCustom):
     131        (WebCore::V8JavaScriptCallFrame::setVariableValueCallbackCustom):
     132        (WebCore::V8JavaScriptCallFrame::scopeTypeCallbackCustom):
     133        * bindings/v8/custom/V8LocationCustom.cpp:
     134        (WebCore::V8Location::reloadAccessorGetter):
     135        (WebCore::V8Location::replaceAccessorGetter):
     136        (WebCore::V8Location::assignAccessorGetter):
     137        (WebCore::V8Location::reloadCallbackCustom):
     138        (WebCore::V8Location::replaceCallbackCustom):
     139        (WebCore::V8Location::assignCallbackCustom):
     140        (WebCore::V8Location::valueOfCallbackCustom):
     141        (WebCore::V8Location::toStringCallbackCustom):
     142        * bindings/v8/custom/V8MessageEventCustom.cpp:
     143        (WebCore::V8MessageEvent::initMessageEventCallbackCustom):
     144        (WebCore::V8MessageEvent::webkitInitMessageEventCallbackCustom):
     145        * bindings/v8/custom/V8MessagePortCustom.cpp:
     146        (WebCore::V8MessagePort::postMessageCallbackCustom):
     147        * bindings/v8/custom/V8NodeCustom.cpp:
     148        (WebCore::V8Node::insertBeforeCallbackCustom):
     149        (WebCore::V8Node::replaceChildCallbackCustom):
     150        (WebCore::V8Node::removeChildCallbackCustom):
     151        (WebCore::V8Node::appendChildCallbackCustom):
     152        * bindings/v8/custom/V8NotificationCenterCustom.cpp:
     153        (WebCore::V8NotificationCenter::requestPermissionCallbackCustom):
     154        * bindings/v8/custom/V8NotificationCustom.cpp:
     155        (WebCore::V8Notification::requestPermissionCallbackCustom):
     156        * bindings/v8/custom/V8SQLResultSetRowListCustom.cpp:
     157        (WebCore::V8SQLResultSetRowList::itemCallbackCustom):
     158        * bindings/v8/custom/V8SQLTransactionCustom.cpp:
     159        (WebCore::V8SQLTransaction::executeSqlCallbackCustom):
     160        * bindings/v8/custom/V8SQLTransactionSyncCustom.cpp:
     161        (WebCore::V8SQLTransactionSync::executeSqlCallbackCustom):
     162        * bindings/v8/custom/V8SVGLengthCustom.cpp:
     163        (WebCore::V8SVGLength::convertToSpecifiedUnitsCallbackCustom):
     164        * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
     165        (WebCore::V8WebGLRenderingContext::getAttachedShadersCallbackCustom):
     166        (WebCore::V8WebGLRenderingContext::getBufferParameterCallbackCustom):
     167        (WebCore::V8WebGLRenderingContext::getExtensionCallbackCustom):
     168        (WebCore::V8WebGLRenderingContext::getFramebufferAttachmentParameterCallbackCustom):
     169        (WebCore::V8WebGLRenderingContext::getParameterCallbackCustom):
     170        (WebCore::V8WebGLRenderingContext::getProgramParameterCallbackCustom):
     171        (WebCore::V8WebGLRenderingContext::getRenderbufferParameterCallbackCustom):
     172        (WebCore::V8WebGLRenderingContext::getShaderParameterCallbackCustom):
     173        (WebCore::V8WebGLRenderingContext::getSupportedExtensionsCallbackCustom):
     174        (WebCore::V8WebGLRenderingContext::getTexParameterCallbackCustom):
     175        (WebCore::V8WebGLRenderingContext::getUniformCallbackCustom):
     176        (WebCore::V8WebGLRenderingContext::getVertexAttribCallbackCustom):
     177        (WebCore::V8WebGLRenderingContext::uniform1fvCallbackCustom):
     178        (WebCore::V8WebGLRenderingContext::uniform1ivCallbackCustom):
     179        (WebCore::V8WebGLRenderingContext::uniform2fvCallbackCustom):
     180        (WebCore::V8WebGLRenderingContext::uniform2ivCallbackCustom):
     181        (WebCore::V8WebGLRenderingContext::uniform3fvCallbackCustom):
     182        (WebCore::V8WebGLRenderingContext::uniform3ivCallbackCustom):
     183        (WebCore::V8WebGLRenderingContext::uniform4fvCallbackCustom):
     184        (WebCore::V8WebGLRenderingContext::uniform4ivCallbackCustom):
     185        (WebCore::V8WebGLRenderingContext::uniformMatrix2fvCallbackCustom):
     186        (WebCore::V8WebGLRenderingContext::uniformMatrix3fvCallbackCustom):
     187        (WebCore::V8WebGLRenderingContext::uniformMatrix4fvCallbackCustom):
     188        (WebCore::V8WebGLRenderingContext::vertexAttrib1fvCallbackCustom):
     189        (WebCore::V8WebGLRenderingContext::vertexAttrib2fvCallbackCustom):
     190        (WebCore::V8WebGLRenderingContext::vertexAttrib3fvCallbackCustom):
     191        (WebCore::V8WebGLRenderingContext::vertexAttrib4fvCallbackCustom):
     192        * bindings/v8/custom/V8WorkerContextCustom.cpp:
     193        (WebCore::V8WorkerContext::importScriptsCallbackCustom):
     194        (WebCore::V8WorkerContext::setTimeoutCallbackCustom):
     195        (WebCore::V8WorkerContext::setIntervalCallbackCustom):
     196        * bindings/v8/custom/V8WorkerCustom.cpp:
     197        (WebCore::V8Worker::postMessageCallbackCustom):
     198        * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
     199        (WebCore::V8XMLHttpRequest::openCallbackCustom):
     200        (WebCore::V8XMLHttpRequest::sendCallbackCustom):
     201        * bindings/v8/custom/V8XSLTProcessorCustom.cpp:
     202        (WebCore::V8XSLTProcessor::setParameterCallbackCustom):
     203        (WebCore::V8XSLTProcessor::getParameterCallbackCustom):
     204        (WebCore::V8XSLTProcessor::removeParameterCallbackCustom):
     205
    12062013-02-13  Praveen R Jadhav  <praveen.j@samsung.com>
    2207
  • trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm

    r142834 r142849  
    399399            push(@headerContent, "#if ${conditionalString}\n") if $conditionalString;
    400400            push(@headerContent, <<END);
    401     static v8::Handle<v8::Value> ${name}Callback(const v8::Arguments&);
     401    static v8::Handle<v8::Value> ${name}CallbackCustom(const v8::Arguments&);
    402402END
    403403            push(@headerContent, "#endif // ${conditionalString}\n") if $conditionalString;
     
    792792    }
    793793
    794     my $callback = GetFunctionTemplateCallbackName($function, $interfaceName);
    795     my $newTemplateString = "v8::FunctionTemplate::New($callback, v8Undefined(), $signature)";
     794    my $newTemplateString = "v8::FunctionTemplate::New(${interfaceName}V8Internal::${funcName}Callback, v8Undefined(), $signature)";
    796795
    797796    AddToImplIncludes("Frame.h");
     
    13711370}
    13721371
    1373 sub GetFunctionTemplateCallbackName
    1374 {
    1375     my $function = shift;
    1376     my $interfaceName = shift;
    1377 
    1378     my $name = $function->signature->name;
    1379 
    1380     if (HasCustomMethod($function->signature->extendedAttributes)) {
    1381         return "V8${interfaceName}::${name}Callback";
    1382     } else {
    1383         return "${interfaceName}V8Internal::${name}Callback";
    1384     }
    1385 }
    1386 
    13871372sub GenerateEventListenerCallback
    13881373{
    13891374    my $interfaceName = shift;
    13901375    my $requiresHiddenDependency = shift;
    1391     my $functionName = shift;
    1392     my $lookupType = ($functionName eq "add") ? "OrCreate" : "Only";
    1393     my $passRefPtrHandling = ($functionName eq "add") ? "" : ".get()";
    1394     my $hiddenDependencyAction = ($functionName eq "add") ? "create" : "remove";
     1376    my $function = shift;
     1377    my $name = $function->signature->name;
     1378    my $lookupType = ($name eq "addEventListener") ? "OrCreate" : "Only";
     1379    my $passRefPtrHandling = ($name eq "addEventListener") ? "" : ".get()";
     1380    my $hiddenDependencyAction = ($name eq "addEventListener") ? "create" : "remove";
    13951381
    13961382    AddToImplIncludes("V8EventListenerList.h");
    13971383    push(@implContentDecls, <<END);
    1398 static v8::Handle<v8::Value> ${functionName}EventListenerCallback(const v8::Arguments& args)
    1399 {
     1384static v8::Handle<v8::Value> ${name}Callback(const v8::Arguments& args)
     1385{
     1386END
     1387    if (HasCustomMethod($function->signature->extendedAttributes)) {
     1388        push(@implContentDecls, <<END);
     1389    return V8${interfaceName}::${name}CallbackCustom(args);
     1390}
     1391
     1392END
     1393        return;
     1394    }
     1395
     1396    push(@implContentDecls, <<END);
    14001397    RefPtr<EventListener> listener = V8EventListenerList::getEventListener(args[1], false, ListenerFind${lookupType});
    14011398    if (listener) {
    14021399        V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<WithNullCheck>, stringResource, args[0]);
    1403         V8${interfaceName}::toNative(args.Holder())->${functionName}EventListener(stringResource, listener${passRefPtrHandling}, args[2]->BooleanValue());
     1400        V8${interfaceName}::toNative(args.Holder())->${name}(stringResource, listener${passRefPtrHandling}, args[2]->BooleanValue());
    14041401END
    14051402    if ($requiresHiddenDependency) {
     
    15441541    # so we can generate them as a "special case".
    15451542    if ($name eq "addEventListener") {
    1546         GenerateEventListenerCallback($interfaceName, !$codeGenerator->InheritsInterface($interface, "Node"), "add");
     1543        GenerateEventListenerCallback($interfaceName, !$codeGenerator->InheritsInterface($interface, "Node"), $function);
    15471544        return;
    15481545    } elsif ($name eq "removeEventListener") {
    1549         GenerateEventListenerCallback($interfaceName, !$codeGenerator->InheritsInterface($interface, "Node"), "remove");
     1546        GenerateEventListenerCallback($interfaceName, !$codeGenerator->InheritsInterface($interface, "Node"), $function);
    15501547        return;
    15511548    }
     
    15581555END
    15591556    push(@implContentDecls, GenerateFeatureObservation($function->signature->extendedAttributes->{"V8MeasureAs"}));
     1557
     1558    if (HasCustomMethod($function->signature->extendedAttributes)) {
     1559        $name = $function->signature->name;
     1560        push(@implContentDecls, <<END);
     1561    return ${v8InterfaceName}::${name}CallbackCustom(args);
     1562}
     1563
     1564END
     1565        push(@implContentDecls, "#endif // ${conditionalString}\n\n") if $conditionalString;
     1566        return;
     1567    }
    15601568
    15611569    push(@implContentDecls, GenerateArgumentsCountCheck($function, $interface));
     
    24292437    }
    24302438
    2431     # Normal function call is a template
    2432     my $callback = GetFunctionTemplateCallbackName($function, $interfaceName);
    2433 
    24342439    if ($property_attributes eq "v8::DontDelete") {
    24352440        $property_attributes = "";
     
    24442449    my $conditionalString = $codeGenerator->GenerateConditionalString($function->signature);
    24452450    push(@implContent, "#if ${conditionalString}\n") if $conditionalString;
    2446 
    2447     push(@implContent, "    ${conditional}$template->Set(v8::String::NewSymbol(\"$name\"), v8::FunctionTemplate::New($callback, v8Undefined(), ${signature})$property_attributes);\n");
    2448 
     2451    push(@implContent, "    ${conditional}$template->Set(v8::String::NewSymbol(\"$name\"), v8::FunctionTemplate::New(${interfaceName}V8Internal::${name}Callback, v8Undefined(), ${signature})$property_attributes);\n");
    24492452    push(@implContent, "#endif // ${conditionalString}\n") if $conditionalString;
    24502453}
     
    27682771    # Generate methods for functions.
    27692772    foreach my $function (@{$interface->functions}) {
    2770         my $isCustom = HasCustomMethod($function->signature->extendedAttributes);
    2771         if (!$isCustom) {
    2772             GenerateFunctionCallback($function, $interface);
    2773             if ($function->{overloadIndex} > 1 && $function->{overloadIndex} == @{$function->{overloads}}) {
    2774                 GenerateOverloadedFunctionCallback($function, $interface);
    2775             }
     2773        GenerateFunctionCallback($function, $interface);
     2774        if ($function->{overloadIndex} > 1 && $function->{overloadIndex} == @{$function->{overloads}}) {
     2775            GenerateOverloadedFunctionCallback($function, $interface);
    27762776        }
    27772777
     
    27922792        # for different calling context.
    27932793        if (($interface->extendedAttributes->{"CheckSecurity"} || ($interfaceName eq "DOMWindow")) && $function->signature->extendedAttributes->{"DoNotCheckSecurity"}) {
    2794             if (!$isCustom || $function->{overloadIndex} == 1) {
     2794            if (!HasCustomMethod($function->signature->extendedAttributes) || $function->{overloadIndex} == 1) {
    27952795                GenerateDomainSafeFunctionGetter($function, $interfaceName);
    27962796                $needsDomainSafeFunctionSetter = 1;
     
    28612861        }
    28622862        my $name = $function->signature->name;
    2863         my $callback = GetFunctionTemplateCallbackName($function, $interfaceName);
    28642863        my $conditionalString = $codeGenerator->GenerateConditionalString($function->signature);
    28652864        push(@implContent, "#if ${conditionalString}\n") if $conditionalString;
    28662865        push(@implContent, <<END);
    2867     {"$name", $callback},
     2866    {"$name", ${interfaceName}V8Internal::${name}Callback},
    28682867END
    28692868        push(@implContent, "#endif\n") if $conditionalString;
     
    31863185            push(@implContent, "    if (context && context->isDocument() && ${enableFunction}(static_cast<Document*>(context))) {\n");
    31873186            my $name = $runtimeFunc->signature->name;
    3188             my $callback = GetFunctionTemplateCallbackName($runtimeFunc, $interfaceName);
    31893187            push(@implContent, <<END);
    3190         proto->Set(v8::String::NewSymbol("${name}"), v8::FunctionTemplate::New(${callback}, v8Undefined(), defaultSignature)->GetFunction());
     3188        proto->Set(v8::String::NewSymbol("${name}"), v8::FunctionTemplate::New(${interfaceName}V8Internal::${name}Callback, v8Undefined(), defaultSignature)->GetFunction());
    31913189END
    31923190            push(@implContent, "    }\n");
  • trunk/Source/WebCore/bindings/scripts/test/V8/V8TestInterface.cpp

    r142834 r142849  
    206206#if ENABLE(Condition11) || ENABLE(Condition12)
    207207
     208static v8::Handle<v8::Value> supplementalMethod3Callback(const v8::Arguments& args)
     209{
     210    return V8TestInterface::supplementalMethod3CallbackCustom(args);
     211}
     212
     213#endif // ENABLE(Condition11) || ENABLE(Condition12)
     214
     215#if ENABLE(Condition11) || ENABLE(Condition12)
     216
    208217static v8::Handle<v8::Value> supplementalMethod4Callback(const v8::Arguments& args)
    209218{
     
    248257#endif
    249258#if ENABLE(Condition11) || ENABLE(Condition12)
    250     {"supplementalMethod3", V8TestInterface::supplementalMethod3Callback},
     259    {"supplementalMethod3", TestInterfaceV8Internal::supplementalMethod3Callback},
    251260#endif
    252261};
  • trunk/Source/WebCore/bindings/scripts/test/V8/V8TestObj.cpp

    r142834 r142849  
    11191119}
    11201120
     1121static v8::Handle<v8::Value> customMethodCallback(const v8::Arguments& args)
     1122{
     1123    FeatureObserver::observe(activeDOMWindow(BindingState::instance()), FeatureObserver::CustomTestFeature);
     1124    return V8TestObj::customMethodCallbackCustom(args);
     1125}
     1126
     1127static v8::Handle<v8::Value> customMethodWithArgsCallback(const v8::Arguments& args)
     1128{
     1129    return V8TestObj::customMethodWithArgsCallbackCustom(args);
     1130}
     1131
    11211132static v8::Handle<v8::Value> addEventListenerCallback(const v8::Arguments& args)
    11221133{
     
    15981609    V8TRYCATCH(int, arg, toInt32(MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined)));
    15991610    return v8Integer(TestObj::classMethodWithOptional(arg), args.GetIsolate());
     1611}
     1612
     1613static v8::Handle<v8::Value> classMethod2Callback(const v8::Arguments& args)
     1614{
     1615    return V8TestObj::classMethod2CallbackCustom(args);
    16001616}
    16011617
     
    20072023    {"optionsObject", TestObjV8Internal::optionsObjectCallback},
    20082024    {"methodWithException", TestObjV8Internal::methodWithExceptionCallback},
    2009     {"customMethod", V8TestObj::customMethodCallback},
    2010     {"customMethodWithArgs", V8TestObj::customMethodWithArgsCallback},
     2025    {"customMethod", TestObjV8Internal::customMethodCallback},
     2026    {"customMethodWithArgs", TestObjV8Internal::customMethodWithArgsCallback},
    20112027    {"addEventListener", TestObjV8Internal::addEventListenerCallback},
    20122028    {"removeEventListener", TestObjV8Internal::removeEventListenerCallback},
     
    21642180    desc->Set(v8::String::NewSymbol("classMethod"), v8::FunctionTemplate::New(TestObjV8Internal::classMethodCallback, v8Undefined(), v8::Local<v8::Signature>()));
    21652181    desc->Set(v8::String::NewSymbol("classMethodWithOptional"), v8::FunctionTemplate::New(TestObjV8Internal::classMethodWithOptionalCallback, v8Undefined(), v8::Local<v8::Signature>()));
    2166     desc->Set(v8::String::NewSymbol("classMethod2"), v8::FunctionTemplate::New(V8TestObj::classMethod2Callback, v8Undefined(), v8::Local<v8::Signature>()));
     2182    desc->Set(v8::String::NewSymbol("classMethod2"), v8::FunctionTemplate::New(TestObjV8Internal::classMethod2Callback, v8Undefined(), v8::Local<v8::Signature>()));
    21672183#if ENABLE(Condition1)
    21682184    desc->Set(v8::String::NewSymbol("overloadedMethod1"), v8::FunctionTemplate::New(TestObjV8Internal::overloadedMethod1Callback, v8Undefined(), v8::Local<v8::Signature>()));
  • trunk/Source/WebCore/bindings/scripts/test/V8/V8TestObj.h

    r142834 r142849  
    4444    static void derefObject(void*);
    4545    static WrapperTypeInfo info;
    46     static v8::Handle<v8::Value> customMethodCallback(const v8::Arguments&);
    47     static v8::Handle<v8::Value> customMethodWithArgsCallback(const v8::Arguments&);
    48     static v8::Handle<v8::Value> classMethod2Callback(const v8::Arguments&);
     46    static v8::Handle<v8::Value> customMethodCallbackCustom(const v8::Arguments&);
     47    static v8::Handle<v8::Value> customMethodWithArgsCallbackCustom(const v8::Arguments&);
     48    static v8::Handle<v8::Value> classMethod2CallbackCustom(const v8::Arguments&);
    4949    static v8::Handle<v8::Value> constructorCallback(const v8::Arguments&);
    5050    static v8::Handle<v8::Value> customAttrAttrGetterCustom(v8::Local<v8::String> name, const v8::AccessorInfo&);
  • trunk/Source/WebCore/bindings/v8/custom/V8ClipboardCustom.cpp

    r142834 r142849  
    6161}
    6262
    63 v8::Handle<v8::Value> V8Clipboard::clearDataCallback(const v8::Arguments& args)
     63v8::Handle<v8::Value> V8Clipboard::clearDataCallbackCustom(const v8::Arguments& args)
    6464{
    6565    Clipboard* clipboard = V8Clipboard::toNative(args.Holder());
     
    7878}
    7979
    80 v8::Handle<v8::Value> V8Clipboard::setDragImageCallback(const v8::Arguments& args)
     80v8::Handle<v8::Value> V8Clipboard::setDragImageCallbackCustom(const v8::Arguments& args)
    8181{
    8282    Clipboard* clipboard = V8Clipboard::toNative(args.Holder());
  • trunk/Source/WebCore/bindings/v8/custom/V8ConsoleCustom.cpp

    r138665 r142849  
    4141namespace WebCore {
    4242
    43 v8::Handle<v8::Value> V8Console::traceCallback(const v8::Arguments& args)
     43v8::Handle<v8::Value> V8Console::traceCallbackCustom(const v8::Arguments& args)
    4444{
    4545    Console* imp = V8Console::toNative(args.Holder());
     
    4949}
    5050
    51 v8::Handle<v8::Value> V8Console::assertCallback(const v8::Arguments& args)
     51v8::Handle<v8::Value> V8Console::assertCallbackCustom(const v8::Arguments& args)
    5252{
    5353    Console* imp = V8Console::toNative(args.Holder());
     
    5959
    6060#if ENABLE(JAVASCRIPT_DEBUGGER)
    61 v8::Handle<v8::Value> V8Console::profileCallback(const v8::Arguments& args)
     61v8::Handle<v8::Value> V8Console::profileCallbackCustom(const v8::Arguments& args)
    6262{
    6363    Console* imp = V8Console::toNative(args.Holder());
     
    6767}
    6868
    69 v8::Handle<v8::Value> V8Console::profileEndCallback(const v8::Arguments& args)
     69v8::Handle<v8::Value> V8Console::profileEndCallbackCustom(const v8::Arguments& args)
    7070{
    7171    Console* imp = V8Console::toNative(args.Holder());
  • trunk/Source/WebCore/bindings/v8/custom/V8CryptoCustom.cpp

    r141718 r142849  
    3636namespace WebCore {
    3737
    38 v8::Handle<v8::Value> V8Crypto::getRandomValuesCallback(const v8::Arguments& args)
     38v8::Handle<v8::Value> V8Crypto::getRandomValuesCallbackCustom(const v8::Arguments& args)
    3939{
    4040    if (args.Length() < 1)
  • trunk/Source/WebCore/bindings/v8/custom/V8DOMFormDataCustom.cpp

    r142159 r142849  
    5252}
    5353
    54 v8::Handle<v8::Value> V8DOMFormData::appendCallback(const v8::Arguments& args)
     54v8::Handle<v8::Value> V8DOMFormData::appendCallbackCustom(const v8::Arguments& args)
    5555{
    5656    if (args.Length() < 2)
  • trunk/Source/WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp

    r142834 r142849  
    227227}
    228228
    229 v8::Handle<v8::Value> V8DOMWindow::addEventListenerCallback(const v8::Arguments& args)
     229v8::Handle<v8::Value> V8DOMWindow::addEventListenerCallbackCustom(const v8::Arguments& args)
    230230{
    231231    String eventType = toWebCoreString(args[0]);
     
    257257
    258258
    259 v8::Handle<v8::Value> V8DOMWindow::removeEventListenerCallback(const v8::Arguments& args)
     259v8::Handle<v8::Value> V8DOMWindow::removeEventListenerCallbackCustom(const v8::Arguments& args)
    260260{
    261261    String eventType = toWebCoreString(args[0]);
     
    293293
    294294
    295 v8::Handle<v8::Value> V8DOMWindow::postMessageCallback(const v8::Arguments& args)
     295v8::Handle<v8::Value> V8DOMWindow::postMessageCallbackCustom(const v8::Arguments& args)
    296296{
    297297    // None of these need to be RefPtr because args and context are guaranteed
     
    343343// However, V8 implements toString in JavaScript, which requires
    344344// switching context of receiver. I consider it is dangerous.
    345 v8::Handle<v8::Value> V8DOMWindow::toStringCallback(const v8::Arguments& args)
     345v8::Handle<v8::Value> V8DOMWindow::toStringCallbackCustom(const v8::Arguments& args)
    346346{
    347347    v8::Handle<v8::Object> domWrapper = args.This()->FindInstanceInPrototypeChain(V8DOMWindow::GetTemplate(args.GetIsolate()));
     
    351351}
    352352
    353 v8::Handle<v8::Value> V8DOMWindow::releaseEventsCallback(const v8::Arguments& args)
     353v8::Handle<v8::Value> V8DOMWindow::releaseEventsCallbackCustom(const v8::Arguments& args)
    354354{
    355355    return v8::Undefined();
    356356}
    357357
    358 v8::Handle<v8::Value> V8DOMWindow::captureEventsCallback(const v8::Arguments& args)
     358v8::Handle<v8::Value> V8DOMWindow::captureEventsCallbackCustom(const v8::Arguments& args)
    359359{
    360360    return v8::Undefined();
     
    403403}
    404404
    405 v8::Handle<v8::Value> V8DOMWindow::showModalDialogCallback(const v8::Arguments& args)
     405v8::Handle<v8::Value> V8DOMWindow::showModalDialogCallbackCustom(const v8::Arguments& args)
    406406{
    407407    DOMWindow* impl = V8DOMWindow::toNative(args.Holder());
     
    420420}
    421421
    422 v8::Handle<v8::Value> V8DOMWindow::openCallback(const v8::Arguments& args)
     422v8::Handle<v8::Value> V8DOMWindow::openCallbackCustom(const v8::Arguments& args)
    423423{
    424424    DOMWindow* impl = V8DOMWindow::toNative(args.Holder());
     
    497497
    498498
    499 v8::Handle<v8::Value> V8DOMWindow::setTimeoutCallback(const v8::Arguments& args)
     499v8::Handle<v8::Value> V8DOMWindow::setTimeoutCallbackCustom(const v8::Arguments& args)
    500500{
    501501    return WindowSetTimeoutImpl(args, true);
     
    503503
    504504
    505 v8::Handle<v8::Value> V8DOMWindow::setIntervalCallback(const v8::Arguments& args)
     505v8::Handle<v8::Value> V8DOMWindow::setIntervalCallbackCustom(const v8::Arguments& args)
    506506{
    507507    return WindowSetTimeoutImpl(args, false);
  • trunk/Source/WebCore/bindings/v8/custom/V8DataViewCustom.cpp

    r142159 r142849  
    5555}
    5656
    57 v8::Handle<v8::Value> V8DataView::getInt8Callback(const v8::Arguments& args)
     57v8::Handle<v8::Value> V8DataView::getInt8CallbackCustom(const v8::Arguments& args)
    5858{
    5959    if (args.Length() < 1)
     
    6969}
    7070
    71 v8::Handle<v8::Value> V8DataView::getUint8Callback(const v8::Arguments& args)
     71v8::Handle<v8::Value> V8DataView::getUint8CallbackCustom(const v8::Arguments& args)
    7272{
    7373    if (args.Length() < 1)
     
    8383}
    8484
    85 v8::Handle<v8::Value> V8DataView::setInt8Callback(const v8::Arguments& args)
     85v8::Handle<v8::Value> V8DataView::setInt8CallbackCustom(const v8::Arguments& args)
    8686{
    8787    if (args.Length() < 2)
     
    9898}
    9999
    100 v8::Handle<v8::Value> V8DataView::setUint8Callback(const v8::Arguments& args)
     100v8::Handle<v8::Value> V8DataView::setUint8CallbackCustom(const v8::Arguments& args)
    101101{
    102102    if (args.Length() < 2)
  • trunk/Source/WebCore/bindings/v8/custom/V8DedicatedWorkerContextCustom.cpp

    r138677 r142849  
    4242namespace WebCore {
    4343
    44 v8::Handle<v8::Value> V8DedicatedWorkerContext::postMessageCallback(const v8::Arguments& args)
     44v8::Handle<v8::Value> V8DedicatedWorkerContext::postMessageCallbackCustom(const v8::Arguments& args)
    4545{
    4646    DedicatedWorkerContext* workerContext = V8DedicatedWorkerContext::toNative(args.Holder());
  • trunk/Source/WebCore/bindings/v8/custom/V8DeviceMotionEventCustom.cpp

    r142834 r142849  
    158158}
    159159
    160 v8::Handle<v8::Value> V8DeviceMotionEvent::initDeviceMotionEventCallback(const v8::Arguments& args)
     160v8::Handle<v8::Value> V8DeviceMotionEvent::initDeviceMotionEventCallbackCustom(const v8::Arguments& args)
    161161{
    162162    DeviceMotionEvent* imp = V8DeviceMotionEvent::toNative(args.Holder());
  • trunk/Source/WebCore/bindings/v8/custom/V8DeviceOrientationEventCustom.cpp

    r142834 r142849  
    7272}
    7373
    74 v8::Handle<v8::Value> V8DeviceOrientationEvent::initDeviceOrientationEventCallback(const v8::Arguments& args)
     74v8::Handle<v8::Value> V8DeviceOrientationEvent::initDeviceOrientationEventCallbackCustom(const v8::Arguments& args)
    7575{
    7676    DeviceOrientationEvent* imp = V8DeviceOrientationEvent::toNative(args.Holder());
  • trunk/Source/WebCore/bindings/v8/custom/V8DocumentCustom.cpp

    r142424 r142849  
    6565namespace WebCore {
    6666
    67 v8::Handle<v8::Value> V8Document::evaluateCallback(const v8::Arguments& args)
     67v8::Handle<v8::Value> V8Document::evaluateCallbackCustom(const v8::Arguments& args)
    6868{
    6969    RefPtr<Document> document = V8Document::toNative(args.Holder());
     
    110110
    111111#if ENABLE(TOUCH_EVENTS)
    112 v8::Handle<v8::Value> V8Document::createTouchListCallback(const v8::Arguments& args)
     112v8::Handle<v8::Value> V8Document::createTouchListCallbackCustom(const v8::Arguments& args)
    113113{
    114114    RefPtr<TouchList> touchList = TouchList::create();
  • trunk/Source/WebCore/bindings/v8/custom/V8GeolocationCustom.cpp

    r142810 r142849  
    129129}
    130130
    131 v8::Handle<v8::Value> V8Geolocation::getCurrentPositionCallback(const v8::Arguments& args)
     131v8::Handle<v8::Value> V8Geolocation::getCurrentPositionCallbackCustom(const v8::Arguments& args)
    132132{
    133133    bool succeeded = false;
     
    153153}
    154154
    155 v8::Handle<v8::Value> V8Geolocation::watchPositionCallback(const v8::Arguments& args)
     155v8::Handle<v8::Value> V8Geolocation::watchPositionCallbackCustom(const v8::Arguments& args)
    156156{
    157157    bool succeeded = false;
  • trunk/Source/WebCore/bindings/v8/custom/V8HTMLAllCollectionCustom.cpp

    r142831 r142849  
    8686}
    8787
    88 v8::Handle<v8::Value> V8HTMLAllCollection::itemCallback(const v8::Arguments& args)
     88v8::Handle<v8::Value> V8HTMLAllCollection::itemCallbackCustom(const v8::Arguments& args)
    8989{
    9090    HTMLAllCollection* imp = V8HTMLAllCollection::toNative(args.Holder());
     
    9292}
    9393
    94 v8::Handle<v8::Value> V8HTMLAllCollection::namedItemCallback(const v8::Arguments& args)
     94v8::Handle<v8::Value> V8HTMLAllCollection::namedItemCallbackCustom(const v8::Arguments& args)
    9595{
    9696    HTMLAllCollection* imp = V8HTMLAllCollection::toNative(args.Holder());
  • trunk/Source/WebCore/bindings/v8/custom/V8HTMLCanvasElementCustom.cpp

    r141763 r142849  
    4949namespace WebCore {
    5050
    51 v8::Handle<v8::Value> V8HTMLCanvasElement::getContextCallback(const v8::Arguments& args)
     51v8::Handle<v8::Value> V8HTMLCanvasElement::getContextCallbackCustom(const v8::Arguments& args)
    5252{
    5353    v8::Handle<v8::Object> holder = args.Holder();
     
    113113}
    114114
    115 v8::Handle<v8::Value> V8HTMLCanvasElement::toDataURLCallback(const v8::Arguments& args)
     115v8::Handle<v8::Value> V8HTMLCanvasElement::toDataURLCallbackCustom(const v8::Arguments& args)
    116116{
    117117    v8::Handle<v8::Object> holder = args.Holder();
  • trunk/Source/WebCore/bindings/v8/custom/V8HTMLDocumentCustom.cpp

    r142834 r142849  
    116116}
    117117
    118 v8::Handle<v8::Value> V8HTMLDocument::writeCallback(const v8::Arguments& args)
     118v8::Handle<v8::Value> V8HTMLDocument::writeCallbackCustom(const v8::Arguments& args)
    119119{
    120120    HTMLDocument* htmlDocument = V8HTMLDocument::toNative(args.Holder());
     
    123123}
    124124
    125 v8::Handle<v8::Value> V8HTMLDocument::writelnCallback(const v8::Arguments& args)
     125v8::Handle<v8::Value> V8HTMLDocument::writelnCallbackCustom(const v8::Arguments& args)
    126126{
    127127    HTMLDocument* htmlDocument = V8HTMLDocument::toNative(args.Holder());
     
    130130}
    131131
    132 v8::Handle<v8::Value> V8HTMLDocument::openCallback(const v8::Arguments& args)
     132v8::Handle<v8::Value> V8HTMLDocument::openCallbackCustom(const v8::Arguments& args)
    133133{
    134134    HTMLDocument* htmlDocument = V8HTMLDocument::toNative(args.Holder());
  • trunk/Source/WebCore/bindings/v8/custom/V8HTMLFormControlsCollectionCustom.cpp

    r142831 r142849  
    6666}
    6767
    68 v8::Handle<v8::Value> V8HTMLFormControlsCollection::namedItemCallback(const v8::Arguments& args)
     68v8::Handle<v8::Value> V8HTMLFormControlsCollection::namedItemCallbackCustom(const v8::Arguments& args)
    6969{
    7070    HTMLFormControlsCollection* imp = V8HTMLFormControlsCollection::toNative(args.Holder());
  • trunk/Source/WebCore/bindings/v8/custom/V8HTMLImageElementConstructor.cpp

    r142250 r142849  
    4646WrapperTypeInfo V8HTMLImageElementConstructor::info = { V8HTMLImageElementConstructor::GetTemplate, V8HTMLImageElement::derefObject, 0, V8HTMLImageElement::toEventTarget, 0, V8HTMLImageElement::installPerContextPrototypeProperties, 0, WrapperTypeObjectPrototype };
    4747
    48 static v8::Handle<v8::Value> v8HTMLImageElementConstructorCallback(const v8::Arguments& args)
     48static v8::Handle<v8::Value> v8HTMLImageElementConstructorCallbackCustom(const v8::Arguments& args)
    4949{
    5050    if (!args.IsConstructCall())
     
    8989
    9090    v8::HandleScope scope;
    91     v8::Local<v8::FunctionTemplate> result = v8::FunctionTemplate::New(v8HTMLImageElementConstructorCallback);
     91    v8::Local<v8::FunctionTemplate> result = v8::FunctionTemplate::New(v8HTMLImageElementConstructorCallbackCustom);
    9292
    9393    v8::Local<v8::ObjectTemplate> instance = result->InstanceTemplate();
  • trunk/Source/WebCore/bindings/v8/custom/V8HTMLInputElementCustom.cpp

    r142834 r142849  
    111111}
    112112
    113 v8::Handle<v8::Value> V8HTMLInputElement::setSelectionRangeCallback(const v8::Arguments& args)
     113v8::Handle<v8::Value> V8HTMLInputElement::setSelectionRangeCallbackCustom(const v8::Arguments& args)
    114114{
    115115    v8::Handle<v8::Object> holder = args.Holder();
  • trunk/Source/WebCore/bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp

    r142834 r142849  
    7272}
    7373
    74 v8::Handle<v8::Value> V8HTMLOptionsCollection::namedItemCallback(const v8::Arguments& args)
     74v8::Handle<v8::Value> V8HTMLOptionsCollection::namedItemCallbackCustom(const v8::Arguments& args)
    7575{
    7676    HTMLOptionsCollection* imp = V8HTMLOptionsCollection::toNative(args.Holder());
     
    8383}
    8484
    85 v8::Handle<v8::Value> V8HTMLOptionsCollection::removeCallback(const v8::Arguments& args)
     85v8::Handle<v8::Value> V8HTMLOptionsCollection::removeCallbackCustom(const v8::Arguments& args)
    8686{
    8787    HTMLOptionsCollection* imp = V8HTMLOptionsCollection::toNative(args.Holder());
     
    9090}
    9191
    92 v8::Handle<v8::Value> V8HTMLOptionsCollection::addCallback(const v8::Arguments& args)
     92v8::Handle<v8::Value> V8HTMLOptionsCollection::addCallbackCustom(const v8::Arguments& args)
    9393{
    9494    if (!V8HTMLOptionElement::HasInstance(args[0], args.GetIsolate()))
  • trunk/Source/WebCore/bindings/v8/custom/V8HTMLSelectElementCustom.cpp

    r141763 r142849  
    6363}
    6464
    65 v8::Handle<v8::Value> V8HTMLSelectElement::removeCallback(const v8::Arguments& args)
     65v8::Handle<v8::Value> V8HTMLSelectElement::removeCallbackCustom(const v8::Arguments& args)
    6666{
    6767    HTMLSelectElement* imp = V8HTMLSelectElement::toNative(args.Holder());
  • trunk/Source/WebCore/bindings/v8/custom/V8HistoryCustom.cpp

    r142834 r142849  
    5858}
    5959
    60 v8::Handle<v8::Value> V8History::pushStateCallback(const v8::Arguments& args)
     60v8::Handle<v8::Value> V8History::pushStateCallbackCustom(const v8::Arguments& args)
    6161{
    6262    bool didThrow = false;
     
    7575}
    7676
    77 v8::Handle<v8::Value> V8History::replaceStateCallback(const v8::Arguments& args)
     77v8::Handle<v8::Value> V8History::replaceStateCallbackCustom(const v8::Arguments& args)
    7878{
    7979    bool didThrow = false;
  • trunk/Source/WebCore/bindings/v8/custom/V8InjectedScriptHostCustom.cpp

    r142114 r142849  
    8080}
    8181
    82 v8::Handle<v8::Value> V8InjectedScriptHost::inspectedObjectCallback(const v8::Arguments& args)
     82v8::Handle<v8::Value> V8InjectedScriptHost::inspectedObjectCallbackCustom(const v8::Arguments& args)
    8383{
    8484    if (args.Length() < 1)
     
    9393}
    9494
    95 v8::Handle<v8::Value> V8InjectedScriptHost::internalConstructorNameCallback(const v8::Arguments& args)
     95v8::Handle<v8::Value> V8InjectedScriptHost::internalConstructorNameCallbackCustom(const v8::Arguments& args)
    9696{
    9797    if (args.Length() < 1)
     
    104104}
    105105
    106 v8::Handle<v8::Value> V8InjectedScriptHost::isHTMLAllCollectionCallback(const v8::Arguments& args)
     106v8::Handle<v8::Value> V8InjectedScriptHost::isHTMLAllCollectionCallbackCustom(const v8::Arguments& args)
    107107{
    108108    if (args.Length() < 1)
     
    116116}
    117117
    118 v8::Handle<v8::Value> V8InjectedScriptHost::typeCallback(const v8::Arguments& args)
     118v8::Handle<v8::Value> V8InjectedScriptHost::typeCallbackCustom(const v8::Arguments& args)
    119119{
    120120    if (args.Length() < 1)
     
    151151}
    152152
    153 v8::Handle<v8::Value> V8InjectedScriptHost::functionDetailsCallback(const v8::Arguments& args)
     153v8::Handle<v8::Value> V8InjectedScriptHost::functionDetailsCallbackCustom(const v8::Arguments& args)
    154154{
    155155    if (args.Length() < 1)
     
    190190}
    191191
    192 v8::Handle<v8::Value> V8InjectedScriptHost::getInternalPropertiesCallback(const v8::Arguments& args)
     192v8::Handle<v8::Value> V8InjectedScriptHost::getInternalPropertiesCallbackCustom(const v8::Arguments& args)
    193193{
    194194    if (args.Length() < 1)
     
    236236}
    237237
    238 v8::Handle<v8::Value> V8InjectedScriptHost::getEventListenersCallback(const v8::Arguments& args)
     238v8::Handle<v8::Value> V8InjectedScriptHost::getEventListenersCallbackCustom(const v8::Arguments& args)
    239239{
    240240    if (args.Length() < 1)
     
    270270}
    271271
    272 v8::Handle<v8::Value> V8InjectedScriptHost::inspectCallback(const v8::Arguments& args)
     272v8::Handle<v8::Value> V8InjectedScriptHost::inspectCallbackCustom(const v8::Arguments& args)
    273273{
    274274    if (args.Length() < 2)
     
    283283}
    284284
    285 v8::Handle<v8::Value> V8InjectedScriptHost::databaseIdCallback(const v8::Arguments& args)
     285v8::Handle<v8::Value> V8InjectedScriptHost::databaseIdCallbackCustom(const v8::Arguments& args)
    286286{
    287287    if (args.Length() < 1)
     
    296296}
    297297
    298 v8::Handle<v8::Value> V8InjectedScriptHost::storageIdCallback(const v8::Arguments& args)
     298v8::Handle<v8::Value> V8InjectedScriptHost::storageIdCallbackCustom(const v8::Arguments& args)
    299299{
    300300    if (args.Length() < 1)
     
    307307}
    308308
    309 v8::Handle<v8::Value> V8InjectedScriptHost::evaluateCallback(const v8::Arguments& args)
     309v8::Handle<v8::Value> V8InjectedScriptHost::evaluateCallbackCustom(const v8::Arguments& args)
    310310{
    311311    if (args.Length() < 1)
     
    322322}
    323323
    324 v8::Handle<v8::Value> V8InjectedScriptHost::setFunctionVariableValueCallback(const v8::Arguments& args)
     324v8::Handle<v8::Value> V8InjectedScriptHost::setFunctionVariableValueCallbackCustom(const v8::Arguments& args)
    325325{
    326326    v8::Handle<v8::Value> functionValue = args[0];
  • trunk/Source/WebCore/bindings/v8/custom/V8InspectorFrontendHostCustom.cpp

    r136813 r142849  
    4444namespace WebCore {
    4545
    46 v8::Handle<v8::Value> V8InspectorFrontendHost::platformCallback(const v8::Arguments& args)
     46v8::Handle<v8::Value> V8InspectorFrontendHost::platformCallbackCustom(const v8::Arguments& args)
    4747{
    4848#if defined(OS_MACOSX)
     
    6363}
    6464
    65 v8::Handle<v8::Value> V8InspectorFrontendHost::portCallback(const v8::Arguments&)
     65v8::Handle<v8::Value> V8InspectorFrontendHost::portCallbackCustom(const v8::Arguments&)
    6666{
    6767    return v8::Undefined();
     
    107107}
    108108
    109 v8::Handle<v8::Value> V8InspectorFrontendHost::showContextMenuCallback(const v8::Arguments& args)
     109v8::Handle<v8::Value> V8InspectorFrontendHost::showContextMenuCallbackCustom(const v8::Arguments& args)
    110110{
    111111    if (args.Length() < 2)
     
    147147}
    148148
    149 v8::Handle<v8::Value> V8InspectorFrontendHost::recordActionTakenCallback(const v8::Arguments& args)
     149v8::Handle<v8::Value> V8InspectorFrontendHost::recordActionTakenCallbackCustom(const v8::Arguments& args)
    150150{
    151151    return histogramEnumeration("DevTools.ActionTaken", args, 100);
    152152}
    153153
    154 v8::Handle<v8::Value> V8InspectorFrontendHost::recordPanelShownCallback(const v8::Arguments& args)
     154v8::Handle<v8::Value> V8InspectorFrontendHost::recordPanelShownCallbackCustom(const v8::Arguments& args)
    155155{
    156156    return histogramEnumeration("DevTools.PanelShown", args, 20);
    157157}
    158158
    159 v8::Handle<v8::Value> V8InspectorFrontendHost::recordSettingChangedCallback(const v8::Arguments& args)
     159v8::Handle<v8::Value> V8InspectorFrontendHost::recordSettingChangedCallbackCustom(const v8::Arguments& args)
    160160{
    161161    return histogramEnumeration("DevTools.SettingChanged", args, 100);
  • trunk/Source/WebCore/bindings/v8/custom/V8JavaScriptCallFrameCustom.cpp

    r142834 r142849  
    3838namespace WebCore {
    3939
    40 v8::Handle<v8::Value> V8JavaScriptCallFrame::evaluateCallback(const v8::Arguments& args)
     40v8::Handle<v8::Value> V8JavaScriptCallFrame::evaluateCallbackCustom(const v8::Arguments& args)
    4141{
    4242    JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(args.Holder());
     
    4545}
    4646
    47 v8::Handle<v8::Value> V8JavaScriptCallFrame::restartCallback(const v8::Arguments& args)
     47v8::Handle<v8::Value> V8JavaScriptCallFrame::restartCallbackCustom(const v8::Arguments& args)
    4848{
    4949    JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(args.Holder());
     
    5151}
    5252
    53 v8::Handle<v8::Value> V8JavaScriptCallFrame::setVariableValueCallback(const v8::Arguments& args)
     53v8::Handle<v8::Value> V8JavaScriptCallFrame::setVariableValueCallbackCustom(const v8::Arguments& args)
    5454{
    5555    JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(args.Holder());
     
    6666}
    6767
    68 v8::Handle<v8::Value> V8JavaScriptCallFrame::scopeTypeCallback(const v8::Arguments& args)
     68v8::Handle<v8::Value> V8JavaScriptCallFrame::scopeTypeCallbackCustom(const v8::Arguments& args)
    6969{
    7070    JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(args.Holder());
  • trunk/Source/WebCore/bindings/v8/custom/V8LocationCustom.cpp

    r142834 r142849  
    140140{
    141141    v8::Isolate* isolate = info.GetIsolate();
    142     static v8::Persistent<v8::FunctionTemplate> privateTemplate = v8::Persistent<v8::FunctionTemplate>::New(isolate, v8::FunctionTemplate::New(V8Location::reloadCallback, v8Undefined(), v8::Signature::New(V8Location::GetRawTemplate(isolate))));
     142    static v8::Persistent<v8::FunctionTemplate> privateTemplate = v8::Persistent<v8::FunctionTemplate>::New(isolate, v8::FunctionTemplate::New(V8Location::reloadCallbackCustom, v8Undefined(), v8::Signature::New(V8Location::GetRawTemplate(isolate))));
    143143    v8::Handle<v8::Object> holder = info.This()->FindInstanceInPrototypeChain(V8Location::GetTemplate(isolate));
    144144    if (holder.IsEmpty()) {
     
    149149    Location* imp = V8Location::toNative(holder);
    150150    if (!BindingSecurity::shouldAllowAccessToFrame(BindingState::instance(), imp->frame(), DoNotReportSecurityError)) {
    151         static v8::Persistent<v8::FunctionTemplate> sharedTemplate = v8::Persistent<v8::FunctionTemplate>::New(isolate, v8::FunctionTemplate::New(V8Location::reloadCallback, v8Undefined(), v8::Signature::New(V8Location::GetRawTemplate(isolate))));
     151        static v8::Persistent<v8::FunctionTemplate> sharedTemplate = v8::Persistent<v8::FunctionTemplate>::New(isolate, v8::FunctionTemplate::New(V8Location::reloadCallbackCustom, v8Undefined(), v8::Signature::New(V8Location::GetRawTemplate(isolate))));
    152152        return sharedTemplate->GetFunction();
    153153    }
     
    158158{
    159159    v8::Isolate* isolate = info.GetIsolate();
    160     static v8::Persistent<v8::FunctionTemplate> privateTemplate = v8::Persistent<v8::FunctionTemplate>::New(isolate, v8::FunctionTemplate::New(V8Location::replaceCallback, v8Undefined(), v8::Signature::New(V8Location::GetRawTemplate(isolate))));
     160    static v8::Persistent<v8::FunctionTemplate> privateTemplate = v8::Persistent<v8::FunctionTemplate>::New(isolate, v8::FunctionTemplate::New(V8Location::replaceCallbackCustom, v8Undefined(), v8::Signature::New(V8Location::GetRawTemplate(isolate))));
    161161    v8::Handle<v8::Object> holder = info.This()->FindInstanceInPrototypeChain(V8Location::GetTemplate(isolate));
    162162    if (holder.IsEmpty()) {
     
    167167    Location* imp = V8Location::toNative(holder);
    168168    if (!BindingSecurity::shouldAllowAccessToFrame(BindingState::instance(), imp->frame(), DoNotReportSecurityError)) {
    169         static v8::Persistent<v8::FunctionTemplate> sharedTemplate = v8::Persistent<v8::FunctionTemplate>::New(isolate, v8::FunctionTemplate::New(V8Location::replaceCallback, v8Undefined(), v8::Signature::New(V8Location::GetRawTemplate(isolate))));
     169        static v8::Persistent<v8::FunctionTemplate> sharedTemplate = v8::Persistent<v8::FunctionTemplate>::New(isolate, v8::FunctionTemplate::New(V8Location::replaceCallbackCustom, v8Undefined(), v8::Signature::New(V8Location::GetRawTemplate(isolate))));
    170170        return sharedTemplate->GetFunction();
    171171    }
     
    177177    v8::Isolate* isolate = info.GetIsolate();
    178178    static v8::Persistent<v8::FunctionTemplate> privateTemplate =
    179         v8::Persistent<v8::FunctionTemplate>::New(isolate, v8::FunctionTemplate::New(V8Location::assignCallback, v8Undefined(), v8::Signature::New(V8Location::GetRawTemplate(isolate))));
     179        v8::Persistent<v8::FunctionTemplate>::New(isolate, v8::FunctionTemplate::New(V8Location::assignCallbackCustom, v8Undefined(), v8::Signature::New(V8Location::GetRawTemplate(isolate))));
    180180    v8::Handle<v8::Object> holder = info.This()->FindInstanceInPrototypeChain(V8Location::GetTemplate(isolate));
    181181    if (holder.IsEmpty()) {
     
    186186    Location* imp = V8Location::toNative(holder);
    187187    if (!BindingSecurity::shouldAllowAccessToFrame(BindingState::instance(), imp->frame(), DoNotReportSecurityError)) {
    188         static v8::Persistent<v8::FunctionTemplate> sharedTemplate = v8::Persistent<v8::FunctionTemplate>::New(isolate, v8::FunctionTemplate::New(V8Location::assignCallback, v8Undefined(), v8::Signature::New(V8Location::GetRawTemplate(isolate))));
     188        static v8::Persistent<v8::FunctionTemplate> sharedTemplate = v8::Persistent<v8::FunctionTemplate>::New(isolate, v8::FunctionTemplate::New(V8Location::assignCallbackCustom, v8Undefined(), v8::Signature::New(V8Location::GetRawTemplate(isolate))));
    189189        return sharedTemplate->GetFunction();
    190190    }
     
    192192}
    193193
    194 v8::Handle<v8::Value> V8Location::reloadCallback(const v8::Arguments& args)
     194v8::Handle<v8::Value> V8Location::reloadCallbackCustom(const v8::Arguments& args)
    195195{
    196196    Location* impl = V8Location::toNative(args.Holder());
     
    201201}
    202202
    203 v8::Handle<v8::Value> V8Location::replaceCallback(const v8::Arguments& args)
     203v8::Handle<v8::Value> V8Location::replaceCallbackCustom(const v8::Arguments& args)
    204204{
    205205    Location* impl = V8Location::toNative(args.Holder());
     
    213213}
    214214
    215 v8::Handle<v8::Value> V8Location::assignCallback(const v8::Arguments& args)
     215v8::Handle<v8::Value> V8Location::assignCallbackCustom(const v8::Arguments& args)
    216216{
    217217    Location* impl = V8Location::toNative(args.Holder());
     
    225225}
    226226
    227 v8::Handle<v8::Value> V8Location::valueOfCallback(const v8::Arguments& args)
     227v8::Handle<v8::Value> V8Location::valueOfCallbackCustom(const v8::Arguments& args)
    228228{
    229229    // Just return the this object the way the normal valueOf function
     
    235235}
    236236
    237 v8::Handle<v8::Value> V8Location::toStringCallback(const v8::Arguments& args)
     237v8::Handle<v8::Value> V8Location::toStringCallbackCustom(const v8::Arguments& args)
    238238{
    239239    v8::Handle<v8::Object> holder = args.Holder();
  • trunk/Source/WebCore/bindings/v8/custom/V8MessageEventCustom.cpp

    r142834 r142849  
    104104}
    105105
    106 v8::Handle<v8::Value> V8MessageEvent::initMessageEventCallback(const v8::Arguments& args)
     106v8::Handle<v8::Value> V8MessageEvent::initMessageEventCallbackCustom(const v8::Arguments& args)
    107107{
    108108    MessageEvent* event = V8MessageEvent::toNative(args.Holder());
     
    132132}
    133133
    134 v8::Handle<v8::Value> V8MessageEvent::webkitInitMessageEventCallback(const v8::Arguments& args)
     134v8::Handle<v8::Value> V8MessageEvent::webkitInitMessageEventCallbackCustom(const v8::Arguments& args)
    135135{
    136     return initMessageEventCallback(args);
     136    return initMessageEventCallbackCustom(args);
    137137}
    138138
  • trunk/Source/WebCore/bindings/v8/custom/V8MessagePortCustom.cpp

    r138677 r142849  
    4141namespace WebCore {
    4242
    43 v8::Handle<v8::Value> V8MessagePort::postMessageCallback(const v8::Arguments& args)
     43v8::Handle<v8::Value> V8MessagePort::postMessageCallbackCustom(const v8::Arguments& args)
    4444{
    4545    MessagePort* messagePort = V8MessagePort::toNative(args.Holder());
  • trunk/Source/WebCore/bindings/v8/custom/V8NodeCustom.cpp

    r141719 r142849  
    6262
    6363// This function is customized to take advantage of the optional 4th argument: shouldLazyAttach
    64 v8::Handle<v8::Value> V8Node::insertBeforeCallback(const v8::Arguments& args)
     64v8::Handle<v8::Value> V8Node::insertBeforeCallbackCustom(const v8::Arguments& args)
    6565{
    6666    v8::Handle<v8::Object> holder = args.Holder();
     
    7878
    7979// This function is customized to take advantage of the optional 4th argument: shouldLazyAttach
    80 v8::Handle<v8::Value> V8Node::replaceChildCallback(const v8::Arguments& args)
     80v8::Handle<v8::Value> V8Node::replaceChildCallbackCustom(const v8::Arguments& args)
    8181{
    8282    v8::Handle<v8::Object> holder = args.Holder();
     
    9393}
    9494
    95 v8::Handle<v8::Value> V8Node::removeChildCallback(const v8::Arguments& args)
     95v8::Handle<v8::Value> V8Node::removeChildCallbackCustom(const v8::Arguments& args)
    9696{
    9797    v8::Handle<v8::Object> holder = args.Holder();
     
    108108
    109109// This function is customized to take advantage of the optional 4th argument: shouldLazyAttach
    110 v8::Handle<v8::Value> V8Node::appendChildCallback(const v8::Arguments& args)
     110v8::Handle<v8::Value> V8Node::appendChildCallbackCustom(const v8::Arguments& args)
    111111{
    112112    v8::Handle<v8::Object> holder = args.Holder();
  • trunk/Source/WebCore/bindings/v8/custom/V8NotificationCenterCustom.cpp

    r138665 r142849  
    4747namespace WebCore {
    4848
    49 v8::Handle<v8::Value> V8NotificationCenter::requestPermissionCallback(const v8::Arguments& args)
     49v8::Handle<v8::Value> V8NotificationCenter::requestPermissionCallbackCustom(const v8::Arguments& args)
    5050{
    5151    NotificationCenter* notificationCenter = V8NotificationCenter::toNative(args.Holder());
  • trunk/Source/WebCore/bindings/v8/custom/V8NotificationCustom.cpp

    r138677 r142849  
    3535namespace WebCore {
    3636
    37 v8::Handle<v8::Value> V8Notification::requestPermissionCallback(const v8::Arguments& args)
     37v8::Handle<v8::Value> V8Notification::requestPermissionCallbackCustom(const v8::Arguments& args)
    3838{
    3939    bool succeeded = false;
  • trunk/Source/WebCore/bindings/v8/custom/V8SQLResultSetRowListCustom.cpp

    r138677 r142849  
    3939namespace WebCore {
    4040
    41 v8::Handle<v8::Value> V8SQLResultSetRowList::itemCallback(const v8::Arguments& args)
     41v8::Handle<v8::Value> V8SQLResultSetRowList::itemCallbackCustom(const v8::Arguments& args)
    4242{
    4343    if (!args.Length())
  • trunk/Source/WebCore/bindings/v8/custom/V8SQLTransactionCustom.cpp

    r138677 r142849  
    4747namespace WebCore {
    4848
    49 v8::Handle<v8::Value> V8SQLTransaction::executeSqlCallback(const v8::Arguments& args)
     49v8::Handle<v8::Value> V8SQLTransaction::executeSqlCallbackCustom(const v8::Arguments& args)
    5050{
    5151    if (args.Length() == 0)
  • trunk/Source/WebCore/bindings/v8/custom/V8SQLTransactionSyncCustom.cpp

    r141763 r142849  
    4747namespace WebCore {
    4848
    49 v8::Handle<v8::Value> V8SQLTransactionSync::executeSqlCallback(const v8::Arguments& args)
     49v8::Handle<v8::Value> V8SQLTransactionSync::executeSqlCallbackCustom(const v8::Arguments& args)
    5050{
    5151    if (!args.Length())
  • trunk/Source/WebCore/bindings/v8/custom/V8SVGLengthCustom.cpp

    r142834 r142849  
    7676}
    7777
    78 v8::Handle<v8::Value> V8SVGLength::convertToSpecifiedUnitsCallback(const v8::Arguments& args)
     78v8::Handle<v8::Value> V8SVGLength::convertToSpecifiedUnitsCallbackCustom(const v8::Arguments& args)
    7979{
    8080    SVGPropertyTearOff<SVGLength>* wrapper = V8SVGLength::toNative(args.Holder());
  • trunk/Source/WebCore/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp

    r142217 r142849  
    271271};
    272272
    273 v8::Handle<v8::Value> V8WebGLRenderingContext::getAttachedShadersCallback(const v8::Arguments& args)
     273v8::Handle<v8::Value> V8WebGLRenderingContext::getAttachedShadersCallbackCustom(const v8::Arguments& args)
    274274{
    275275    if (args.Length() < 1)
     
    295295}
    296296
    297 v8::Handle<v8::Value> V8WebGLRenderingContext::getBufferParameterCallback(const v8::Arguments& args)
     297v8::Handle<v8::Value> V8WebGLRenderingContext::getBufferParameterCallbackCustom(const v8::Arguments& args)
    298298{
    299299    return getObjectParameter(args, kBuffer);
    300300}
    301301
    302 v8::Handle<v8::Value> V8WebGLRenderingContext::getExtensionCallback(const v8::Arguments& args)
     302v8::Handle<v8::Value> V8WebGLRenderingContext::getExtensionCallbackCustom(const v8::Arguments& args)
    303303{
    304304    WebGLRenderingContext* imp = V8WebGLRenderingContext::toNative(args.Holder());
     
    310310}
    311311
    312 v8::Handle<v8::Value> V8WebGLRenderingContext::getFramebufferAttachmentParameterCallback(const v8::Arguments& args)
     312v8::Handle<v8::Value> V8WebGLRenderingContext::getFramebufferAttachmentParameterCallbackCustom(const v8::Arguments& args)
    313313{
    314314    if (args.Length() != 3)
     
    326326}
    327327
    328 v8::Handle<v8::Value> V8WebGLRenderingContext::getParameterCallback(const v8::Arguments& args)
     328v8::Handle<v8::Value> V8WebGLRenderingContext::getParameterCallbackCustom(const v8::Arguments& args)
    329329{
    330330    if (args.Length() != 1)
     
    340340}
    341341
    342 v8::Handle<v8::Value> V8WebGLRenderingContext::getProgramParameterCallback(const v8::Arguments& args)
     342v8::Handle<v8::Value> V8WebGLRenderingContext::getProgramParameterCallbackCustom(const v8::Arguments& args)
    343343{
    344344    if (args.Length() != 2)
     
    357357}
    358358
    359 v8::Handle<v8::Value> V8WebGLRenderingContext::getRenderbufferParameterCallback(const v8::Arguments& args)
     359v8::Handle<v8::Value> V8WebGLRenderingContext::getRenderbufferParameterCallbackCustom(const v8::Arguments& args)
    360360{
    361361    return getObjectParameter(args, kRenderbuffer);
    362362}
    363363
    364 v8::Handle<v8::Value> V8WebGLRenderingContext::getShaderParameterCallback(const v8::Arguments& args)
     364v8::Handle<v8::Value> V8WebGLRenderingContext::getShaderParameterCallbackCustom(const v8::Arguments& args)
    365365{
    366366    if (args.Length() != 2)
     
    379379}
    380380
    381 v8::Handle<v8::Value> V8WebGLRenderingContext::getSupportedExtensionsCallback(const v8::Arguments& args)
     381v8::Handle<v8::Value> V8WebGLRenderingContext::getSupportedExtensionsCallbackCustom(const v8::Arguments& args)
    382382{
    383383    WebGLRenderingContext* imp = V8WebGLRenderingContext::toNative(args.Holder());
     
    392392}
    393393
    394 v8::Handle<v8::Value> V8WebGLRenderingContext::getTexParameterCallback(const v8::Arguments& args)
     394v8::Handle<v8::Value> V8WebGLRenderingContext::getTexParameterCallbackCustom(const v8::Arguments& args)
    395395{
    396396    return getObjectParameter(args, kTexture);
    397397}
    398398
    399 v8::Handle<v8::Value> V8WebGLRenderingContext::getUniformCallback(const v8::Arguments& args)
     399v8::Handle<v8::Value> V8WebGLRenderingContext::getUniformCallbackCustom(const v8::Arguments& args)
    400400{
    401401    if (args.Length() != 2)
     
    419419}
    420420
    421 v8::Handle<v8::Value> V8WebGLRenderingContext::getVertexAttribCallback(const v8::Arguments& args)
     421v8::Handle<v8::Value> V8WebGLRenderingContext::getVertexAttribCallbackCustom(const v8::Arguments& args)
    422422{
    423423    return getObjectParameter(args, kVertexAttrib);
     
    589589}
    590590
    591 v8::Handle<v8::Value> V8WebGLRenderingContext::uniform1fvCallback(const v8::Arguments& args)
     591v8::Handle<v8::Value> V8WebGLRenderingContext::uniform1fvCallbackCustom(const v8::Arguments& args)
    592592{
    593593    return vertexAttribAndUniformHelperf(args, kUniform1v);
    594594}
    595595
    596 v8::Handle<v8::Value> V8WebGLRenderingContext::uniform1ivCallback(const v8::Arguments& args)
     596v8::Handle<v8::Value> V8WebGLRenderingContext::uniform1ivCallbackCustom(const v8::Arguments& args)
    597597{
    598598    return uniformHelperi(args, kUniform1v);
    599599}
    600600
    601 v8::Handle<v8::Value> V8WebGLRenderingContext::uniform2fvCallback(const v8::Arguments& args)
     601v8::Handle<v8::Value> V8WebGLRenderingContext::uniform2fvCallbackCustom(const v8::Arguments& args)
    602602{
    603603    return vertexAttribAndUniformHelperf(args, kUniform2v);
    604604}
    605605
    606 v8::Handle<v8::Value> V8WebGLRenderingContext::uniform2ivCallback(const v8::Arguments& args)
     606v8::Handle<v8::Value> V8WebGLRenderingContext::uniform2ivCallbackCustom(const v8::Arguments& args)
    607607{
    608608    return uniformHelperi(args, kUniform2v);
    609609}
    610610
    611 v8::Handle<v8::Value> V8WebGLRenderingContext::uniform3fvCallback(const v8::Arguments& args)
     611v8::Handle<v8::Value> V8WebGLRenderingContext::uniform3fvCallbackCustom(const v8::Arguments& args)
    612612{
    613613    return vertexAttribAndUniformHelperf(args, kUniform3v);
    614614}
    615615
    616 v8::Handle<v8::Value> V8WebGLRenderingContext::uniform3ivCallback(const v8::Arguments& args)
     616v8::Handle<v8::Value> V8WebGLRenderingContext::uniform3ivCallbackCustom(const v8::Arguments& args)
    617617{
    618618    return uniformHelperi(args, kUniform3v);
    619619}
    620620
    621 v8::Handle<v8::Value> V8WebGLRenderingContext::uniform4fvCallback(const v8::Arguments& args)
     621v8::Handle<v8::Value> V8WebGLRenderingContext::uniform4fvCallbackCustom(const v8::Arguments& args)
    622622{
    623623    return vertexAttribAndUniformHelperf(args, kUniform4v);
    624624}
    625625
    626 v8::Handle<v8::Value> V8WebGLRenderingContext::uniform4ivCallback(const v8::Arguments& args)
     626v8::Handle<v8::Value> V8WebGLRenderingContext::uniform4ivCallbackCustom(const v8::Arguments& args)
    627627{
    628628    return uniformHelperi(args, kUniform4v);
     
    690690}
    691691
    692 v8::Handle<v8::Value> V8WebGLRenderingContext::uniformMatrix2fvCallback(const v8::Arguments& args)
     692v8::Handle<v8::Value> V8WebGLRenderingContext::uniformMatrix2fvCallbackCustom(const v8::Arguments& args)
    693693{
    694694    return uniformMatrixHelper(args, 2);
    695695}
    696696
    697 v8::Handle<v8::Value> V8WebGLRenderingContext::uniformMatrix3fvCallback(const v8::Arguments& args)
     697v8::Handle<v8::Value> V8WebGLRenderingContext::uniformMatrix3fvCallbackCustom(const v8::Arguments& args)
    698698{
    699699    return uniformMatrixHelper(args, 3);
    700700}
    701701
    702 v8::Handle<v8::Value> V8WebGLRenderingContext::uniformMatrix4fvCallback(const v8::Arguments& args)
     702v8::Handle<v8::Value> V8WebGLRenderingContext::uniformMatrix4fvCallbackCustom(const v8::Arguments& args)
    703703{
    704704    return uniformMatrixHelper(args, 4);
    705705}
    706706
    707 v8::Handle<v8::Value> V8WebGLRenderingContext::vertexAttrib1fvCallback(const v8::Arguments& args)
     707v8::Handle<v8::Value> V8WebGLRenderingContext::vertexAttrib1fvCallbackCustom(const v8::Arguments& args)
    708708{
    709709    return vertexAttribAndUniformHelperf(args, kVertexAttrib1v);
    710710}
    711711
    712 v8::Handle<v8::Value> V8WebGLRenderingContext::vertexAttrib2fvCallback(const v8::Arguments& args)
     712v8::Handle<v8::Value> V8WebGLRenderingContext::vertexAttrib2fvCallbackCustom(const v8::Arguments& args)
    713713{
    714714    return vertexAttribAndUniformHelperf(args, kVertexAttrib2v);
    715715}
    716716
    717 v8::Handle<v8::Value> V8WebGLRenderingContext::vertexAttrib3fvCallback(const v8::Arguments& args)
     717v8::Handle<v8::Value> V8WebGLRenderingContext::vertexAttrib3fvCallbackCustom(const v8::Arguments& args)
    718718{
    719719    return vertexAttribAndUniformHelperf(args, kVertexAttrib3v);
    720720}
    721721
    722 v8::Handle<v8::Value> V8WebGLRenderingContext::vertexAttrib4fvCallback(const v8::Arguments& args)
     722v8::Handle<v8::Value> V8WebGLRenderingContext::vertexAttrib4fvCallbackCustom(const v8::Arguments& args)
    723723{
    724724    return vertexAttribAndUniformHelperf(args, kVertexAttrib4v);
  • trunk/Source/WebCore/bindings/v8/custom/V8WorkerContextCustom.cpp

    r142565 r142849  
    9191}
    9292
    93 v8::Handle<v8::Value> V8WorkerContext::importScriptsCallback(const v8::Arguments& args)
     93v8::Handle<v8::Value> V8WorkerContext::importScriptsCallbackCustom(const v8::Arguments& args)
    9494{
    9595    if (!args.Length())
     
    115115}
    116116
    117 v8::Handle<v8::Value> V8WorkerContext::setTimeoutCallback(const v8::Arguments& args)
     117v8::Handle<v8::Value> V8WorkerContext::setTimeoutCallbackCustom(const v8::Arguments& args)
    118118{
    119119    return SetTimeoutOrInterval(args, true);
    120120}
    121121
    122 v8::Handle<v8::Value> V8WorkerContext::setIntervalCallback(const v8::Arguments& args)
     122v8::Handle<v8::Value> V8WorkerContext::setIntervalCallbackCustom(const v8::Arguments& args)
    123123{
    124124    return SetTimeoutOrInterval(args, false);
  • trunk/Source/WebCore/bindings/v8/custom/V8WorkerCustom.cpp

    r138677 r142849  
    4646namespace WebCore {
    4747
    48 v8::Handle<v8::Value> V8Worker::postMessageCallback(const v8::Arguments& args)
     48v8::Handle<v8::Value> V8Worker::postMessageCallbackCustom(const v8::Arguments& args)
    4949{
    5050    Worker* worker = V8Worker::toNative(args.Holder());
  • trunk/Source/WebCore/bindings/v8/custom/V8XMLHttpRequestCustom.cpp

    r142834 r142849  
    116116}
    117117
    118 v8::Handle<v8::Value> V8XMLHttpRequest::openCallback(const v8::Arguments& args)
     118v8::Handle<v8::Value> V8XMLHttpRequest::openCallbackCustom(const v8::Arguments& args)
    119119{
    120120    // Four cases:
     
    165165}
    166166
    167 v8::Handle<v8::Value> V8XMLHttpRequest::sendCallback(const v8::Arguments& args)
     167v8::Handle<v8::Value> V8XMLHttpRequest::sendCallbackCustom(const v8::Arguments& args)
    168168{
    169169    XMLHttpRequest* xmlHttpRequest = V8XMLHttpRequest::toNative(args.Holder());
  • trunk/Source/WebCore/bindings/v8/custom/V8XSLTProcessorCustom.cpp

    r138665 r142849  
    4949namespace WebCore {
    5050
    51 v8::Handle<v8::Value> V8XSLTProcessor::setParameterCallback(const v8::Arguments& args)
     51v8::Handle<v8::Value> V8XSLTProcessor::setParameterCallbackCustom(const v8::Arguments& args)
    5252{
    5353    if (isUndefinedOrNull(args[1]) || isUndefinedOrNull(args[2]))
     
    6464}
    6565
    66 v8::Handle<v8::Value> V8XSLTProcessor::getParameterCallback(const v8::Arguments& args)
     66v8::Handle<v8::Value> V8XSLTProcessor::getParameterCallbackCustom(const v8::Arguments& args)
    6767{
    6868    if (isUndefinedOrNull(args[1]))
     
    8080}
    8181
    82 v8::Handle<v8::Value> V8XSLTProcessor::removeParameterCallback(const v8::Arguments& args)
     82v8::Handle<v8::Value> V8XSLTProcessor::removeParameterCallbackCustom(const v8::Arguments& args)
    8383{
    8484    if (isUndefinedOrNull(args[1]))
  • trunk/Source/WebCore/page/DOMWindow.idl

    r142739 r142849  
    181181    // cross-document messaging
    182182#if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
    183     [DoNotCheckSecurity, Custom] void postMessage(in SerializedScriptValue message, in DOMString targetOrigin)
    184         raises(DOMException);
    185     [DoNotCheckSecurity, Custom] void postMessage(in SerializedScriptValue message, in DOMString targetOrigin, in Array messagePorts)
     183    [DoNotCheckSecurity, Custom] void postMessage(in SerializedScriptValue message, in DOMString targetOrigin, in [Optional] Array messagePorts)
    186184        raises(DOMException);
    187185#else
  • trunk/Source/WebCore/xml/XMLHttpRequest.idl

    r132513 r142849  
    7171    [Custom] void send()
    7272        raises(DOMException);
    73     [Custom] void send(in ArrayBuffer data) // FIXME: this should be eventually deprecated.
    74         raises(DOMException);
    75     [Custom] void send(in ArrayBufferView data)
    76         raises(DOMException);
    77     [Conditional=BLOB, Custom] void send(in Blob data)
    78         raises(DOMException);
    79     [Custom] void send(in Document data)
    80         raises(DOMException);
    81     [Custom] void send(in [StrictTypeChecking] DOMString data)
    82         raises(DOMException);
    83     [Custom] void send(in DOMFormData data)
    84         raises(DOMException);
    8573
    8674    void abort();
Note: See TracChangeset for help on using the changeset viewer.