Lines Matching refs:clsname
546 for clsname in derived_classes:
547 impl[0] += ' if (type == '+get_wrapper_type_enum(clsname)+') {\n'+\
548 ' return '+clsname+'CppToC::UnwrapOwn(reinterpret_cast<'+\
549 get_capi_name(clsname, True)+'*>(s));\n'+\
551 impl[1] += ' if (type == '+get_wrapper_type_enum(clsname)+') {\n'+\
552 ' return '+clsname+'CppToC::UnwrapRaw(reinterpret_cast<'+\
553 get_capi_name(clsname, True)+'*>(s));\n'+\
557 for clsname in derived_classes:
558 impl += ' if (type == '+get_wrapper_type_enum(clsname)+') {\n'+\
559 ' return '+clsname+'CppToC::Unwrap(reinterpret_cast<'+\
560 get_capi_name(clsname, True)+'*>(s));\n'+\
565 def make_cpptoc_class_impl(header, clsname, impl): argument
570 cls = header.get_class(clsname, defined_names)
572 raise Exception('Class does not exist: ' + clsname)
575 prefixname = get_capi_name(clsname[3:], False)
580 base_class_name = header.get_base_class_name(clsname)
612 clsname+'CppToC::'+clsname+'CppToC() {\n'
617 clsname+'CppToC::~'+clsname+'CppToC() {\n'
635 parent_sig = template_class + '<' + clsname + 'CppToC, ' + clsname + ', ' + capiname + '>'
638 …const += 'template<> CefOwnPtr<'+clsname+'> '+parent_sig+'::UnwrapDerivedOwn(CefWrapperType type, …
641 ' return CefOwnPtr<'+clsname+'>();\n'+ \
643 …'template<> CefRawPtr<'+clsname+'> '+parent_sig+'::UnwrapDerivedRaw(CefWrapperType type, '+capinam…
649 …const += 'template<> CefRefPtr<'+clsname+'> '+parent_sig+'::UnwrapDerived(CefWrapperType type, '+c…
656 clsname) + ';'
700 def write_cpptoc_impl(header, clsname, dir): argument
701 if clsname is None:
707 cls = header.get_class(clsname)
709 file = os.path.join(dir, get_capi_name(clsname[3:], False) + '_cpptoc.cc')
716 if clsname is None:
719 newcontents = make_cpptoc_class_impl(header, clsname, oldcontents)