| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import mojo_bindings.descriptor as _descriptor | 5 import mojo_bindings.descriptor as _descriptor |
| 6 import mojo_bindings.reflection as _reflection | 6 import mojo_bindings.reflection as _reflection |
| 7 | 7 |
| 8 import mojom_types_mojom | 8 import mojom_types_mojom |
| 9 | 9 |
| 10 class MojomFile(object): | 10 class MojomFile(object): |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 _descriptor.SingleFieldGroup('interfaces', _descriptor.GenericArrayType(_d
escriptor.TYPE_STRING, nullable=True), 0, 0), | 38 _descriptor.SingleFieldGroup('interfaces', _descriptor.GenericArrayType(_d
escriptor.TYPE_STRING, nullable=True), 0, 0), |
| 39 _descriptor.SingleFieldGroup('structs', _descriptor.GenericArrayType(_desc
riptor.TYPE_STRING, nullable=True), 1, 0), | 39 _descriptor.SingleFieldGroup('structs', _descriptor.GenericArrayType(_desc
riptor.TYPE_STRING, nullable=True), 1, 0), |
| 40 _descriptor.SingleFieldGroup('unions', _descriptor.GenericArrayType(_descr
iptor.TYPE_STRING, nullable=True), 2, 0), | 40 _descriptor.SingleFieldGroup('unions', _descriptor.GenericArrayType(_descr
iptor.TYPE_STRING, nullable=True), 2, 0), |
| 41 _descriptor.SingleFieldGroup('top_level_enums', _descriptor.GenericArrayTy
pe(_descriptor.TYPE_STRING, nullable=True), 3, 0), | 41 _descriptor.SingleFieldGroup('top_level_enums', _descriptor.GenericArrayTy
pe(_descriptor.TYPE_STRING, nullable=True), 3, 0), |
| 42 _descriptor.SingleFieldGroup('embedded_enums', _descriptor.GenericArrayTyp
e(_descriptor.TYPE_STRING, nullable=True), 4, 0), | 42 _descriptor.SingleFieldGroup('embedded_enums', _descriptor.GenericArrayTyp
e(_descriptor.TYPE_STRING, nullable=True), 4, 0), |
| 43 _descriptor.SingleFieldGroup('top_level_constants', _descriptor.GenericArr
ayType(_descriptor.TYPE_STRING, nullable=True), 5, 0), | 43 _descriptor.SingleFieldGroup('top_level_constants', _descriptor.GenericArr
ayType(_descriptor.TYPE_STRING, nullable=True), 5, 0), |
| 44 _descriptor.SingleFieldGroup('embedded_constants', _descriptor.GenericArra
yType(_descriptor.TYPE_STRING, nullable=True), 6, 0), | 44 _descriptor.SingleFieldGroup('embedded_constants', _descriptor.GenericArra
yType(_descriptor.TYPE_STRING, nullable=True), 6, 0), |
| 45 ], | 45 ], |
| 46 } | 46 } |
| 47 | 47 |
| 48 class ServiceTypeInfo(object): | |
| 49 __metaclass__ = _reflection.MojoStructType | |
| 50 DESCRIPTOR = { | |
| 51 'fields': [ | |
| 52 _descriptor.SingleFieldGroup('top_level_interface', _descriptor.TYPE_STRIN
G, 0, 0), | |
| 53 _descriptor.SingleFieldGroup('complete_type_set', _descriptor.GenericArray
Type(_descriptor.TYPE_STRING), 1, 0), | |
| 54 ], | |
| 55 } | |
| 56 | |
| 57 class RuntimeTypeInfo(object): | |
| 58 __metaclass__ = _reflection.MojoStructType | |
| 59 DESCRIPTOR = { | |
| 60 'fields': [ | |
| 61 _descriptor.SingleFieldGroup('services_by_name', _descriptor.MapType(_desc
riptor.TYPE_STRING, _descriptor.StructType(lambda: ServiceTypeInfo)), 0, 0), | |
| 62 _descriptor.SingleFieldGroup('type_map', _descriptor.MapType(_descriptor.T
YPE_STRING, _descriptor.UnionType(lambda: mojom_types_mojom.UserDefinedType)), 1
, 0), | |
| 63 ], | |
| 64 } | |
| 65 | |
| OLD | NEW |