class SmallStructNonNullableUnion(object):
    __metaclass__ = _reflection.MojoStructType
    DESCRIPTOR = {
        'fields': [
            _descriptor.SingleFieldGroup(
                'pod_union', _descriptor.UnionType(lambda: PodUnion), 0, 0),
        ],
    }
class WrapperStruct(object):
    __metaclass__ = _reflection.MojoStructType
    DESCRIPTOR = {
        'fields': [
            _descriptor.SingleFieldGroup(
                'object_union',
                _descriptor.UnionType(lambda: ObjectUnion, nullable=True), 0,
                0),
            _descriptor.SingleFieldGroup(
                'pod_union',
                _descriptor.UnionType(lambda: PodUnion, nullable=True), 1, 0),
            _descriptor.SingleFieldGroup(
                'handle_union',
                _descriptor.UnionType(lambda: HandleUnion, nullable=True), 2,
                0),
        ],
    }
class DummyStruct(object):
    __metaclass__ = _reflection.MojoStructType
    DESCRIPTOR = {
        'fields': [
            _descriptor.SingleFieldGroup('f_int8', _descriptor.TYPE_INT8, 0,
                                         0),
        ],
    }
class OldUnion(object):
    __metaclass__ = _reflection.MojoUnionType
    DESCRIPTOR = {
        'fields': [
            _descriptor.SingleFieldGroup('f_int8', _descriptor.TYPE_INT8, 0,
                                         0),
        ],
    }
class ObjectOnlyUnion(object):
    __metaclass__ = _reflection.MojoUnionType
    DESCRIPTOR = {
        'fields': [
            _descriptor.SingleFieldGroup(
                'dummy1', _descriptor.StructType(lambda: DummyStruct), 0, 0),
        ],
    }
Beispiel #6
0
class UserDefinedType(object):
    __metaclass__ = _reflection.MojoUnionType
    DESCRIPTOR = {
        'fields': [
            _descriptor.SingleFieldGroup(
                'enum_type', _descriptor.StructType(lambda: MojomEnum), 0, 0),
            _descriptor.SingleFieldGroup(
                'struct_type', _descriptor.StructType(lambda: MojomStruct), 1,
                0),
            _descriptor.SingleFieldGroup(
                'union_type', _descriptor.StructType(lambda: MojomUnion), 2,
                0),
            _descriptor.SingleFieldGroup(
                'interface_type',
                _descriptor.StructType(lambda: MojomInterface), 3, 0),
        ],
    }
Beispiel #7
0
class Value(object):
    __metaclass__ = _reflection.MojoUnionType
    DESCRIPTOR = {
        'fields': [
            _descriptor.SingleFieldGroup(
                'literal_value', _descriptor.UnionType(lambda: LiteralValue),
                0, 0),
            _descriptor.SingleFieldGroup(
                'constant_reference',
                _descriptor.StructType(lambda: ConstantReference), 1, 0),
            _descriptor.SingleFieldGroup(
                'enum_value_reference',
                _descriptor.StructType(lambda: EnumValueReference), 2, 0),
            _descriptor.SingleFieldGroup('builtin_value',
                                         _descriptor.TYPE_INT32, 3, 0),
        ],
    }
class ObjectUnion(object):
    __metaclass__ = _reflection.MojoUnionType
    DESCRIPTOR = {
        'fields': [
            _descriptor.SingleFieldGroup('f_int8', _descriptor.TYPE_INT8, 0,
                                         0),
            _descriptor.SingleFieldGroup('f_string', _descriptor.TYPE_STRING,
                                         1, 0),
            _descriptor.SingleFieldGroup(
                'f_dummy', _descriptor.StructType(lambda: DummyStruct), 2, 0),
            _descriptor.SingleFieldGroup(
                'f_nullable',
                _descriptor.StructType(lambda: DummyStruct, nullable=True), 3,
                0),
            _descriptor.SingleFieldGroup('f_array_int8',
                                         _descriptor.NativeArrayType('b'), 4,
                                         0),
            _descriptor.SingleFieldGroup(
                'f_map_int8',
                _descriptor.MapType(_descriptor.TYPE_STRING,
                                    _descriptor.TYPE_INT8), 5, 0),
            _descriptor.SingleFieldGroup(
                'f_pod_union', _descriptor.UnionType(lambda: PodUnion), 6, 0),
        ],
    }
Beispiel #9
0
class KeysByType(object):
    __metaclass__ = _reflection.MojoStructType
    DESCRIPTOR = {
        'fields': [
            _descriptor.SingleFieldGroup(
                'interfaces',
                _descriptor.GenericArrayType(_descriptor.TYPE_STRING,
                                             nullable=True), 0, 0),
            _descriptor.SingleFieldGroup(
                'structs',
                _descriptor.GenericArrayType(_descriptor.TYPE_STRING,
                                             nullable=True), 1, 0),
            _descriptor.SingleFieldGroup(
                'unions',
                _descriptor.GenericArrayType(_descriptor.TYPE_STRING,
                                             nullable=True), 2, 0),
            _descriptor.SingleFieldGroup(
                'top_level_enums',
                _descriptor.GenericArrayType(_descriptor.TYPE_STRING,
                                             nullable=True), 3, 0),
            _descriptor.SingleFieldGroup(
                'embedded_enums',
                _descriptor.GenericArrayType(_descriptor.TYPE_STRING,
                                             nullable=True), 4, 0),
            _descriptor.SingleFieldGroup(
                'top_level_constants',
                _descriptor.GenericArrayType(_descriptor.TYPE_STRING,
                                             nullable=True), 5, 0),
            _descriptor.SingleFieldGroup(
                'embedded_constants',
                _descriptor.GenericArrayType(_descriptor.TYPE_STRING,
                                             nullable=True), 6, 0),
        ],
    }
Beispiel #10
0
class BitArrayValues(object):
    __metaclass__ = _reflection.MojoStructType
    DESCRIPTOR = {
        'fields': [
            _descriptor.SingleFieldGroup(
                'f0', _descriptor.BooleanArrayType(length=1), 0, 0),
            _descriptor.SingleFieldGroup(
                'f1', _descriptor.BooleanArrayType(length=7), 1, 0),
            _descriptor.SingleFieldGroup(
                'f2', _descriptor.BooleanArrayType(length=9), 2, 0),
            _descriptor.SingleFieldGroup('f3', _descriptor.BooleanArrayType(),
                                         3, 0),
            _descriptor.SingleFieldGroup(
                'f4',
                _descriptor.GenericArrayType(_descriptor.BooleanArrayType()),
                4, 0),
            _descriptor.SingleFieldGroup(
                'f5',
                _descriptor.GenericArrayType(
                    _descriptor.BooleanArrayType(nullable=True)), 5, 0),
            _descriptor.SingleFieldGroup(
                'f6',
                _descriptor.GenericArrayType(
                    _descriptor.BooleanArrayType(nullable=True, length=2)), 6,
                0),
        ],
    }
Beispiel #11
0
class MojomFile(object):
    __metaclass__ = _reflection.MojoStructType
    DESCRIPTOR = {
        'fields': [
            _descriptor.SingleFieldGroup('file_name', _descriptor.TYPE_STRING,
                                         0, 0),
            _descriptor.SingleFieldGroup('specified_file_name',
                                         _descriptor.TYPE_NULLABLE_STRING, 1,
                                         0),
            _descriptor.SingleFieldGroup('module_namespace',
                                         _descriptor.TYPE_NULLABLE_STRING, 2,
                                         0),
            _descriptor.SingleFieldGroup(
                'attributes',
                _descriptor.GenericArrayType(_descriptor.StructType(
                    lambda: mojom_types_mojom.Attribute),
                                             nullable=True), 3, 0),
            _descriptor.SingleFieldGroup(
                'imports',
                _descriptor.GenericArrayType(_descriptor.TYPE_STRING,
                                             nullable=True), 4, 0),
            _descriptor.SingleFieldGroup(
                'declared_mojom_objects',
                _descriptor.StructType(lambda: KeysByType), 5, 0),
            _descriptor.SingleFieldGroup('serialized_runtime_type_info',
                                         _descriptor.TYPE_NULLABLE_STRING, 6,
                                         0),
        ],
    }
Beispiel #12
0
class MojomInterface(object):
    __metaclass__ = _reflection.MojoStructType
    DESCRIPTOR = {
        'fields': [
            _descriptor.SingleFieldGroup(
                'decl_data',
                _descriptor.StructType(lambda: DeclarationData, nullable=True),
                0, 0),
            _descriptor.SingleFieldGroup('service_name',
                                         _descriptor.TYPE_NULLABLE_STRING, 1,
                                         0),
            _descriptor.SingleFieldGroup(
                'methods',
                _descriptor.MapType(
                    _descriptor.TYPE_UINT32,
                    _descriptor.StructType(lambda: MojomMethod)), 2, 0),
        ],
    }
Beispiel #13
0
class DartKeywordStruct(object):
    __metaclass__ = _reflection.MojoStructType
    DESCRIPTOR = {
        'enums': {
            'Keywords': [
                ('AWAIT', 0),
                ('IS', 1),
                ('RETHROW', 2),
            ],
        },
        'fields': [
            _descriptor.SingleFieldGroup('await', _descriptor.TYPE_INT32, 0,
                                         0),
            _descriptor.SingleFieldGroup('is', _descriptor.TYPE_INT32, 1, 0),
            _descriptor.SingleFieldGroup('rethrow', _descriptor.TYPE_INT32, 2,
                                         0),
        ],
    }
Beispiel #14
0
class ContainsInterface(object):
    __metaclass__ = _reflection.MojoStructType
    DESCRIPTOR = {
        'fields': [
            _descriptor.SingleFieldGroup(
                'some_interface',
                _descriptor.InterfaceType(lambda: SomeInterface), 0, 0),
        ],
    }
Beispiel #15
0
class MultiVersionStructV5(object):
    __metaclass__ = _reflection.MojoStructType
    DESCRIPTOR = {
        'fields': [
            _descriptor.SingleFieldGroup('f_int32', _descriptor.TYPE_INT32, 0,
                                         0),
            _descriptor.SingleFieldGroup(
                'f_rect',
                _descriptor.StructType(lambda: rect_mojom.Rect, nullable=True),
                1, 1),
            _descriptor.SingleFieldGroup('f_string',
                                         _descriptor.TYPE_NULLABLE_STRING, 2,
                                         3),
            _descriptor.SingleFieldGroup(
                'f_array', _descriptor.NativeArrayType('b', nullable=True), 3,
                5),
        ],
    }
class Bar(object):
  __metaclass__ = _reflection.MojoStructType
  DESCRIPTOR = {
    'enums': {
      'Type': [
          ('VERTICAL', 1),
          ('HORIZONTAL', 2),
          ('BOTH', 3),
          ('INVALID', 4),
        ],
    },
    'fields': [
      _descriptor.SingleFieldGroup('alpha', _descriptor.TYPE_UINT8, 0, 0, default_value=255),
      _descriptor.SingleFieldGroup('beta', _descriptor.TYPE_UINT8, 1, 0),
      _descriptor.SingleFieldGroup('gamma', _descriptor.TYPE_UINT8, 2, 0),
      _descriptor.SingleFieldGroup('type', _descriptor.TYPE_INT32, 3, 0, default_value=1),
    ],
  }
Beispiel #17
0
class ServiceRegistry(object):
  __metaclass__ = _interface_reflection.MojoInterfaceType
  DESCRIPTOR = {
    'fully_qualified_name': 'mojo::ServiceRegistry',
    'version': 0,
    'methods': [
      {
        'name': 'AddServices',
        'ordinal': 0,
        'parameters': {
          'fields': [
            _descriptor.SingleFieldGroup('interface_names', _descriptor.GenericArrayType(_descriptor.TYPE_STRING), 0, 0),
            _descriptor.SingleFieldGroup('service_provider', _descriptor.InterfaceType(lambda: service_provider_mojom.ServiceProvider), 1, 0),
          ],
        },
      },
    ],
  }
Beispiel #18
0
class ArrayType(object):
    __metaclass__ = _reflection.MojoStructType
    DESCRIPTOR = {
        'fields': [
            _descriptor.BooleanGroup([
                _descriptor.FieldDescriptor('nullable', _descriptor.TYPE_BOOL,
                                            0, 0)
            ]),
            _descriptor.SingleFieldGroup('fixed_length',
                                         _descriptor.TYPE_INT32,
                                         1,
                                         0,
                                         default_value=-1),
            _descriptor.SingleFieldGroup('element_type',
                                         _descriptor.UnionType(lambda: Type),
                                         2, 0),
        ],
    }
Beispiel #19
0
class StructF(object):
    __metaclass__ = _reflection.MojoStructType
    DESCRIPTOR = {
        'fields': [
            _descriptor.SingleFieldGroup(
                'fixed_size_array', _descriptor.NativeArrayType('B', length=3),
                0, 0),
        ],
    }
Beispiel #20
0
class StructC(object):
    __metaclass__ = _reflection.MojoStructType
    DESCRIPTOR = {
        'fields': [
            _descriptor.SingleFieldGroup('data',
                                         _descriptor.NativeArrayType('B'), 0,
                                         0),
        ],
    }
class Port(object):
  __metaclass__ = _interface_reflection.MojoInterfaceType
  DESCRIPTOR = {
    'fully_qualified_name': None,
    'version': 0,
    'methods': [
      {
        'name': 'PostMessage',
        'ordinal': 0,
        'parameters': {
          'fields': [
            _descriptor.SingleFieldGroup('message_text', _descriptor.TYPE_STRING, 0, 0),
            _descriptor.SingleFieldGroup('port', _descriptor.InterfaceType(lambda: Port), 1, 0),
          ],
        },
      },
    ],
  }
Beispiel #22
0
class StructD(object):
    __metaclass__ = _reflection.MojoStructType
    DESCRIPTOR = {
        'fields': [
            _descriptor.SingleFieldGroup(
                'message_pipes',
                _descriptor.GenericArrayType(_descriptor.TYPE_HANDLE), 0, 0),
        ],
    }
Beispiel #23
0
class FlogChannelMessageEntryDetails(object):
    __metaclass__ = _reflection.MojoStructType
    DESCRIPTOR = {
        'fields': [
            _descriptor.SingleFieldGroup('data',
                                         _descriptor.NativeArrayType('B'), 0,
                                         0),
        ],
    }
Beispiel #24
0
class TypeReference(object):
    __metaclass__ = _reflection.MojoStructType
    DESCRIPTOR = {
        'fields': [
            _descriptor.BooleanGroup([
                _descriptor.FieldDescriptor('nullable', _descriptor.TYPE_BOOL,
                                            0, 0),
                _descriptor.FieldDescriptor('is_interface_request',
                                            _descriptor.TYPE_BOOL, 1, 0)
            ]),
            _descriptor.SingleFieldGroup('identifier',
                                         _descriptor.TYPE_NULLABLE_STRING, 2,
                                         0),
            _descriptor.SingleFieldGroup('type_key',
                                         _descriptor.TYPE_NULLABLE_STRING, 3,
                                         0),
        ],
    }
Beispiel #25
0
class FlogEntryDetails(object):
    __metaclass__ = _reflection.MojoUnionType
    DESCRIPTOR = {
        'fields': [
            _descriptor.SingleFieldGroup(
                'channel_creation',
                _descriptor.StructType(
                    lambda: FlogChannelCreationEntryDetails), 0, 0),
            _descriptor.SingleFieldGroup(
                'channel_message',
                _descriptor.StructType(lambda: FlogChannelMessageEntryDetails),
                1, 0),
            _descriptor.SingleFieldGroup(
                'channel_deletion',
                _descriptor.StructType(
                    lambda: FlogChannelDeletionEntryDetails), 2, 0),
        ],
    }
class ContentHandler(object):
  __metaclass__ = _interface_reflection.MojoInterfaceType
  DESCRIPTOR = {
    'fully_qualified_name': 'mojo::ContentHandler',
    'version': 0,
    'methods': [
      {
        'name': 'StartApplication',
        'ordinal': 0,
        'parameters': {
          'fields': [
            _descriptor.SingleFieldGroup('application', _descriptor.InterfaceRequestType(), 0, 0),
            _descriptor.SingleFieldGroup('response', _descriptor.StructType(lambda: url_response_mojom.UrlResponse), 1, 0),
          ],
        },
      },
    ],
  }
Beispiel #27
0
class DeclaredConstant(object):
    __metaclass__ = _reflection.MojoStructType
    DESCRIPTOR = {
        'fields': [
            _descriptor.SingleFieldGroup(
                'decl_data', _descriptor.StructType(lambda: DeclarationData),
                0, 0),
            _descriptor.SingleFieldGroup('type',
                                         _descriptor.UnionType(lambda: Type),
                                         1, 0),
            _descriptor.SingleFieldGroup('value',
                                         _descriptor.UnionType(lambda: Value),
                                         2, 0),
            _descriptor.SingleFieldGroup(
                'resolved_concrete_value',
                _descriptor.UnionType(lambda: Value, nullable=True), 3, 0),
        ],
    }
Beispiel #28
0
class HttpServerDelegate(object):
  __metaclass__ = _interface_reflection.MojoInterfaceType
  DESCRIPTOR = {
    'fully_qualified_name': None,
    'version': 0,
    'methods': [
      {
        'name': 'OnConnected',
        'ordinal': 0,
        'parameters': {
          'fields': [
            _descriptor.SingleFieldGroup('connection', _descriptor.InterfaceType(lambda: http_connection_mojom.HttpConnection), 0, 0),
            _descriptor.SingleFieldGroup('delegate', _descriptor.InterfaceRequestType(), 1, 0),
          ],
        },
      },
    ],
  }
Beispiel #29
0
class DeclarationData(object):
  __metaclass__ = _reflection.MojoStructType
  DESCRIPTOR = {
    'fields': [
      _descriptor.SingleFieldGroup('attributes', _descriptor.GenericArrayType(_descriptor.StructType(lambda: Attribute), nullable=True), 0, 0),
      _descriptor.SingleFieldGroup('short_name', _descriptor.TYPE_NULLABLE_STRING, 1, 0),
      _descriptor.SingleFieldGroup('full_identifier', _descriptor.TYPE_NULLABLE_STRING, 2, 0),
      _descriptor.SingleFieldGroup('declared_ordinal', _descriptor.TYPE_INT32, 3, 0, default_value=-1),
      _descriptor.SingleFieldGroup('declaration_order', _descriptor.TYPE_INT32, 4, 0, default_value=-1),
      _descriptor.SingleFieldGroup('source_file_info', _descriptor.StructType(lambda: SourceFileInfo, nullable=True), 5, 0),
      _descriptor.SingleFieldGroup('contained_declarations', _descriptor.StructType(lambda: ContainedDeclarations, nullable=True), 6, 0),
      _descriptor.SingleFieldGroup('container_type_key', _descriptor.TYPE_NULLABLE_STRING, 7, 0),
      _descriptor.SingleFieldGroup('comments', _descriptor.StructType(lambda: Comments, nullable=True), 8, 0),
    ],
  }
Beispiel #30
0
class DisplayFactory(object):
  __metaclass__ = _interface_reflection.MojoInterfaceType
  DESCRIPTOR = {
    'fully_qualified_name': 'mojo::DisplayFactory',
    'version': 0,
    'methods': [
      {
        'name': 'Create',
        'ordinal': 0,
        'parameters': {
          'fields': [
            _descriptor.SingleFieldGroup('context_provider', _descriptor.InterfaceType(lambda: context_provider_mojom.ContextProvider), 0, 0),
            _descriptor.SingleFieldGroup('returner', _descriptor.InterfaceType(lambda: surfaces_mojom.ResourceReturner, nullable=True), 1, 0),
            _descriptor.SingleFieldGroup('display_request', _descriptor.InterfaceRequestType(), 2, 0),
          ],
        },
      },
    ],
  }