• Home
  • Raw
  • Download

Lines Matching refs:clsname

9 def make_ctocpp_impl_proto(clsname, name, func, parts):  argument
13 if clsname is None:
16 proto += parts['retval'] + ' ' + clsname
28 def make_ctocpp_function_impl_existing(clsname, name, func, impl): argument
38 return make_ctocpp_impl_proto(clsname, name, func, parts)+'{'+ \
42 def make_ctocpp_function_impl_new(clsname, name, func, base_scoped): argument
49 result = make_ctocpp_impl_proto(clsname, name, func, parts) + ' {'
58 if clsname == func.parent.get_name():
59 result += '\n ' + get_capi_name(clsname,
501 def make_ctocpp_function_impl(clsname, funcs, existing, base_scoped): argument
510 impl += make_ctocpp_function_impl_existing(clsname, name, func, value)
512 impl += make_ctocpp_function_impl_new(clsname, name, func, base_scoped)
542 clsname = cls.get_name()
545 if cur_cls.get_name() == clsname:
547 if cur_cls.has_parent(clsname):
554 for clsname in derived_classes:
555 impl[0] += ' if (type == '+get_wrapper_type_enum(clsname)+') {\n'+\
557clsname+'CToCpp::UnwrapOwn(CefOwnPtr<'+clsname+'>(reinterpret_cast<'+clsname+'*>(c.release()))));\…
559 impl[1] += ' if (type == '+get_wrapper_type_enum(clsname)+') {\n'+\
561clsname+'CToCpp::UnwrapRaw(CefRawPtr<'+clsname+'>(reinterpret_cast<'+clsname+'*>(c))));\n'+\
565 for clsname in derived_classes:
566 impl += ' if (type == '+get_wrapper_type_enum(clsname)+') {\n'+\
568 clsname+'CToCpp::Unwrap(reinterpret_cast<'+clsname+'*>(c)));\n'+\
573 def make_ctocpp_class_impl(header, clsname, impl): argument
574 cls = header.get_class(clsname)
576 raise Exception('Class does not exist: ' + clsname)
581 existing = get_function_impls(impl, clsname + 'CToCpp::')
583 base_class_name = header.get_base_class_name(clsname)
597 existing = get_function_impls(impl, clsname + '::')
600 staticimpl = make_ctocpp_function_impl(clsname,
612 clsname+'CToCpp::'+clsname+'CToCpp() {\n'+ \
615 clsname+'CToCpp::~'+clsname+'CToCpp() {\n'
633 parent_sig = template_class + '<' + clsname + 'CToCpp, ' + clsname + ', ' + capiname + '>'
636 …capiname+'* '+parent_sig+'::UnwrapDerivedOwn(CefWrapperType type, CefOwnPtr<'+clsname+'> c) {\n'+ \
641 …capiname+'* '+parent_sig+'::UnwrapDerivedRaw(CefWrapperType type, CefRawPtr<'+clsname+'> c) {\n'+ \
647 …const += 'template<> '+capiname+'* '+parent_sig+'::UnwrapDerived(CefWrapperType type, '+clsname+'*…
654 clsname) + ';'
693 def write_ctocpp_impl(header, clsname, dir): argument
694 if clsname is None:
700 cls = header.get_class(clsname)
702 file = os.path.join(dir, get_capi_name(clsname[3:], False) + '_ctocpp.cc')
709 if clsname is None:
712 newcontents = make_ctocpp_class_impl(header, clsname, oldcontents)