Changeset 142849 in webkit
- Timestamp:
- Feb 13, 2013 10:17:26 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 45 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r142848 r142849 1 2013-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 1 206 2013-02-13 Praveen R Jadhav <praveen.j@samsung.com> 2 207 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm
r142834 r142849 399 399 push(@headerContent, "#if ${conditionalString}\n") if $conditionalString; 400 400 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&); 402 402 END 403 403 push(@headerContent, "#endif // ${conditionalString}\n") if $conditionalString; … … 792 792 } 793 793 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)"; 796 795 797 796 AddToImplIncludes("Frame.h"); … … 1371 1370 } 1372 1371 1373 sub GetFunctionTemplateCallbackName1374 {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 1387 1372 sub GenerateEventListenerCallback 1388 1373 { 1389 1374 my $interfaceName = shift; 1390 1375 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"; 1395 1381 1396 1382 AddToImplIncludes("V8EventListenerList.h"); 1397 1383 push(@implContentDecls, <<END); 1398 static v8::Handle<v8::Value> ${functionName}EventListenerCallback(const v8::Arguments& args) 1399 { 1384 static v8::Handle<v8::Value> ${name}Callback(const v8::Arguments& args) 1385 { 1386 END 1387 if (HasCustomMethod($function->signature->extendedAttributes)) { 1388 push(@implContentDecls, <<END); 1389 return V8${interfaceName}::${name}CallbackCustom(args); 1390 } 1391 1392 END 1393 return; 1394 } 1395 1396 push(@implContentDecls, <<END); 1400 1397 RefPtr<EventListener> listener = V8EventListenerList::getEventListener(args[1], false, ListenerFind${lookupType}); 1401 1398 if (listener) { 1402 1399 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()); 1404 1401 END 1405 1402 if ($requiresHiddenDependency) { … … 1544 1541 # so we can generate them as a "special case". 1545 1542 if ($name eq "addEventListener") { 1546 GenerateEventListenerCallback($interfaceName, !$codeGenerator->InheritsInterface($interface, "Node"), "add");1543 GenerateEventListenerCallback($interfaceName, !$codeGenerator->InheritsInterface($interface, "Node"), $function); 1547 1544 return; 1548 1545 } elsif ($name eq "removeEventListener") { 1549 GenerateEventListenerCallback($interfaceName, !$codeGenerator->InheritsInterface($interface, "Node"), "remove");1546 GenerateEventListenerCallback($interfaceName, !$codeGenerator->InheritsInterface($interface, "Node"), $function); 1550 1547 return; 1551 1548 } … … 1558 1555 END 1559 1556 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 1564 END 1565 push(@implContentDecls, "#endif // ${conditionalString}\n\n") if $conditionalString; 1566 return; 1567 } 1560 1568 1561 1569 push(@implContentDecls, GenerateArgumentsCountCheck($function, $interface)); … … 2429 2437 } 2430 2438 2431 # Normal function call is a template2432 my $callback = GetFunctionTemplateCallbackName($function, $interfaceName);2433 2434 2439 if ($property_attributes eq "v8::DontDelete") { 2435 2440 $property_attributes = ""; … … 2444 2449 my $conditionalString = $codeGenerator->GenerateConditionalString($function->signature); 2445 2450 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"); 2449 2452 push(@implContent, "#endif // ${conditionalString}\n") if $conditionalString; 2450 2453 } … … 2768 2771 # Generate methods for functions. 2769 2772 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); 2776 2776 } 2777 2777 … … 2792 2792 # for different calling context. 2793 2793 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) { 2795 2795 GenerateDomainSafeFunctionGetter($function, $interfaceName); 2796 2796 $needsDomainSafeFunctionSetter = 1; … … 2861 2861 } 2862 2862 my $name = $function->signature->name; 2863 my $callback = GetFunctionTemplateCallbackName($function, $interfaceName);2864 2863 my $conditionalString = $codeGenerator->GenerateConditionalString($function->signature); 2865 2864 push(@implContent, "#if ${conditionalString}\n") if $conditionalString; 2866 2865 push(@implContent, <<END); 2867 {"$name", $ callback},2866 {"$name", ${interfaceName}V8Internal::${name}Callback}, 2868 2867 END 2869 2868 push(@implContent, "#endif\n") if $conditionalString; … … 3186 3185 push(@implContent, " if (context && context->isDocument() && ${enableFunction}(static_cast<Document*>(context))) {\n"); 3187 3186 my $name = $runtimeFunc->signature->name; 3188 my $callback = GetFunctionTemplateCallbackName($runtimeFunc, $interfaceName);3189 3187 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()); 3191 3189 END 3192 3190 push(@implContent, " }\n"); -
trunk/Source/WebCore/bindings/scripts/test/V8/V8TestInterface.cpp
r142834 r142849 206 206 #if ENABLE(Condition11) || ENABLE(Condition12) 207 207 208 static 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 208 217 static v8::Handle<v8::Value> supplementalMethod4Callback(const v8::Arguments& args) 209 218 { … … 248 257 #endif 249 258 #if ENABLE(Condition11) || ENABLE(Condition12) 250 {"supplementalMethod3", V8TestInterface::supplementalMethod3Callback},259 {"supplementalMethod3", TestInterfaceV8Internal::supplementalMethod3Callback}, 251 260 #endif 252 261 }; -
trunk/Source/WebCore/bindings/scripts/test/V8/V8TestObj.cpp
r142834 r142849 1119 1119 } 1120 1120 1121 static 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 1127 static v8::Handle<v8::Value> customMethodWithArgsCallback(const v8::Arguments& args) 1128 { 1129 return V8TestObj::customMethodWithArgsCallbackCustom(args); 1130 } 1131 1121 1132 static v8::Handle<v8::Value> addEventListenerCallback(const v8::Arguments& args) 1122 1133 { … … 1598 1609 V8TRYCATCH(int, arg, toInt32(MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined))); 1599 1610 return v8Integer(TestObj::classMethodWithOptional(arg), args.GetIsolate()); 1611 } 1612 1613 static v8::Handle<v8::Value> classMethod2Callback(const v8::Arguments& args) 1614 { 1615 return V8TestObj::classMethod2CallbackCustom(args); 1600 1616 } 1601 1617 … … 2007 2023 {"optionsObject", TestObjV8Internal::optionsObjectCallback}, 2008 2024 {"methodWithException", TestObjV8Internal::methodWithExceptionCallback}, 2009 {"customMethod", V8TestObj::customMethodCallback},2010 {"customMethodWithArgs", V8TestObj::customMethodWithArgsCallback},2025 {"customMethod", TestObjV8Internal::customMethodCallback}, 2026 {"customMethodWithArgs", TestObjV8Internal::customMethodWithArgsCallback}, 2011 2027 {"addEventListener", TestObjV8Internal::addEventListenerCallback}, 2012 2028 {"removeEventListener", TestObjV8Internal::removeEventListenerCallback}, … … 2164 2180 desc->Set(v8::String::NewSymbol("classMethod"), v8::FunctionTemplate::New(TestObjV8Internal::classMethodCallback, v8Undefined(), v8::Local<v8::Signature>())); 2165 2181 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>())); 2167 2183 #if ENABLE(Condition1) 2168 2184 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 44 44 static void derefObject(void*); 45 45 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&); 49 49 static v8::Handle<v8::Value> constructorCallback(const v8::Arguments&); 50 50 static v8::Handle<v8::Value> customAttrAttrGetterCustom(v8::Local<v8::String> name, const v8::AccessorInfo&); -
trunk/Source/WebCore/bindings/v8/custom/V8ClipboardCustom.cpp
r142834 r142849 61 61 } 62 62 63 v8::Handle<v8::Value> V8Clipboard::clearDataCallback (const v8::Arguments& args)63 v8::Handle<v8::Value> V8Clipboard::clearDataCallbackCustom(const v8::Arguments& args) 64 64 { 65 65 Clipboard* clipboard = V8Clipboard::toNative(args.Holder()); … … 78 78 } 79 79 80 v8::Handle<v8::Value> V8Clipboard::setDragImageCallback (const v8::Arguments& args)80 v8::Handle<v8::Value> V8Clipboard::setDragImageCallbackCustom(const v8::Arguments& args) 81 81 { 82 82 Clipboard* clipboard = V8Clipboard::toNative(args.Holder()); -
trunk/Source/WebCore/bindings/v8/custom/V8ConsoleCustom.cpp
r138665 r142849 41 41 namespace WebCore { 42 42 43 v8::Handle<v8::Value> V8Console::traceCallback (const v8::Arguments& args)43 v8::Handle<v8::Value> V8Console::traceCallbackCustom(const v8::Arguments& args) 44 44 { 45 45 Console* imp = V8Console::toNative(args.Holder()); … … 49 49 } 50 50 51 v8::Handle<v8::Value> V8Console::assertCallback (const v8::Arguments& args)51 v8::Handle<v8::Value> V8Console::assertCallbackCustom(const v8::Arguments& args) 52 52 { 53 53 Console* imp = V8Console::toNative(args.Holder()); … … 59 59 60 60 #if ENABLE(JAVASCRIPT_DEBUGGER) 61 v8::Handle<v8::Value> V8Console::profileCallback (const v8::Arguments& args)61 v8::Handle<v8::Value> V8Console::profileCallbackCustom(const v8::Arguments& args) 62 62 { 63 63 Console* imp = V8Console::toNative(args.Holder()); … … 67 67 } 68 68 69 v8::Handle<v8::Value> V8Console::profileEndCallback (const v8::Arguments& args)69 v8::Handle<v8::Value> V8Console::profileEndCallbackCustom(const v8::Arguments& args) 70 70 { 71 71 Console* imp = V8Console::toNative(args.Holder()); -
trunk/Source/WebCore/bindings/v8/custom/V8CryptoCustom.cpp
r141718 r142849 36 36 namespace WebCore { 37 37 38 v8::Handle<v8::Value> V8Crypto::getRandomValuesCallback (const v8::Arguments& args)38 v8::Handle<v8::Value> V8Crypto::getRandomValuesCallbackCustom(const v8::Arguments& args) 39 39 { 40 40 if (args.Length() < 1) -
trunk/Source/WebCore/bindings/v8/custom/V8DOMFormDataCustom.cpp
r142159 r142849 52 52 } 53 53 54 v8::Handle<v8::Value> V8DOMFormData::appendCallback (const v8::Arguments& args)54 v8::Handle<v8::Value> V8DOMFormData::appendCallbackCustom(const v8::Arguments& args) 55 55 { 56 56 if (args.Length() < 2) -
trunk/Source/WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp
r142834 r142849 227 227 } 228 228 229 v8::Handle<v8::Value> V8DOMWindow::addEventListenerCallback (const v8::Arguments& args)229 v8::Handle<v8::Value> V8DOMWindow::addEventListenerCallbackCustom(const v8::Arguments& args) 230 230 { 231 231 String eventType = toWebCoreString(args[0]); … … 257 257 258 258 259 v8::Handle<v8::Value> V8DOMWindow::removeEventListenerCallback (const v8::Arguments& args)259 v8::Handle<v8::Value> V8DOMWindow::removeEventListenerCallbackCustom(const v8::Arguments& args) 260 260 { 261 261 String eventType = toWebCoreString(args[0]); … … 293 293 294 294 295 v8::Handle<v8::Value> V8DOMWindow::postMessageCallback (const v8::Arguments& args)295 v8::Handle<v8::Value> V8DOMWindow::postMessageCallbackCustom(const v8::Arguments& args) 296 296 { 297 297 // None of these need to be RefPtr because args and context are guaranteed … … 343 343 // However, V8 implements toString in JavaScript, which requires 344 344 // switching context of receiver. I consider it is dangerous. 345 v8::Handle<v8::Value> V8DOMWindow::toStringCallback (const v8::Arguments& args)345 v8::Handle<v8::Value> V8DOMWindow::toStringCallbackCustom(const v8::Arguments& args) 346 346 { 347 347 v8::Handle<v8::Object> domWrapper = args.This()->FindInstanceInPrototypeChain(V8DOMWindow::GetTemplate(args.GetIsolate())); … … 351 351 } 352 352 353 v8::Handle<v8::Value> V8DOMWindow::releaseEventsCallback (const v8::Arguments& args)353 v8::Handle<v8::Value> V8DOMWindow::releaseEventsCallbackCustom(const v8::Arguments& args) 354 354 { 355 355 return v8::Undefined(); 356 356 } 357 357 358 v8::Handle<v8::Value> V8DOMWindow::captureEventsCallback (const v8::Arguments& args)358 v8::Handle<v8::Value> V8DOMWindow::captureEventsCallbackCustom(const v8::Arguments& args) 359 359 { 360 360 return v8::Undefined(); … … 403 403 } 404 404 405 v8::Handle<v8::Value> V8DOMWindow::showModalDialogCallback (const v8::Arguments& args)405 v8::Handle<v8::Value> V8DOMWindow::showModalDialogCallbackCustom(const v8::Arguments& args) 406 406 { 407 407 DOMWindow* impl = V8DOMWindow::toNative(args.Holder()); … … 420 420 } 421 421 422 v8::Handle<v8::Value> V8DOMWindow::openCallback (const v8::Arguments& args)422 v8::Handle<v8::Value> V8DOMWindow::openCallbackCustom(const v8::Arguments& args) 423 423 { 424 424 DOMWindow* impl = V8DOMWindow::toNative(args.Holder()); … … 497 497 498 498 499 v8::Handle<v8::Value> V8DOMWindow::setTimeoutCallback (const v8::Arguments& args)499 v8::Handle<v8::Value> V8DOMWindow::setTimeoutCallbackCustom(const v8::Arguments& args) 500 500 { 501 501 return WindowSetTimeoutImpl(args, true); … … 503 503 504 504 505 v8::Handle<v8::Value> V8DOMWindow::setIntervalCallback (const v8::Arguments& args)505 v8::Handle<v8::Value> V8DOMWindow::setIntervalCallbackCustom(const v8::Arguments& args) 506 506 { 507 507 return WindowSetTimeoutImpl(args, false); -
trunk/Source/WebCore/bindings/v8/custom/V8DataViewCustom.cpp
r142159 r142849 55 55 } 56 56 57 v8::Handle<v8::Value> V8DataView::getInt8Callback (const v8::Arguments& args)57 v8::Handle<v8::Value> V8DataView::getInt8CallbackCustom(const v8::Arguments& args) 58 58 { 59 59 if (args.Length() < 1) … … 69 69 } 70 70 71 v8::Handle<v8::Value> V8DataView::getUint8Callback (const v8::Arguments& args)71 v8::Handle<v8::Value> V8DataView::getUint8CallbackCustom(const v8::Arguments& args) 72 72 { 73 73 if (args.Length() < 1) … … 83 83 } 84 84 85 v8::Handle<v8::Value> V8DataView::setInt8Callback (const v8::Arguments& args)85 v8::Handle<v8::Value> V8DataView::setInt8CallbackCustom(const v8::Arguments& args) 86 86 { 87 87 if (args.Length() < 2) … … 98 98 } 99 99 100 v8::Handle<v8::Value> V8DataView::setUint8Callback (const v8::Arguments& args)100 v8::Handle<v8::Value> V8DataView::setUint8CallbackCustom(const v8::Arguments& args) 101 101 { 102 102 if (args.Length() < 2) -
trunk/Source/WebCore/bindings/v8/custom/V8DedicatedWorkerContextCustom.cpp
r138677 r142849 42 42 namespace WebCore { 43 43 44 v8::Handle<v8::Value> V8DedicatedWorkerContext::postMessageCallback (const v8::Arguments& args)44 v8::Handle<v8::Value> V8DedicatedWorkerContext::postMessageCallbackCustom(const v8::Arguments& args) 45 45 { 46 46 DedicatedWorkerContext* workerContext = V8DedicatedWorkerContext::toNative(args.Holder()); -
trunk/Source/WebCore/bindings/v8/custom/V8DeviceMotionEventCustom.cpp
r142834 r142849 158 158 } 159 159 160 v8::Handle<v8::Value> V8DeviceMotionEvent::initDeviceMotionEventCallback (const v8::Arguments& args)160 v8::Handle<v8::Value> V8DeviceMotionEvent::initDeviceMotionEventCallbackCustom(const v8::Arguments& args) 161 161 { 162 162 DeviceMotionEvent* imp = V8DeviceMotionEvent::toNative(args.Holder()); -
trunk/Source/WebCore/bindings/v8/custom/V8DeviceOrientationEventCustom.cpp
r142834 r142849 72 72 } 73 73 74 v8::Handle<v8::Value> V8DeviceOrientationEvent::initDeviceOrientationEventCallback (const v8::Arguments& args)74 v8::Handle<v8::Value> V8DeviceOrientationEvent::initDeviceOrientationEventCallbackCustom(const v8::Arguments& args) 75 75 { 76 76 DeviceOrientationEvent* imp = V8DeviceOrientationEvent::toNative(args.Holder()); -
trunk/Source/WebCore/bindings/v8/custom/V8DocumentCustom.cpp
r142424 r142849 65 65 namespace WebCore { 66 66 67 v8::Handle<v8::Value> V8Document::evaluateCallback (const v8::Arguments& args)67 v8::Handle<v8::Value> V8Document::evaluateCallbackCustom(const v8::Arguments& args) 68 68 { 69 69 RefPtr<Document> document = V8Document::toNative(args.Holder()); … … 110 110 111 111 #if ENABLE(TOUCH_EVENTS) 112 v8::Handle<v8::Value> V8Document::createTouchListCallback (const v8::Arguments& args)112 v8::Handle<v8::Value> V8Document::createTouchListCallbackCustom(const v8::Arguments& args) 113 113 { 114 114 RefPtr<TouchList> touchList = TouchList::create(); -
trunk/Source/WebCore/bindings/v8/custom/V8GeolocationCustom.cpp
r142810 r142849 129 129 } 130 130 131 v8::Handle<v8::Value> V8Geolocation::getCurrentPositionCallback (const v8::Arguments& args)131 v8::Handle<v8::Value> V8Geolocation::getCurrentPositionCallbackCustom(const v8::Arguments& args) 132 132 { 133 133 bool succeeded = false; … … 153 153 } 154 154 155 v8::Handle<v8::Value> V8Geolocation::watchPositionCallback (const v8::Arguments& args)155 v8::Handle<v8::Value> V8Geolocation::watchPositionCallbackCustom(const v8::Arguments& args) 156 156 { 157 157 bool succeeded = false; -
trunk/Source/WebCore/bindings/v8/custom/V8HTMLAllCollectionCustom.cpp
r142831 r142849 86 86 } 87 87 88 v8::Handle<v8::Value> V8HTMLAllCollection::itemCallback (const v8::Arguments& args)88 v8::Handle<v8::Value> V8HTMLAllCollection::itemCallbackCustom(const v8::Arguments& args) 89 89 { 90 90 HTMLAllCollection* imp = V8HTMLAllCollection::toNative(args.Holder()); … … 92 92 } 93 93 94 v8::Handle<v8::Value> V8HTMLAllCollection::namedItemCallback (const v8::Arguments& args)94 v8::Handle<v8::Value> V8HTMLAllCollection::namedItemCallbackCustom(const v8::Arguments& args) 95 95 { 96 96 HTMLAllCollection* imp = V8HTMLAllCollection::toNative(args.Holder()); -
trunk/Source/WebCore/bindings/v8/custom/V8HTMLCanvasElementCustom.cpp
r141763 r142849 49 49 namespace WebCore { 50 50 51 v8::Handle<v8::Value> V8HTMLCanvasElement::getContextCallback (const v8::Arguments& args)51 v8::Handle<v8::Value> V8HTMLCanvasElement::getContextCallbackCustom(const v8::Arguments& args) 52 52 { 53 53 v8::Handle<v8::Object> holder = args.Holder(); … … 113 113 } 114 114 115 v8::Handle<v8::Value> V8HTMLCanvasElement::toDataURLCallback (const v8::Arguments& args)115 v8::Handle<v8::Value> V8HTMLCanvasElement::toDataURLCallbackCustom(const v8::Arguments& args) 116 116 { 117 117 v8::Handle<v8::Object> holder = args.Holder(); -
trunk/Source/WebCore/bindings/v8/custom/V8HTMLDocumentCustom.cpp
r142834 r142849 116 116 } 117 117 118 v8::Handle<v8::Value> V8HTMLDocument::writeCallback (const v8::Arguments& args)118 v8::Handle<v8::Value> V8HTMLDocument::writeCallbackCustom(const v8::Arguments& args) 119 119 { 120 120 HTMLDocument* htmlDocument = V8HTMLDocument::toNative(args.Holder()); … … 123 123 } 124 124 125 v8::Handle<v8::Value> V8HTMLDocument::writelnCallback (const v8::Arguments& args)125 v8::Handle<v8::Value> V8HTMLDocument::writelnCallbackCustom(const v8::Arguments& args) 126 126 { 127 127 HTMLDocument* htmlDocument = V8HTMLDocument::toNative(args.Holder()); … … 130 130 } 131 131 132 v8::Handle<v8::Value> V8HTMLDocument::openCallback (const v8::Arguments& args)132 v8::Handle<v8::Value> V8HTMLDocument::openCallbackCustom(const v8::Arguments& args) 133 133 { 134 134 HTMLDocument* htmlDocument = V8HTMLDocument::toNative(args.Holder()); -
trunk/Source/WebCore/bindings/v8/custom/V8HTMLFormControlsCollectionCustom.cpp
r142831 r142849 66 66 } 67 67 68 v8::Handle<v8::Value> V8HTMLFormControlsCollection::namedItemCallback (const v8::Arguments& args)68 v8::Handle<v8::Value> V8HTMLFormControlsCollection::namedItemCallbackCustom(const v8::Arguments& args) 69 69 { 70 70 HTMLFormControlsCollection* imp = V8HTMLFormControlsCollection::toNative(args.Holder()); -
trunk/Source/WebCore/bindings/v8/custom/V8HTMLImageElementConstructor.cpp
r142250 r142849 46 46 WrapperTypeInfo V8HTMLImageElementConstructor::info = { V8HTMLImageElementConstructor::GetTemplate, V8HTMLImageElement::derefObject, 0, V8HTMLImageElement::toEventTarget, 0, V8HTMLImageElement::installPerContextPrototypeProperties, 0, WrapperTypeObjectPrototype }; 47 47 48 static v8::Handle<v8::Value> v8HTMLImageElementConstructorCallback (const v8::Arguments& args)48 static v8::Handle<v8::Value> v8HTMLImageElementConstructorCallbackCustom(const v8::Arguments& args) 49 49 { 50 50 if (!args.IsConstructCall()) … … 89 89 90 90 v8::HandleScope scope; 91 v8::Local<v8::FunctionTemplate> result = v8::FunctionTemplate::New(v8HTMLImageElementConstructorCallback );91 v8::Local<v8::FunctionTemplate> result = v8::FunctionTemplate::New(v8HTMLImageElementConstructorCallbackCustom); 92 92 93 93 v8::Local<v8::ObjectTemplate> instance = result->InstanceTemplate(); -
trunk/Source/WebCore/bindings/v8/custom/V8HTMLInputElementCustom.cpp
r142834 r142849 111 111 } 112 112 113 v8::Handle<v8::Value> V8HTMLInputElement::setSelectionRangeCallback (const v8::Arguments& args)113 v8::Handle<v8::Value> V8HTMLInputElement::setSelectionRangeCallbackCustom(const v8::Arguments& args) 114 114 { 115 115 v8::Handle<v8::Object> holder = args.Holder(); -
trunk/Source/WebCore/bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp
r142834 r142849 72 72 } 73 73 74 v8::Handle<v8::Value> V8HTMLOptionsCollection::namedItemCallback (const v8::Arguments& args)74 v8::Handle<v8::Value> V8HTMLOptionsCollection::namedItemCallbackCustom(const v8::Arguments& args) 75 75 { 76 76 HTMLOptionsCollection* imp = V8HTMLOptionsCollection::toNative(args.Holder()); … … 83 83 } 84 84 85 v8::Handle<v8::Value> V8HTMLOptionsCollection::removeCallback (const v8::Arguments& args)85 v8::Handle<v8::Value> V8HTMLOptionsCollection::removeCallbackCustom(const v8::Arguments& args) 86 86 { 87 87 HTMLOptionsCollection* imp = V8HTMLOptionsCollection::toNative(args.Holder()); … … 90 90 } 91 91 92 v8::Handle<v8::Value> V8HTMLOptionsCollection::addCallback (const v8::Arguments& args)92 v8::Handle<v8::Value> V8HTMLOptionsCollection::addCallbackCustom(const v8::Arguments& args) 93 93 { 94 94 if (!V8HTMLOptionElement::HasInstance(args[0], args.GetIsolate())) -
trunk/Source/WebCore/bindings/v8/custom/V8HTMLSelectElementCustom.cpp
r141763 r142849 63 63 } 64 64 65 v8::Handle<v8::Value> V8HTMLSelectElement::removeCallback (const v8::Arguments& args)65 v8::Handle<v8::Value> V8HTMLSelectElement::removeCallbackCustom(const v8::Arguments& args) 66 66 { 67 67 HTMLSelectElement* imp = V8HTMLSelectElement::toNative(args.Holder()); -
trunk/Source/WebCore/bindings/v8/custom/V8HistoryCustom.cpp
r142834 r142849 58 58 } 59 59 60 v8::Handle<v8::Value> V8History::pushStateCallback (const v8::Arguments& args)60 v8::Handle<v8::Value> V8History::pushStateCallbackCustom(const v8::Arguments& args) 61 61 { 62 62 bool didThrow = false; … … 75 75 } 76 76 77 v8::Handle<v8::Value> V8History::replaceStateCallback (const v8::Arguments& args)77 v8::Handle<v8::Value> V8History::replaceStateCallbackCustom(const v8::Arguments& args) 78 78 { 79 79 bool didThrow = false; -
trunk/Source/WebCore/bindings/v8/custom/V8InjectedScriptHostCustom.cpp
r142114 r142849 80 80 } 81 81 82 v8::Handle<v8::Value> V8InjectedScriptHost::inspectedObjectCallback (const v8::Arguments& args)82 v8::Handle<v8::Value> V8InjectedScriptHost::inspectedObjectCallbackCustom(const v8::Arguments& args) 83 83 { 84 84 if (args.Length() < 1) … … 93 93 } 94 94 95 v8::Handle<v8::Value> V8InjectedScriptHost::internalConstructorNameCallback (const v8::Arguments& args)95 v8::Handle<v8::Value> V8InjectedScriptHost::internalConstructorNameCallbackCustom(const v8::Arguments& args) 96 96 { 97 97 if (args.Length() < 1) … … 104 104 } 105 105 106 v8::Handle<v8::Value> V8InjectedScriptHost::isHTMLAllCollectionCallback (const v8::Arguments& args)106 v8::Handle<v8::Value> V8InjectedScriptHost::isHTMLAllCollectionCallbackCustom(const v8::Arguments& args) 107 107 { 108 108 if (args.Length() < 1) … … 116 116 } 117 117 118 v8::Handle<v8::Value> V8InjectedScriptHost::typeCallback (const v8::Arguments& args)118 v8::Handle<v8::Value> V8InjectedScriptHost::typeCallbackCustom(const v8::Arguments& args) 119 119 { 120 120 if (args.Length() < 1) … … 151 151 } 152 152 153 v8::Handle<v8::Value> V8InjectedScriptHost::functionDetailsCallback (const v8::Arguments& args)153 v8::Handle<v8::Value> V8InjectedScriptHost::functionDetailsCallbackCustom(const v8::Arguments& args) 154 154 { 155 155 if (args.Length() < 1) … … 190 190 } 191 191 192 v8::Handle<v8::Value> V8InjectedScriptHost::getInternalPropertiesCallback (const v8::Arguments& args)192 v8::Handle<v8::Value> V8InjectedScriptHost::getInternalPropertiesCallbackCustom(const v8::Arguments& args) 193 193 { 194 194 if (args.Length() < 1) … … 236 236 } 237 237 238 v8::Handle<v8::Value> V8InjectedScriptHost::getEventListenersCallback (const v8::Arguments& args)238 v8::Handle<v8::Value> V8InjectedScriptHost::getEventListenersCallbackCustom(const v8::Arguments& args) 239 239 { 240 240 if (args.Length() < 1) … … 270 270 } 271 271 272 v8::Handle<v8::Value> V8InjectedScriptHost::inspectCallback (const v8::Arguments& args)272 v8::Handle<v8::Value> V8InjectedScriptHost::inspectCallbackCustom(const v8::Arguments& args) 273 273 { 274 274 if (args.Length() < 2) … … 283 283 } 284 284 285 v8::Handle<v8::Value> V8InjectedScriptHost::databaseIdCallback (const v8::Arguments& args)285 v8::Handle<v8::Value> V8InjectedScriptHost::databaseIdCallbackCustom(const v8::Arguments& args) 286 286 { 287 287 if (args.Length() < 1) … … 296 296 } 297 297 298 v8::Handle<v8::Value> V8InjectedScriptHost::storageIdCallback (const v8::Arguments& args)298 v8::Handle<v8::Value> V8InjectedScriptHost::storageIdCallbackCustom(const v8::Arguments& args) 299 299 { 300 300 if (args.Length() < 1) … … 307 307 } 308 308 309 v8::Handle<v8::Value> V8InjectedScriptHost::evaluateCallback (const v8::Arguments& args)309 v8::Handle<v8::Value> V8InjectedScriptHost::evaluateCallbackCustom(const v8::Arguments& args) 310 310 { 311 311 if (args.Length() < 1) … … 322 322 } 323 323 324 v8::Handle<v8::Value> V8InjectedScriptHost::setFunctionVariableValueCallback (const v8::Arguments& args)324 v8::Handle<v8::Value> V8InjectedScriptHost::setFunctionVariableValueCallbackCustom(const v8::Arguments& args) 325 325 { 326 326 v8::Handle<v8::Value> functionValue = args[0]; -
trunk/Source/WebCore/bindings/v8/custom/V8InspectorFrontendHostCustom.cpp
r136813 r142849 44 44 namespace WebCore { 45 45 46 v8::Handle<v8::Value> V8InspectorFrontendHost::platformCallback (const v8::Arguments& args)46 v8::Handle<v8::Value> V8InspectorFrontendHost::platformCallbackCustom(const v8::Arguments& args) 47 47 { 48 48 #if defined(OS_MACOSX) … … 63 63 } 64 64 65 v8::Handle<v8::Value> V8InspectorFrontendHost::portCallback (const v8::Arguments&)65 v8::Handle<v8::Value> V8InspectorFrontendHost::portCallbackCustom(const v8::Arguments&) 66 66 { 67 67 return v8::Undefined(); … … 107 107 } 108 108 109 v8::Handle<v8::Value> V8InspectorFrontendHost::showContextMenuCallback (const v8::Arguments& args)109 v8::Handle<v8::Value> V8InspectorFrontendHost::showContextMenuCallbackCustom(const v8::Arguments& args) 110 110 { 111 111 if (args.Length() < 2) … … 147 147 } 148 148 149 v8::Handle<v8::Value> V8InspectorFrontendHost::recordActionTakenCallback (const v8::Arguments& args)149 v8::Handle<v8::Value> V8InspectorFrontendHost::recordActionTakenCallbackCustom(const v8::Arguments& args) 150 150 { 151 151 return histogramEnumeration("DevTools.ActionTaken", args, 100); 152 152 } 153 153 154 v8::Handle<v8::Value> V8InspectorFrontendHost::recordPanelShownCallback (const v8::Arguments& args)154 v8::Handle<v8::Value> V8InspectorFrontendHost::recordPanelShownCallbackCustom(const v8::Arguments& args) 155 155 { 156 156 return histogramEnumeration("DevTools.PanelShown", args, 20); 157 157 } 158 158 159 v8::Handle<v8::Value> V8InspectorFrontendHost::recordSettingChangedCallback (const v8::Arguments& args)159 v8::Handle<v8::Value> V8InspectorFrontendHost::recordSettingChangedCallbackCustom(const v8::Arguments& args) 160 160 { 161 161 return histogramEnumeration("DevTools.SettingChanged", args, 100); -
trunk/Source/WebCore/bindings/v8/custom/V8JavaScriptCallFrameCustom.cpp
r142834 r142849 38 38 namespace WebCore { 39 39 40 v8::Handle<v8::Value> V8JavaScriptCallFrame::evaluateCallback (const v8::Arguments& args)40 v8::Handle<v8::Value> V8JavaScriptCallFrame::evaluateCallbackCustom(const v8::Arguments& args) 41 41 { 42 42 JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(args.Holder()); … … 45 45 } 46 46 47 v8::Handle<v8::Value> V8JavaScriptCallFrame::restartCallback (const v8::Arguments& args)47 v8::Handle<v8::Value> V8JavaScriptCallFrame::restartCallbackCustom(const v8::Arguments& args) 48 48 { 49 49 JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(args.Holder()); … … 51 51 } 52 52 53 v8::Handle<v8::Value> V8JavaScriptCallFrame::setVariableValueCallback (const v8::Arguments& args)53 v8::Handle<v8::Value> V8JavaScriptCallFrame::setVariableValueCallbackCustom(const v8::Arguments& args) 54 54 { 55 55 JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(args.Holder()); … … 66 66 } 67 67 68 v8::Handle<v8::Value> V8JavaScriptCallFrame::scopeTypeCallback (const v8::Arguments& args)68 v8::Handle<v8::Value> V8JavaScriptCallFrame::scopeTypeCallbackCustom(const v8::Arguments& args) 69 69 { 70 70 JavaScriptCallFrame* impl = V8JavaScriptCallFrame::toNative(args.Holder()); -
trunk/Source/WebCore/bindings/v8/custom/V8LocationCustom.cpp
r142834 r142849 140 140 { 141 141 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)))); 143 143 v8::Handle<v8::Object> holder = info.This()->FindInstanceInPrototypeChain(V8Location::GetTemplate(isolate)); 144 144 if (holder.IsEmpty()) { … … 149 149 Location* imp = V8Location::toNative(holder); 150 150 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)))); 152 152 return sharedTemplate->GetFunction(); 153 153 } … … 158 158 { 159 159 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)))); 161 161 v8::Handle<v8::Object> holder = info.This()->FindInstanceInPrototypeChain(V8Location::GetTemplate(isolate)); 162 162 if (holder.IsEmpty()) { … … 167 167 Location* imp = V8Location::toNative(holder); 168 168 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)))); 170 170 return sharedTemplate->GetFunction(); 171 171 } … … 177 177 v8::Isolate* isolate = info.GetIsolate(); 178 178 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)))); 180 180 v8::Handle<v8::Object> holder = info.This()->FindInstanceInPrototypeChain(V8Location::GetTemplate(isolate)); 181 181 if (holder.IsEmpty()) { … … 186 186 Location* imp = V8Location::toNative(holder); 187 187 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)))); 189 189 return sharedTemplate->GetFunction(); 190 190 } … … 192 192 } 193 193 194 v8::Handle<v8::Value> V8Location::reloadCallback (const v8::Arguments& args)194 v8::Handle<v8::Value> V8Location::reloadCallbackCustom(const v8::Arguments& args) 195 195 { 196 196 Location* impl = V8Location::toNative(args.Holder()); … … 201 201 } 202 202 203 v8::Handle<v8::Value> V8Location::replaceCallback (const v8::Arguments& args)203 v8::Handle<v8::Value> V8Location::replaceCallbackCustom(const v8::Arguments& args) 204 204 { 205 205 Location* impl = V8Location::toNative(args.Holder()); … … 213 213 } 214 214 215 v8::Handle<v8::Value> V8Location::assignCallback (const v8::Arguments& args)215 v8::Handle<v8::Value> V8Location::assignCallbackCustom(const v8::Arguments& args) 216 216 { 217 217 Location* impl = V8Location::toNative(args.Holder()); … … 225 225 } 226 226 227 v8::Handle<v8::Value> V8Location::valueOfCallback (const v8::Arguments& args)227 v8::Handle<v8::Value> V8Location::valueOfCallbackCustom(const v8::Arguments& args) 228 228 { 229 229 // Just return the this object the way the normal valueOf function … … 235 235 } 236 236 237 v8::Handle<v8::Value> V8Location::toStringCallback (const v8::Arguments& args)237 v8::Handle<v8::Value> V8Location::toStringCallbackCustom(const v8::Arguments& args) 238 238 { 239 239 v8::Handle<v8::Object> holder = args.Holder(); -
trunk/Source/WebCore/bindings/v8/custom/V8MessageEventCustom.cpp
r142834 r142849 104 104 } 105 105 106 v8::Handle<v8::Value> V8MessageEvent::initMessageEventCallback (const v8::Arguments& args)106 v8::Handle<v8::Value> V8MessageEvent::initMessageEventCallbackCustom(const v8::Arguments& args) 107 107 { 108 108 MessageEvent* event = V8MessageEvent::toNative(args.Holder()); … … 132 132 } 133 133 134 v8::Handle<v8::Value> V8MessageEvent::webkitInitMessageEventCallback (const v8::Arguments& args)134 v8::Handle<v8::Value> V8MessageEvent::webkitInitMessageEventCallbackCustom(const v8::Arguments& args) 135 135 { 136 return initMessageEventCallback (args);136 return initMessageEventCallbackCustom(args); 137 137 } 138 138 -
trunk/Source/WebCore/bindings/v8/custom/V8MessagePortCustom.cpp
r138677 r142849 41 41 namespace WebCore { 42 42 43 v8::Handle<v8::Value> V8MessagePort::postMessageCallback (const v8::Arguments& args)43 v8::Handle<v8::Value> V8MessagePort::postMessageCallbackCustom(const v8::Arguments& args) 44 44 { 45 45 MessagePort* messagePort = V8MessagePort::toNative(args.Holder()); -
trunk/Source/WebCore/bindings/v8/custom/V8NodeCustom.cpp
r141719 r142849 62 62 63 63 // This function is customized to take advantage of the optional 4th argument: shouldLazyAttach 64 v8::Handle<v8::Value> V8Node::insertBeforeCallback (const v8::Arguments& args)64 v8::Handle<v8::Value> V8Node::insertBeforeCallbackCustom(const v8::Arguments& args) 65 65 { 66 66 v8::Handle<v8::Object> holder = args.Holder(); … … 78 78 79 79 // This function is customized to take advantage of the optional 4th argument: shouldLazyAttach 80 v8::Handle<v8::Value> V8Node::replaceChildCallback (const v8::Arguments& args)80 v8::Handle<v8::Value> V8Node::replaceChildCallbackCustom(const v8::Arguments& args) 81 81 { 82 82 v8::Handle<v8::Object> holder = args.Holder(); … … 93 93 } 94 94 95 v8::Handle<v8::Value> V8Node::removeChildCallback (const v8::Arguments& args)95 v8::Handle<v8::Value> V8Node::removeChildCallbackCustom(const v8::Arguments& args) 96 96 { 97 97 v8::Handle<v8::Object> holder = args.Holder(); … … 108 108 109 109 // This function is customized to take advantage of the optional 4th argument: shouldLazyAttach 110 v8::Handle<v8::Value> V8Node::appendChildCallback (const v8::Arguments& args)110 v8::Handle<v8::Value> V8Node::appendChildCallbackCustom(const v8::Arguments& args) 111 111 { 112 112 v8::Handle<v8::Object> holder = args.Holder(); -
trunk/Source/WebCore/bindings/v8/custom/V8NotificationCenterCustom.cpp
r138665 r142849 47 47 namespace WebCore { 48 48 49 v8::Handle<v8::Value> V8NotificationCenter::requestPermissionCallback (const v8::Arguments& args)49 v8::Handle<v8::Value> V8NotificationCenter::requestPermissionCallbackCustom(const v8::Arguments& args) 50 50 { 51 51 NotificationCenter* notificationCenter = V8NotificationCenter::toNative(args.Holder()); -
trunk/Source/WebCore/bindings/v8/custom/V8NotificationCustom.cpp
r138677 r142849 35 35 namespace WebCore { 36 36 37 v8::Handle<v8::Value> V8Notification::requestPermissionCallback (const v8::Arguments& args)37 v8::Handle<v8::Value> V8Notification::requestPermissionCallbackCustom(const v8::Arguments& args) 38 38 { 39 39 bool succeeded = false; -
trunk/Source/WebCore/bindings/v8/custom/V8SQLResultSetRowListCustom.cpp
r138677 r142849 39 39 namespace WebCore { 40 40 41 v8::Handle<v8::Value> V8SQLResultSetRowList::itemCallback (const v8::Arguments& args)41 v8::Handle<v8::Value> V8SQLResultSetRowList::itemCallbackCustom(const v8::Arguments& args) 42 42 { 43 43 if (!args.Length()) -
trunk/Source/WebCore/bindings/v8/custom/V8SQLTransactionCustom.cpp
r138677 r142849 47 47 namespace WebCore { 48 48 49 v8::Handle<v8::Value> V8SQLTransaction::executeSqlCallback (const v8::Arguments& args)49 v8::Handle<v8::Value> V8SQLTransaction::executeSqlCallbackCustom(const v8::Arguments& args) 50 50 { 51 51 if (args.Length() == 0) -
trunk/Source/WebCore/bindings/v8/custom/V8SQLTransactionSyncCustom.cpp
r141763 r142849 47 47 namespace WebCore { 48 48 49 v8::Handle<v8::Value> V8SQLTransactionSync::executeSqlCallback (const v8::Arguments& args)49 v8::Handle<v8::Value> V8SQLTransactionSync::executeSqlCallbackCustom(const v8::Arguments& args) 50 50 { 51 51 if (!args.Length()) -
trunk/Source/WebCore/bindings/v8/custom/V8SVGLengthCustom.cpp
r142834 r142849 76 76 } 77 77 78 v8::Handle<v8::Value> V8SVGLength::convertToSpecifiedUnitsCallback (const v8::Arguments& args)78 v8::Handle<v8::Value> V8SVGLength::convertToSpecifiedUnitsCallbackCustom(const v8::Arguments& args) 79 79 { 80 80 SVGPropertyTearOff<SVGLength>* wrapper = V8SVGLength::toNative(args.Holder()); -
trunk/Source/WebCore/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp
r142217 r142849 271 271 }; 272 272 273 v8::Handle<v8::Value> V8WebGLRenderingContext::getAttachedShadersCallback (const v8::Arguments& args)273 v8::Handle<v8::Value> V8WebGLRenderingContext::getAttachedShadersCallbackCustom(const v8::Arguments& args) 274 274 { 275 275 if (args.Length() < 1) … … 295 295 } 296 296 297 v8::Handle<v8::Value> V8WebGLRenderingContext::getBufferParameterCallback (const v8::Arguments& args)297 v8::Handle<v8::Value> V8WebGLRenderingContext::getBufferParameterCallbackCustom(const v8::Arguments& args) 298 298 { 299 299 return getObjectParameter(args, kBuffer); 300 300 } 301 301 302 v8::Handle<v8::Value> V8WebGLRenderingContext::getExtensionCallback (const v8::Arguments& args)302 v8::Handle<v8::Value> V8WebGLRenderingContext::getExtensionCallbackCustom(const v8::Arguments& args) 303 303 { 304 304 WebGLRenderingContext* imp = V8WebGLRenderingContext::toNative(args.Holder()); … … 310 310 } 311 311 312 v8::Handle<v8::Value> V8WebGLRenderingContext::getFramebufferAttachmentParameterCallback (const v8::Arguments& args)312 v8::Handle<v8::Value> V8WebGLRenderingContext::getFramebufferAttachmentParameterCallbackCustom(const v8::Arguments& args) 313 313 { 314 314 if (args.Length() != 3) … … 326 326 } 327 327 328 v8::Handle<v8::Value> V8WebGLRenderingContext::getParameterCallback (const v8::Arguments& args)328 v8::Handle<v8::Value> V8WebGLRenderingContext::getParameterCallbackCustom(const v8::Arguments& args) 329 329 { 330 330 if (args.Length() != 1) … … 340 340 } 341 341 342 v8::Handle<v8::Value> V8WebGLRenderingContext::getProgramParameterCallback (const v8::Arguments& args)342 v8::Handle<v8::Value> V8WebGLRenderingContext::getProgramParameterCallbackCustom(const v8::Arguments& args) 343 343 { 344 344 if (args.Length() != 2) … … 357 357 } 358 358 359 v8::Handle<v8::Value> V8WebGLRenderingContext::getRenderbufferParameterCallback (const v8::Arguments& args)359 v8::Handle<v8::Value> V8WebGLRenderingContext::getRenderbufferParameterCallbackCustom(const v8::Arguments& args) 360 360 { 361 361 return getObjectParameter(args, kRenderbuffer); 362 362 } 363 363 364 v8::Handle<v8::Value> V8WebGLRenderingContext::getShaderParameterCallback (const v8::Arguments& args)364 v8::Handle<v8::Value> V8WebGLRenderingContext::getShaderParameterCallbackCustom(const v8::Arguments& args) 365 365 { 366 366 if (args.Length() != 2) … … 379 379 } 380 380 381 v8::Handle<v8::Value> V8WebGLRenderingContext::getSupportedExtensionsCallback (const v8::Arguments& args)381 v8::Handle<v8::Value> V8WebGLRenderingContext::getSupportedExtensionsCallbackCustom(const v8::Arguments& args) 382 382 { 383 383 WebGLRenderingContext* imp = V8WebGLRenderingContext::toNative(args.Holder()); … … 392 392 } 393 393 394 v8::Handle<v8::Value> V8WebGLRenderingContext::getTexParameterCallback (const v8::Arguments& args)394 v8::Handle<v8::Value> V8WebGLRenderingContext::getTexParameterCallbackCustom(const v8::Arguments& args) 395 395 { 396 396 return getObjectParameter(args, kTexture); 397 397 } 398 398 399 v8::Handle<v8::Value> V8WebGLRenderingContext::getUniformCallback (const v8::Arguments& args)399 v8::Handle<v8::Value> V8WebGLRenderingContext::getUniformCallbackCustom(const v8::Arguments& args) 400 400 { 401 401 if (args.Length() != 2) … … 419 419 } 420 420 421 v8::Handle<v8::Value> V8WebGLRenderingContext::getVertexAttribCallback (const v8::Arguments& args)421 v8::Handle<v8::Value> V8WebGLRenderingContext::getVertexAttribCallbackCustom(const v8::Arguments& args) 422 422 { 423 423 return getObjectParameter(args, kVertexAttrib); … … 589 589 } 590 590 591 v8::Handle<v8::Value> V8WebGLRenderingContext::uniform1fvCallback (const v8::Arguments& args)591 v8::Handle<v8::Value> V8WebGLRenderingContext::uniform1fvCallbackCustom(const v8::Arguments& args) 592 592 { 593 593 return vertexAttribAndUniformHelperf(args, kUniform1v); 594 594 } 595 595 596 v8::Handle<v8::Value> V8WebGLRenderingContext::uniform1ivCallback (const v8::Arguments& args)596 v8::Handle<v8::Value> V8WebGLRenderingContext::uniform1ivCallbackCustom(const v8::Arguments& args) 597 597 { 598 598 return uniformHelperi(args, kUniform1v); 599 599 } 600 600 601 v8::Handle<v8::Value> V8WebGLRenderingContext::uniform2fvCallback (const v8::Arguments& args)601 v8::Handle<v8::Value> V8WebGLRenderingContext::uniform2fvCallbackCustom(const v8::Arguments& args) 602 602 { 603 603 return vertexAttribAndUniformHelperf(args, kUniform2v); 604 604 } 605 605 606 v8::Handle<v8::Value> V8WebGLRenderingContext::uniform2ivCallback (const v8::Arguments& args)606 v8::Handle<v8::Value> V8WebGLRenderingContext::uniform2ivCallbackCustom(const v8::Arguments& args) 607 607 { 608 608 return uniformHelperi(args, kUniform2v); 609 609 } 610 610 611 v8::Handle<v8::Value> V8WebGLRenderingContext::uniform3fvCallback (const v8::Arguments& args)611 v8::Handle<v8::Value> V8WebGLRenderingContext::uniform3fvCallbackCustom(const v8::Arguments& args) 612 612 { 613 613 return vertexAttribAndUniformHelperf(args, kUniform3v); 614 614 } 615 615 616 v8::Handle<v8::Value> V8WebGLRenderingContext::uniform3ivCallback (const v8::Arguments& args)616 v8::Handle<v8::Value> V8WebGLRenderingContext::uniform3ivCallbackCustom(const v8::Arguments& args) 617 617 { 618 618 return uniformHelperi(args, kUniform3v); 619 619 } 620 620 621 v8::Handle<v8::Value> V8WebGLRenderingContext::uniform4fvCallback (const v8::Arguments& args)621 v8::Handle<v8::Value> V8WebGLRenderingContext::uniform4fvCallbackCustom(const v8::Arguments& args) 622 622 { 623 623 return vertexAttribAndUniformHelperf(args, kUniform4v); 624 624 } 625 625 626 v8::Handle<v8::Value> V8WebGLRenderingContext::uniform4ivCallback (const v8::Arguments& args)626 v8::Handle<v8::Value> V8WebGLRenderingContext::uniform4ivCallbackCustom(const v8::Arguments& args) 627 627 { 628 628 return uniformHelperi(args, kUniform4v); … … 690 690 } 691 691 692 v8::Handle<v8::Value> V8WebGLRenderingContext::uniformMatrix2fvCallback (const v8::Arguments& args)692 v8::Handle<v8::Value> V8WebGLRenderingContext::uniformMatrix2fvCallbackCustom(const v8::Arguments& args) 693 693 { 694 694 return uniformMatrixHelper(args, 2); 695 695 } 696 696 697 v8::Handle<v8::Value> V8WebGLRenderingContext::uniformMatrix3fvCallback (const v8::Arguments& args)697 v8::Handle<v8::Value> V8WebGLRenderingContext::uniformMatrix3fvCallbackCustom(const v8::Arguments& args) 698 698 { 699 699 return uniformMatrixHelper(args, 3); 700 700 } 701 701 702 v8::Handle<v8::Value> V8WebGLRenderingContext::uniformMatrix4fvCallback (const v8::Arguments& args)702 v8::Handle<v8::Value> V8WebGLRenderingContext::uniformMatrix4fvCallbackCustom(const v8::Arguments& args) 703 703 { 704 704 return uniformMatrixHelper(args, 4); 705 705 } 706 706 707 v8::Handle<v8::Value> V8WebGLRenderingContext::vertexAttrib1fvCallback (const v8::Arguments& args)707 v8::Handle<v8::Value> V8WebGLRenderingContext::vertexAttrib1fvCallbackCustom(const v8::Arguments& args) 708 708 { 709 709 return vertexAttribAndUniformHelperf(args, kVertexAttrib1v); 710 710 } 711 711 712 v8::Handle<v8::Value> V8WebGLRenderingContext::vertexAttrib2fvCallback (const v8::Arguments& args)712 v8::Handle<v8::Value> V8WebGLRenderingContext::vertexAttrib2fvCallbackCustom(const v8::Arguments& args) 713 713 { 714 714 return vertexAttribAndUniformHelperf(args, kVertexAttrib2v); 715 715 } 716 716 717 v8::Handle<v8::Value> V8WebGLRenderingContext::vertexAttrib3fvCallback (const v8::Arguments& args)717 v8::Handle<v8::Value> V8WebGLRenderingContext::vertexAttrib3fvCallbackCustom(const v8::Arguments& args) 718 718 { 719 719 return vertexAttribAndUniformHelperf(args, kVertexAttrib3v); 720 720 } 721 721 722 v8::Handle<v8::Value> V8WebGLRenderingContext::vertexAttrib4fvCallback (const v8::Arguments& args)722 v8::Handle<v8::Value> V8WebGLRenderingContext::vertexAttrib4fvCallbackCustom(const v8::Arguments& args) 723 723 { 724 724 return vertexAttribAndUniformHelperf(args, kVertexAttrib4v); -
trunk/Source/WebCore/bindings/v8/custom/V8WorkerContextCustom.cpp
r142565 r142849 91 91 } 92 92 93 v8::Handle<v8::Value> V8WorkerContext::importScriptsCallback (const v8::Arguments& args)93 v8::Handle<v8::Value> V8WorkerContext::importScriptsCallbackCustom(const v8::Arguments& args) 94 94 { 95 95 if (!args.Length()) … … 115 115 } 116 116 117 v8::Handle<v8::Value> V8WorkerContext::setTimeoutCallback (const v8::Arguments& args)117 v8::Handle<v8::Value> V8WorkerContext::setTimeoutCallbackCustom(const v8::Arguments& args) 118 118 { 119 119 return SetTimeoutOrInterval(args, true); 120 120 } 121 121 122 v8::Handle<v8::Value> V8WorkerContext::setIntervalCallback (const v8::Arguments& args)122 v8::Handle<v8::Value> V8WorkerContext::setIntervalCallbackCustom(const v8::Arguments& args) 123 123 { 124 124 return SetTimeoutOrInterval(args, false); -
trunk/Source/WebCore/bindings/v8/custom/V8WorkerCustom.cpp
r138677 r142849 46 46 namespace WebCore { 47 47 48 v8::Handle<v8::Value> V8Worker::postMessageCallback (const v8::Arguments& args)48 v8::Handle<v8::Value> V8Worker::postMessageCallbackCustom(const v8::Arguments& args) 49 49 { 50 50 Worker* worker = V8Worker::toNative(args.Holder()); -
trunk/Source/WebCore/bindings/v8/custom/V8XMLHttpRequestCustom.cpp
r142834 r142849 116 116 } 117 117 118 v8::Handle<v8::Value> V8XMLHttpRequest::openCallback (const v8::Arguments& args)118 v8::Handle<v8::Value> V8XMLHttpRequest::openCallbackCustom(const v8::Arguments& args) 119 119 { 120 120 // Four cases: … … 165 165 } 166 166 167 v8::Handle<v8::Value> V8XMLHttpRequest::sendCallback (const v8::Arguments& args)167 v8::Handle<v8::Value> V8XMLHttpRequest::sendCallbackCustom(const v8::Arguments& args) 168 168 { 169 169 XMLHttpRequest* xmlHttpRequest = V8XMLHttpRequest::toNative(args.Holder()); -
trunk/Source/WebCore/bindings/v8/custom/V8XSLTProcessorCustom.cpp
r138665 r142849 49 49 namespace WebCore { 50 50 51 v8::Handle<v8::Value> V8XSLTProcessor::setParameterCallback (const v8::Arguments& args)51 v8::Handle<v8::Value> V8XSLTProcessor::setParameterCallbackCustom(const v8::Arguments& args) 52 52 { 53 53 if (isUndefinedOrNull(args[1]) || isUndefinedOrNull(args[2])) … … 64 64 } 65 65 66 v8::Handle<v8::Value> V8XSLTProcessor::getParameterCallback (const v8::Arguments& args)66 v8::Handle<v8::Value> V8XSLTProcessor::getParameterCallbackCustom(const v8::Arguments& args) 67 67 { 68 68 if (isUndefinedOrNull(args[1])) … … 80 80 } 81 81 82 v8::Handle<v8::Value> V8XSLTProcessor::removeParameterCallback (const v8::Arguments& args)82 v8::Handle<v8::Value> V8XSLTProcessor::removeParameterCallbackCustom(const v8::Arguments& args) 83 83 { 84 84 if (isUndefinedOrNull(args[1])) -
trunk/Source/WebCore/page/DOMWindow.idl
r142739 r142849 181 181 // cross-document messaging 182 182 #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) 186 184 raises(DOMException); 187 185 #else -
trunk/Source/WebCore/xml/XMLHttpRequest.idl
r132513 r142849 71 71 [Custom] void send() 72 72 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);85 73 86 74 void abort();
Note: See TracChangeset
for help on using the changeset viewer.