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

Unified Diff: mojo/dart/packages/mojo/lib/mojo/url_request.mojom.dart

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Move and Standardize Mojom Type Functions 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/lib/mojo/url_request.mojom.dart
diff --git a/mojo/dart/packages/mojo/lib/mojo/url_request.mojom.dart b/mojo/dart/packages/mojo/lib/mojo/url_request.mojom.dart
index 0554e5f891c97fcc7723f956407fcddf4a28d851..f3f42e0da8c6e44fa3b9c17328500ed9208d0985 100644
--- a/mojo/dart/packages/mojo/lib/mojo/url_request.mojom.dart
+++ b/mojo/dart/packages/mojo/lib/mojo/url_request.mojom.dart
@@ -8,8 +8,9 @@ import 'dart:async';
import 'package:mojo/bindings.dart' as bindings;
import 'package:mojo/core.dart' as core;
-import 'package:mojo/mojo/http_header.mojom.dart' as http_header_mojom;
+import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types;
+import 'package:mojo/mojo/http_header.mojom.dart' as http_header_mojom;
class UrlRequestCacheMode extends bindings.MojoEnum {
@@ -63,12 +64,16 @@ class UrlRequestCacheMode extends bindings.MojoEnum {
return 'UrlRequestCacheMode.bypassCache';
case onlyFromCache:
return 'UrlRequestCacheMode.onlyFromCache';
+ default:
+ return null;
}
}
int toJson() => mojoEnumValue;
}
+
+
class UrlRequest extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(56, 0)
@@ -206,3 +211,8 @@ class UrlRequest extends bindings.Struct {
}
+
+
+
+
+

Powered by Google App Engine
This is Rietveld 408576698