Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: mojo/dart/packages/mojo_services/lib/mojo/net_address.mojom.dart

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Merge with master Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/dart/packages/mojo_services/lib/mojo/net_address.mojom.dart
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/net_address.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/net_address.mojom.dart
index d97489862f00466bd36c3e6e48ce694d8dc47f1d..e9ea81baa053c8155b51d22901fd898356e3fc2c 100644
--- a/mojo/dart/packages/mojo_services/lib/mojo/net_address.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/mojo/net_address.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/bindings/types/mojom_types.mojom.dart' as mojom_types;
+
class NetAddressFamily extends bindings.MojoEnum {
static const NetAddressFamily unspecified = const NetAddressFamily._(0);
@@ -60,6 +62,8 @@ class NetAddressFamily extends bindings.MojoEnum {
return 'NetAddressFamily.ipv4';
case ipv6:
return 'NetAddressFamily.ipv6';
+ default:
+ return null;
}
}
@@ -68,6 +72,8 @@ class NetAddressFamily extends bindings.MojoEnum {
+
+
class NetAddressIPv4 extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(24, 0)
@@ -144,6 +150,8 @@ class NetAddressIPv4 extends bindings.Struct {
}
+
+
class NetAddressIPv6 extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(24, 0)
@@ -220,6 +228,8 @@ class NetAddressIPv6 extends bindings.Struct {
}
+
+
class NetAddress extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(32, 0)
@@ -311,3 +321,7 @@ class NetAddress extends bindings.Struct {
}
+
+
+
+

Powered by Google App Engine
This is Rietveld 408576698