Index: mojo/dart/packages/mojo_services/lib/mojo/files/types.mojom.dart |
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/files/types.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/files/types.mojom.dart |
index f66d54fb3dc227fabed5d3d11be40d6407700c6a..c93ce1e026fb392ce5efc7c3c0f9b177bfae96d8 100644 |
--- a/mojo/dart/packages/mojo_services/lib/mojo/files/types.mojom.dart |
+++ b/mojo/dart/packages/mojo_services/lib/mojo/files/types.mojom.dart |
@@ -8,6 +8,8 @@ import 'dart:async'; |
import 'package:mojo/bindings.dart' as bindings; |
import 'package:mojo/core.dart' as core; |
+import 'package:mojo/mojo/mojom_types.mojom.dart' as mojom_types; |
+ |
const kOpenFlagRead = 0x1; |
const kOpenFlagWrite = 0x2; |
const kOpenFlagCreate = 0x4; |
@@ -110,11 +112,46 @@ class Error extends bindings.MojoEnum { |
return 'Error.UNAVAILABLE'; |
case INTERNAL: |
return 'Error.INTERNAL'; |
+ default: |
+ return null; |
} |
} |
int toJson() => value; |
} |
+ |
+mojom_types.MojomEnum _types_Error__() { |
+ return new mojom_types.MojomEnum() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "Error") |
+ ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "OK") |
+ ..enumTypeKey = '_types_Error__' |
+ ..intValue = 0,new mojom_types.EnumValue() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "UNKNOWN") |
+ ..enumTypeKey = '_types_Error__' |
+ ..intValue = 1,new mojom_types.EnumValue() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "INVALID_ARGUMENT") |
+ ..enumTypeKey = '_types_Error__' |
+ ..intValue = 2,new mojom_types.EnumValue() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "PERMISSION_DENIED") |
+ ..enumTypeKey = '_types_Error__' |
+ ..intValue = 3,new mojom_types.EnumValue() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "OUT_OF_RANGE") |
+ ..enumTypeKey = '_types_Error__' |
+ ..intValue = 4,new mojom_types.EnumValue() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "UNIMPLEMENTED") |
+ ..enumTypeKey = '_types_Error__' |
+ ..intValue = 5,new mojom_types.EnumValue() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "CLOSED") |
+ ..enumTypeKey = '_types_Error__' |
+ ..intValue = 6,new mojom_types.EnumValue() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "UNAVAILABLE") |
+ ..enumTypeKey = '_types_Error__' |
+ ..intValue = 7,new mojom_types.EnumValue() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "INTERNAL") |
+ ..enumTypeKey = '_types_Error__' |
+ ..intValue = 8,]; |
+} |
class Whence extends bindings.MojoEnum { |
static const FROM_CURRENT = const Whence._(0); |
static const FROM_START = const Whence._(1); |
@@ -166,11 +203,28 @@ class Whence extends bindings.MojoEnum { |
return 'Whence.FROM_START'; |
case FROM_END: |
return 'Whence.FROM_END'; |
+ default: |
+ return null; |
} |
} |
int toJson() => value; |
} |
+ |
+mojom_types.MojomEnum _types_Whence__() { |
+ return new mojom_types.MojomEnum() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "Whence") |
+ ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "FROM_CURRENT") |
+ ..enumTypeKey = '_types_Whence__' |
+ ..intValue = 0,new mojom_types.EnumValue() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "FROM_START") |
+ ..enumTypeKey = '_types_Whence__' |
+ ..intValue = 1,new mojom_types.EnumValue() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "FROM_END") |
+ ..enumTypeKey = '_types_Whence__' |
+ ..intValue = 2,]; |
+} |
class FileType extends bindings.MojoEnum { |
static const UNKNOWN = const FileType._(0); |
static const REGULAR_FILE = const FileType._(1); |
@@ -222,12 +276,29 @@ class FileType extends bindings.MojoEnum { |
return 'FileType.REGULAR_FILE'; |
case DIRECTORY: |
return 'FileType.DIRECTORY'; |
+ default: |
+ return null; |
} |
} |
int toJson() => value; |
} |
+mojom_types.MojomEnum _types_FileType__() { |
+ return new mojom_types.MojomEnum() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "FileType") |
+ ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "UNKNOWN") |
+ ..enumTypeKey = '_types_FileType__' |
+ ..intValue = 0,new mojom_types.EnumValue() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "REGULAR_FILE") |
+ ..enumTypeKey = '_types_FileType__' |
+ ..intValue = 1,new mojom_types.EnumValue() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "DIRECTORY") |
+ ..enumTypeKey = '_types_FileType__' |
+ ..intValue = 2,]; |
+} |
+ |
class Timespec extends bindings.Struct { |
@@ -305,6 +376,20 @@ class Timespec extends bindings.Struct { |
} |
} |
+mojom_types.MojomStruct _types_Timespec__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Timespec') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Seconds') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.INT64), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Nanoseconds') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.INT32), |
+ ]; |
+} |
+ |
class TimespecOrNow extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
@@ -382,6 +467,27 @@ class TimespecOrNow extends bindings.Struct { |
} |
} |
+mojom_types.MojomStruct _types_TimespecOrNow__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'TimespecOrNow') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Now') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.BOOL), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Timespec') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ ..nullable = true |
+ |
+ |
+ ..identifier = '_types_Timespec__' |
+ ..typeKey = '_types_Timespec__' |
+ )), |
+ ]; |
+} |
+ |
class FileInformation extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
@@ -482,6 +588,47 @@ class FileInformation extends bindings.Struct { |
} |
} |
+mojom_types.MojomStruct _types_FileInformation__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'FileInformation') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Type') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_types_FileType__' |
+ ..typeKey = '_types_FileType__' |
+ )), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Size') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.INT64), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Atime') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ ..nullable = true |
+ |
+ |
+ ..identifier = '_types_Timespec__' |
+ ..typeKey = '_types_Timespec__' |
+ )), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Mtime') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ ..nullable = true |
+ |
+ |
+ ..identifier = '_types_Timespec__' |
+ ..typeKey = '_types_Timespec__' |
+ )), |
+ ]; |
+} |
+ |
class DirectoryEntry extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
@@ -562,4 +709,102 @@ class DirectoryEntry extends bindings.Struct { |
} |
} |
+mojom_types.MojomStruct _types_DirectoryEntry__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'DirectoryEntry') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Type') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_types_FileType__' |
+ ..typeKey = '_types_FileType__' |
+ )), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Name') |
+ ..type = (new mojom_types.Type() |
+..stringType = (new mojom_types.StringType()..nullable = false)), |
+ ]; |
+} |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+var _MojomDesc__ = _initDescriptions(); |
+ |
+Map<String, mojom_types.UserDefinedType> _initDescriptions() { |
+ var map = new Map<String, mojom_types.UserDefinedType>(); |
+ |
+ map["_types_Error__"] = |
+ new mojom_types.UserDefinedType() |
+ ..enumType = _types_Error__(); |
+ |
+ |
+ map["_types_Whence__"] = |
+ new mojom_types.UserDefinedType() |
+ ..enumType = _types_Whence__(); |
+ |
+ |
+ map["_types_FileType__"] = |
+ new mojom_types.UserDefinedType() |
+ ..enumType = _types_FileType__(); |
+ |
+ |
+ map["_types_Timespec__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _types_Timespec__(); |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ map["_types_TimespecOrNow__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _types_TimespecOrNow__(); |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ map["_types_FileInformation__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _types_FileInformation__(); |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ map["_types_DirectoryEntry__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _types_DirectoryEntry__(); |
+ |
+ |
+ |
+ |
+ |
+ |
+ return map; |
+} |
+ |
+Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
+ return _MojomDesc__; |
+} |
+ |