当前位置: 首页>>代码示例>>Python>>正文


Python IdlType.set_callback_interfaces方法代码示例

本文整理汇总了Python中idl_types.IdlType.set_callback_interfaces方法的典型用法代码示例。如果您正苦于以下问题:Python IdlType.set_callback_interfaces方法的具体用法?Python IdlType.set_callback_interfaces怎么用?Python IdlType.set_callback_interfaces使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在idl_types.IdlType的用法示例。


在下文中一共展示了IdlType.set_callback_interfaces方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from idl_types import IdlType [as 别名]
# 或者: from idl_types.IdlType import set_callback_interfaces [as 别名]
    def __init__(self, interfaces_info, cache_dir):
        interfaces_info = interfaces_info or {}
        self.interfaces_info = interfaces_info
        self.jinja_env = initialize_jinja_env(cache_dir)

        # Set global type info
        idl_types.set_ancestors(dict(
            (interface_name, interface_info['ancestors'])
            for interface_name, interface_info in interfaces_info.iteritems()
            if interface_info['ancestors']))
        IdlType.set_callback_interfaces(set(
            interface_name
            for interface_name, interface_info in interfaces_info.iteritems()
            if interface_info['is_callback_interface']))
        IdlType.set_implemented_as_interfaces(dict(
            (interface_name, interface_info['implemented_as'])
            for interface_name, interface_info in interfaces_info.iteritems()
            if interface_info['implemented_as']))
        IdlType.set_garbage_collected_types(set(
            interface_name
            for interface_name, interface_info in interfaces_info.iteritems()
            if 'GarbageCollected' in interface_info['inherited_extended_attributes']))
        IdlType.set_will_be_garbage_collected_types(set(
            interface_name
            for interface_name, interface_info in interfaces_info.iteritems()
            if 'WillBeGarbageCollected' in interface_info['inherited_extended_attributes']))
        v8_types.set_component_dirs(dict(
            (interface_name, interface_info['component_dir'])
            for interface_name, interface_info in interfaces_info.iteritems()))
开发者ID:ericwilligers,项目名称:blink,代码行数:31,代码来源:code_generator_v8.py

示例2: __init__

# 需要导入模块: from idl_types import IdlType [as 别名]
# 或者: from idl_types.IdlType import set_callback_interfaces [as 别名]
    def __init__(self, interfaces_info, cache_dir, output_dir):
        interfaces_info = interfaces_info or {}
        self.interfaces_info = interfaces_info
        self.jinja_env = initialize_jinja_env(cache_dir)
        self.output_dir = output_dir

        # Set global type info
        idl_types.set_ancestors(dict(
            (interface_name, interface_info['ancestors'])
            for interface_name, interface_info in interfaces_info.iteritems()
            if interface_info['ancestors']))
        IdlType.set_callback_interfaces(set(
            interface_name
            for interface_name, interface_info in interfaces_info.iteritems()
            if interface_info['is_callback_interface']))
        IdlType.set_dictionaries(set(
            dictionary_name
            for dictionary_name, interface_info in interfaces_info.iteritems()
            if interface_info['is_dictionary']))
        IdlType.set_implemented_as_interfaces(dict(
            (interface_name, interface_info['implemented_as'])
            for interface_name, interface_info in interfaces_info.iteritems()
            if interface_info['implemented_as']))
        v8_types.set_component_dirs(dict(
            (interface_name, interface_info['component_dir'])
            for interface_name, interface_info in interfaces_info.iteritems()))
开发者ID:davemichael,项目名称:mojo,代码行数:28,代码来源:code_generator_v8.py

示例3: set_global_type_info

# 需要导入模块: from idl_types import IdlType [as 别名]
# 或者: from idl_types.IdlType import set_callback_interfaces [as 别名]
def set_global_type_info(interfaces_info):
    idl_types.set_ancestors(interfaces_info['ancestors'])
    IdlType.set_callback_interfaces(interfaces_info['callback_interfaces'])
    IdlType.set_dictionaries(interfaces_info['dictionaries'])
    IdlType.set_implemented_as_interfaces(interfaces_info['implemented_as_interfaces'])
    IdlType.set_garbage_collected_types(interfaces_info['garbage_collected_interfaces'])
    IdlType.set_will_be_garbage_collected_types(interfaces_info['will_be_garbage_collected_interfaces'])
    v8_types.set_component_dirs(interfaces_info['component_dirs'])
开发者ID:janRucka,项目名称:blink,代码行数:10,代码来源:code_generator_v8.py

示例4: set_global_type_info

# 需要导入模块: from idl_types import IdlType [as 别名]
# 或者: from idl_types.IdlType import set_callback_interfaces [as 别名]
def set_global_type_info(info_provider):
    interfaces_info = info_provider.interfaces_info
    idl_types.set_ancestors(interfaces_info['ancestors'])
    IdlType.set_callback_interfaces(interfaces_info['callback_interfaces'])
    IdlType.set_dictionaries(interfaces_info['dictionaries'])
    IdlType.set_enums(info_provider.enumerations)
    IdlType.set_implemented_as_interfaces(
        interfaces_info['implemented_as_interfaces'])
开发者ID:eval1749,项目名称:evita,代码行数:10,代码来源:code_generator_js.py

示例5: set_global_type_info

# 需要导入模块: from idl_types import IdlType [as 别名]
# 或者: from idl_types.IdlType import set_callback_interfaces [as 别名]
def set_global_type_info(info_provider):
    interfaces_info = info_provider.interfaces_info
    idl_types.set_ancestors(interfaces_info['ancestors'])
    IdlType.set_callback_interfaces(interfaces_info['callback_interfaces'])
    IdlType.set_dictionaries(interfaces_info['dictionaries'])
    IdlType.set_enums(info_provider.enumerations)
    IdlType.set_implemented_as_interfaces(interfaces_info['implemented_as_interfaces'])
    IdlType.set_garbage_collected_types(interfaces_info['garbage_collected_interfaces'])
    IdlType.set_will_be_garbage_collected_types(interfaces_info['will_be_garbage_collected_interfaces'])
    v8_types.set_component_dirs(interfaces_info['component_dirs'])
开发者ID:b-cuts,项目名称:blink-crosswalk,代码行数:12,代码来源:code_generator_v8.py

示例6: set_global_type_info

# 需要导入模块: from idl_types import IdlType [as 别名]
# 或者: from idl_types.IdlType import set_callback_interfaces [as 别名]
 def set_global_type_info(self):
     interfaces_info = self.info_provider.interfaces_info
     set_ancestors(interfaces_info['ancestors'])
     IdlType.set_callback_interfaces(interfaces_info['callback_interfaces'])
     IdlType.set_dictionaries(interfaces_info['dictionaries'])
     IdlType.set_enums(self.info_provider.enumerations)
     IdlType.set_callback_functions(self.info_provider.callback_functions)
     IdlType.set_implemented_as_interfaces(interfaces_info['implemented_as_interfaces'])
     IdlType.set_garbage_collected_types(interfaces_info['garbage_collected_interfaces'])
     set_component_dirs(interfaces_info['component_dirs'])
开发者ID:mirror,项目名称:chromium,代码行数:12,代码来源:code_generator.py

示例7: __init__

# 需要导入模块: from idl_types import IdlType [as 别名]
# 或者: from idl_types.IdlType import set_callback_interfaces [as 别名]
    def __init__(self, interfaces_info, cache_dir, output_dir):
        interfaces_info = interfaces_info or {}
        self.interfaces_info = interfaces_info
        self.jinja_env = initialize_jinja_env(cache_dir)
        self.output_dir = output_dir

        # Set global type info
        idl_types.set_ancestors(interfaces_info['ancestors'])
        IdlType.set_callback_interfaces(interfaces_info['callback_interfaces'])
        IdlType.set_dictionaries(interfaces_info['dictionaries'])
        IdlType.set_implemented_as_interfaces(interfaces_info['implemented_as_interfaces'])
        IdlType.set_garbage_collected_types(interfaces_info['garbage_collected_interfaces'])
        IdlType.set_will_be_garbage_collected_types(interfaces_info['will_be_garbage_collected_interfaces'])
        v8_types.set_component_dirs(interfaces_info['component_dirs'])
开发者ID:335969568,项目名称:Blink-1,代码行数:16,代码来源:code_generator_v8.py


注:本文中的idl_types.IdlType.set_callback_interfaces方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。