Lines Matching refs:implContent
37 my @implContent = ();
609 @implContent = ();
611 push(@implContent, "#include <wtf/GetPtr.h>\n");
612 push(@implContent, "#include <wtf/RefPtr.h>\n\n");
616 push(@implContent, "struct ${className}::${className}Private {\n");
617 push(@implContent, " ${className}Private($implClassNameWithNamespace* object = 0)\n");
618 push(@implContent, " : impl(object)\n");
619 push(@implContent, " {\n");
620 push(@implContent, " }\n\n");
621 push(@implContent, " RefPtr<$implClassNameWithNamespace> impl;\n");
622 push(@implContent, "};\n\n");
626 push(@implContent, "${className}::$className()\n");
627 push(@implContent, " : ${baseClass}()\n");
628 push(@implContent, " , m_impl(0)\n") if ($baseClass eq "WebDOMObject");
629 push(@implContent, "{\n");
630 push(@implContent, "}\n\n");
632 push(@implContent, "${className}::$className($implClassNameWithNamespace* impl)\n");
634 push(@implContent, " : ${baseClass}()\n");
635 push(@implContent, " , m_impl(new ${className}Private(impl))\n");
636 push(@implContent, "{\n");
637 push(@implContent, "}\n\n");
639 push(@implContent, "${className}::${className}(const ${className}& copy)\n");
640 push(@implContent, " : ${baseClass}()\n");
641 push(@implContent, "{\n");
642 push(@implContent, " m_impl = copy.impl() ? new ${className}Private(copy.impl()) : 0;\n");
643 push(@implContent, "}\n\n");
645 push(@implContent, "${className}& ${className}::operator\=(const ${className}& copy)\n");
646 push(@implContent, "{\n");
647 push(@implContent, " delete m_impl;\n");
648 push(@implContent, " m_impl = copy.impl() ? new ${className}Private(copy.impl()) : 0;\n");
649 push(@implContent, " return *this;\n");
650 push(@implContent, "}\n\n");
652 push(@implContent, "$implClassNameWithNamespace* ${className}::impl() const\n");
653 push(@implContent, "{\n");
654 push(@implContent, " return m_impl ? m_impl->impl.get() : 0;\n");
655 push(@implContent, "}\n\n");
658 push(@implContent, "${className}::~$className()\n");
659 push(@implContent, "{\n");
660 push(@implContent, " delete m_impl;\n");
661 push(@implContent, " m_impl = 0;\n");
662 push(@implContent, "}\n\n");
664 push(@implContent, " : ${baseClass}(impl)\n");
665 push(@implContent, "{\n");
666 push(@implContent, "}\n\n");
668 push(@implContent, "$implClassNameWithNamespace* ${className}::impl() const\n");
669 push(@implContent, "{\n");
670 push(@implContent, " return static_cast<$implClassNameWithNamespace*>(${baseClass}::impl());\n");
671 push(@implContent, "}\n\n");
718 push(@implContent, "#if ${attributeConditionalString}\n") if $attributeConditionalString;
720 push(@implContent, $getterSig);
721 push(@implContent, "{\n");
722 push(@implContent, AddEarlyReturnStatement($attributeType));
723 push(@implContent, @customGetterContent);
733 push(@implContent, " $exceptionInit\n");
734 push(@implContent, " $getterContent;\n");
735 push(@implContent, " $exceptionRaiseOnError\n");
736 push(@implContent, AddReturnStatement($attribute, "result"));
738 push(@implContent, AddReturnStatement($attribute, $getterContent));
740 push(@implContent, "}\n\n");
758 push(@implContent, "void $className\:\:$setterName($attributeType $argName)\n");
759 push(@implContent, "{\n");
760 push(@implContent, AddEarlyReturnStatement());
762 push(@implContent, " $exceptionInit\n") if $hasSetterException;
765 push(@implContent, " impl()->$setterExpressionPrefix$arg$ec);\n");
766 push(@implContent, " $exceptionRaiseOnError\n") if $hasSetterException;
767 push(@implContent, "}\n\n");
770 push(@implContent, "#endif\n") if $attributeConditionalString;
872 push(@implContent, "$functionSig\n");
873 push(@implContent, "{\n");
874 push(@implContent, AddEarlyReturnStatement($returnType));
875 push(@implContent, @functionContent);
876 push(@implContent, "}\n\n");
886 push(@implContent, "WebCore::$implClassName* toWebCore(const $className& wrapper)\n");
887 push(@implContent, "{\n");
888 push(@implContent, " return wrapper.impl();\n");
889 push(@implContent, "}\n\n");
891 push(@implContent, "$className toWebKit(WebCore::$implClassName* value)\n");
892 push(@implContent, "{\n");
893 push(@implContent, " return $className(value);\n");
894 push(@implContent, "}\n");
897 push(@implContent, "\n#endif // ${conditionalString}\n") if $conditionalString;
953 print IMPL @implContent;
957 @implContent = ();