Home | History | Annotate | Download | only in scripts

Lines Matching refs:push

368             push(@protocols, "NSObject");
369 push(@protocols, "NSCopying") if $dataNode->name eq "EventTarget";
377 push(@protocols, "DOM" . $parentName);
380 push(@protocols, "DOM" . $parentName);
391 push(@protocols, "DOM" . $firstParent);
403 push(@protocols, "DOM" . $parentName);
462 push(@attributes, "readonly") if $readOnly;
466 push(@attributes, "copy");
468 push(@attributes, "retain");
470 push(@attributes, "retain");
648 push(@headerContentHeader, "\n");
654 push(@headerContentHeader, "#import <WebCore/$parentHeaderName.h>\n");
661 push(@headerContentHeader, "#import <WebCore/$parentProtocol.h>\n");
667 push(@headerContentHeader, "#import <WebCore/DOMCore.h>\n");
668 push(@headerContentHeader, "#import <WebCore/DOMDocument.h>\n");
669 push(@headerContentHeader, "#import <WebCore/DOMRangeException.h>\n");
673 push(@headerContentHeader, "#import <JavaScriptCore/WebKitAvailability.h>\n") unless $includedWebKitAvailabilityHeader;
677 push(@headerContentHeader, "\n");
678 push(@headerContentHeader, $interfaceAvailabilityVersionCheck) if length $interfaceAvailabilityVersion;
690 push(@headerConstants, $output);
697 push(@headerContent, "enum {\n");
698 push(@headerContent, $combinedConstants);
699 push(@headerContent, "\n};\n\n");
707 push(@headerContent, $interfaceDeclaration);
766 push(@headerAttributes, $property) if $public;
767 push(@privateHeaderAttributes, $property) unless $public;
771 push(@headerAttributes, $getter) if $public;
772 push(@privateHeaderAttributes, $getter) unless $public;
777 push(@headerAttributes, $setter) if $public;
778 push(@privateHeaderAttributes, $setter) unless $public;
783 push(@headerContent, @headerAttributes) if @headerAttributes > 0;
855 push(@headerFunctions, $functionDeclaration) if $public;
856 push(@privateHeaderFunctions, $functionDeclaration) unless $public;
874 push(@deprecatedHeaderFunctions, $functionDeclaration);
886 push(@headerContent, "\n") if $buildingForLeopardOrLater and @headerAttributes > 0;
887 push(@headerContent, @headerFunctions);
892 push(@headerContent, @deprecatedHeaderFunctions);
896 push(@headerContent, "\@end\n");
900 push(@headerContent, "\n\@interface $className (" . $className . "Deprecated)\n");
901 push(@headerContent, @deprecatedHeaderFunctions);
902 push(@headerContent, "\@end\n");
905 push(@headerContent, "\n#endif\n") if length $interfaceAvailabilityVersion;
912 push(@privateHeaderContentHeader, "\n");
915 push(@privateHeaderContentHeader, "#import <WebCore/$classHeaderName.h>\n\n");
916 push(@privateHeaderContentHeader, $interfaceAvailabilityVersionCheck) if length $interfaceAvailabilityVersion;
919 push(@privateHeaderContent, "\@interface $className (" . $className . "Private)\n");
920 push(@privateHeaderContent, @privateHeaderAttributes) if @privateHeaderAttributes > 0;
921 push(@privateHeaderContent, "\n") if $buildingForLeopardOrLater and @privateHeaderAttributes > 0 and @privateHeaderFunctions > 0;
922 push(@privateHeaderContent, @privateHeaderFunctions) if @privateHeaderFunctions > 0;
923 push(@privateHeaderContent, "\@end\n");
925 push(@privateHeaderContent, "\n#endif\n") if length $interfaceAvailabilityVersion;
935 push(@internalHeaderContent, "\n#import <WebCore/$className.h>\n\n");
936 push(@internalHeaderContent, $interfaceAvailabilityVersionCheck) if length $interfaceAvailabilityVersion;
939 push(@internalHeaderContent, "\@protocol DOMEventTarget;\n\n");
947 push(@internalHeaderContent, "#import <WebCore/SVGAnimatedTemplate.h>\n\n");
949 push(@internalHeaderContent, "namespace WebCore {\n");
952 push(@internalHeaderContent, " class $podType;\n");
954 push(@internalHeaderContent, " class EventTarget;\n class Node;\n");
956 push(@internalHeaderContent, " class $implClassName;\n");
958 push(@internalHeaderContent, "}\n\n");
963 push(@internalHeaderContent, "float core($className *);\n");
965 push(@internalHeaderContent, "WebCore::$podType core($className *);\n");
968 push(@internalHeaderContent, "WebCore::$implClassName* core($className *);\n");
973 push(@internalHeaderContent, "$className *kit($podType);\n");
975 push(@internalHeaderContent, "$className *kit(WebCore::$podType);\n");
978 push(@internalHeaderContent, "$className *kit(WebCore::$implClassName*);\n");
982 push(@internalHeaderContent, "Class kitClass(WebCore::$implClassName*);\n");
986 push(@internalHeaderContent, "id <DOMEventTarget> kit(WebCore::EventTarget*);\n");
989 push(@internalHeaderContent, "\n#endif\n") if length $interfaceAvailabilityVersion;
1027 push(@implContentHeader, "\n#import \"config.h\"\n");
1032 push(@implContentHeader, "\n#if ${conditionalString}\n\n");
1035 push(@implContentHeader, "#import \"DOMInternal.h\"\n\n");
1036 push(@implContentHeader, "#import \"$classHeaderName.h\"\n\n");
1067 push(@implContent, "#import <wtf/GetPtr.h>\n\n");
1071 push(@implContent, "#define IMPL reinterpret_cast<$podTypeWithNamespace*>(_internal)\n\n");
1073 push(@implContent, "#define IMPL reinterpret_cast<$implClassNameWithNamespace*>(_internal)\n\n");
1076 push(@implContent, "#define IMPL static_cast<$implClassNameWithNamespace*>(reinterpret_cast<$baseClassWithNamespace*>(_internal))\n\n");
1080 push(@implContent, "\@implementation $className\n\n");
1085 push(@implContent, "- (void)dealloc\n");
1086 push(@implContent, "{\n");
1087 push(@implContent, " if (WebCoreObjCScheduleDeallocateOnMainThread([$className class], self))\n");
1088 push(@implContent, " return;\n");
1089 push(@implContent, "\n");
1091 push(@implContent, " if (_internal) {\n");
1092 push(@implContent, " [self detach];\n");
1093 push(@implContent, " IMPL->deref();\n");
1094 push(@implContent, " };\n");
1096 push(@implContent, " delete IMPL;\n");
1098 push(@implContent, " if (_internal)\n");
1099 push(@implContent, " IMPL->deref();\n");
1101 push(@implContent, " [super dealloc];\n");
1102 push(@implContent, "}\n\n");
1104 push(@implContent, "- (void)finalize\n");
1105 push(@implContent, "{\n");
1107 push(@implContent, " if (_internal) {\n");
1108 push(@implContent, " [self detach];\n");
1109 push(@implContent, " IMPL->deref();\n");
1110 push(@implContent, " };\n");
1112 push(@implContent, " delete IMPL;\n");
1114 push(@implContent, " if (_internal)\n");
1115 push(@implContent, " IMPL->deref();\n");
1117 push(@implContent, " [super finalize];\n");
1118 push(@implContent, "}\n\n");
1215 push(@customGetterContent, " if (!IMPL->renderer() || !IMPL->renderer()->isImage())\n");
1216 push(@customGetterContent, " return nil;\n");
1250 push(@implContent, $getterSig);
1251 push(@implContent, "{\n");
1252 push(@implContent, @customGetterContent);
1262 push(@implContent, " $exceptionInit\n");
1263 push(@implContent, " $getterContent;\n");
1264 push(@implContent, " $exceptionRaiseOnError\n");
1265 push(@implContent, " return result;\n");
1267 push(@implContent, " return $getterContent;\n");
1269 push(@implContent, "}\n\n");
1290 push(@implContent, $setterSig);
1291 push(@implContent, "{\n");
1294 push(@implContent, " ASSERT($argName);\n\n");
1304 push(@implContent, " *IMPL = $arg;\n");
1306 push(@implContent, " IMPL->$coreSetterName($arg);\n");
1311 push(@implContent, " $exceptionInit\n") if $hasSetterException;
1317 push(@implContent, " IMPL->setAttribute(WebCore::${namespace}::${contentAttributeName}Attr, $arg$ec);\n");
1319 push(@implContent, " IMPL->$coreSetterName($arg$ec);\n");
1321 push(@implContent, " $exceptionRaiseOnError\n") if $hasSetterException;
1324 push(@implContent, "}\n\n");
1357 push(@parameterNames, $implGetter);
1365 push(@needsAssert, " ASSERT($paramName);\n");
1385 push(@functionContent, " WebCore::XPathNSResolver* nativeResolver = 0;\n");
1386 push(@functionContent, " RefPtr<WebCore::XPathNSResolver> customResolver;\n");
1387 push(@functionContent, " if ($paramName) {\n");
1388 push(@functionContent, " if ([$paramName isMemberOfClass:[DOMNativeXPathNSResolver class]])\n");
1389 push(@functionContent, " nativeResolver = core(static_cast<DOMNativeXPathNSResolver *>($paramName));\n");
1390 push(@functionContent, " else {\n");
1391 push(@functionContent, " customResolver = WebCore::DOMCustomXPathNSResolver::create($paramName);\n");
1392 push(@functionContent, " nativeResolver = WTF::getPtr(customResolver);\n");
1393 push(@functionContent, " }\n");
1394 push(@functionContent, " }\n");
1400 push(@functionContent, " DOMNode* ${paramName}ObjC = $paramName;\n");
1401 push(@functionContent, " WebCore::Node* ${paramName}Node = core(${paramName}ObjC);\n");
1407 push(@functionContent, " WebCore::DOMWindow* dv = $caller->defaultView();\n");
1408 push(@functionContent, " if (!dv)\n");
1409 push(@functionContent, " return nil;\n");
1417 push(@functionContent, " RefPtr<WebCore::EventListener> nativeEventListener = WebCore::ObjCEventListener::wrap($paramName);\n");
1423 push(@functionContent, " RefPtr<WebCore::NodeFilter> nativeNodeFilter;\n");
1424 push(@functionContent, " if ($paramName)\n");
1425 push(@functionContent, " nativeNodeFilter = WebCore::NodeFilter::create(WebCore::ObjCNodeFilterCondition::create($paramName));\n");
1433 push(@parameterNames, "ec") if $raisesExceptions and !($svgMatrixRotateFromVector || $svgMatrixInverse);
1438 push(@functionContent, " $exceptionInit\n");
1439 push(@functionContent, " if (x == 0.0 || y == 0.0)\n");
1440 push(@functionContent, " ec = WebCore::SVGException::SVG_INVALID_VALUE_ERR;\n");
1441 push(@functionContent, " $exceptionRaiseOnError\n");
1442 push(@functionContent, " return kit($content);\n");
1445 push(@functionContent, " $exceptionInit\n");
1446 push(@functionContent, " if (!$caller->isInvertible())\n");
1447 push(@functionContent, " ec = WebCore::SVGException::SVG_MATRIX_NOT_INVERTABLE;\n");
1448 push(@functionContent, " $exceptionRaiseOnError\n");
1449 push(@functionContent, " return kit($content);\n");
1451 push(@functionContent, " IMPL->convertToSpecifiedUnits(inUnitType, 0 /* FIXME */);\n");
1455 push(@functionContent, " $exceptionInit\n");
1456 push(@functionContent, " $content;\n");
1457 push(@functionContent, " $exceptionRaiseOnError\n");
1459 push(@functionContent, " $content;\n");
1466 push(@functionContent, " $exceptionInit\n");
1467 push(@functionContent, " if ($content)\n");
1468 push(@functionContent, " return $toReturn;\n");
1469 push(@functionContent, " $exceptionRaiseOnError\n");
1470 push(@functionContent, " return nil;\n");
1472 push(@functionContent, " if ($content)\n");
1473 push(@functionContent, " return $toReturn;\n");
1474 push(@functionContent, " return nil;\n");
1496 push(@functionContent, " $exceptionInit\n");
1497 push(@functionContent, " $content;\n");
1498 push(@functionContent, " $exceptionRaiseOnError\n");
1499 push(@functionContent, " return result;\n");
1501 push(@functionContent, " return $content;\n");
1505 push(@implContent, "$functionSig\n");
1506 push(@implContent, "{\n");
1507 push(@implContent, @functionContent);
1508 push(@implContent, "}\n\n");
1515 push(@implContent, "$deprecatedFunctionSig\n");
1516 push(@implContent, "{\n");
1517 push(@implContent, @functionContent);
1518 push(@implContent, "}\n\n");
1527 push(@implContent, "\@end\n");
1532 push(@implContent, "\n$prefixedPodType core($className *wrapper)\n");
1533 push(@implContent, "{\n");
1534 push(@implContent, " return wrapper ? *reinterpret_cast<$prefixedPodType*>(wrapper->_internal) : $prefixedPodType();\n");
1535 push(@implContent, "}\n\n");
1537 push(@implContent, "\nWebCore::$implClassName* core($className *wrapper)\n");
1538 push(@implContent, "{\n");
1539 push(@implContent, " return wrapper ? reinterpret_cast<WebCore::$implClassName*>(wrapper->_internal) : 0;\n");
1540 push(@implContent, "}\n\n");
1546 push(@implContent, "$className *kit($prefixedPodType value)\n");
1547 push(@implContent, "{\n");
1548 push(@implContent, " $assertMainThread;\n");
1549 push(@implContent, " $className *wrapper = [[$className alloc] _init];\n");
1550 push(@implContent, " wrapper->_internal = reinterpret_cast<DOMObjectInternal*>(new $prefixedPodType(value));\n");
1551 push(@implContent, " return [wrapper autorelease];\n");
1552 push(@implContent, "}\n");
1554 push(@implContent, "$className *kit(WebCore::$implClassName* value)\n");
1555 push(@implContent, "{\n");
1556 push(@implContent, " $assertMainThread;\n");
1557 push(@implContent, " if (!value)\n");
1558 push(@implContent, " return nil;\n");
1559 push(@implContent, " if ($className *wrapper = getDOMWrapper(value))\n");
1560 push(@implContent, " return [[wrapper retain] autorelease];\n");
1562 push(@implContent, " $className *wrapper = [[kitClass(value) alloc] _init];\n");
1563 push(@implContent, " if (!wrapper)\n");
1564 push(@implContent, " return nil;\n");
1566 push(@implContent, " $className *wrapper = [[$className alloc] _init];\n");
1568 push(@implContent, " wrapper->_internal = reinterpret_cast<DOMObjectInternal*>(value);\n");
1569 push(@implContent, " value->ref();\n");
1570 push(@implContent, " addDOMWrapper(wrapper, value);\n");
1571 push(@implContent, " return [wrapper autorelease];\n");
1572 push(@implContent, "}\n");
1574 push(@implContent, "$className *kit(WebCore::$implClassName* value)\n");
1575 push(@implContent, "{\n");
1576 push(@implContent, " $assertMainThread;\n");
1577 push(@implContent, " return static_cast<$className*>(kit(static_cast<WebCore::$baseClass*>(value)));\n");
1578 push(@implContent, "}\n");
1582 push(@implContent, "\n#endif // ${conditionalString}\n") if $conditional;
1586 push(@depsContent, "$className.h : ", join(" ", map { "$_.idl" } @ancestorInterfaceNames), "\n");
1587 push(@depsContent, map { "$_.idl :\n" } @ancestorInterfaceNames);