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

Side by Side Diff: mojo/dart/packages/mojo_services/lib/mojo/media/media_common.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, 10 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 unified diff | Download patch
OLDNEW
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 library media_common_mojom; 5 library media_common_mojom;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:mojo/bindings.dart' as bindings; 9 import 'package:mojo/bindings.dart' as bindings;
10 import 'package:mojo/core.dart' as core; 10 import 'package:mojo/core.dart' as core;
11 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types;
12
11 13
12 class MediaResult extends bindings.MojoEnum { 14 class MediaResult extends bindings.MojoEnum {
13 static const MediaResult ok = const MediaResult._(0); 15 static const MediaResult ok = const MediaResult._(0);
14 static const MediaResult unknownError = const MediaResult._(-1); 16 static const MediaResult unknownError = const MediaResult._(-1);
15 static const MediaResult internalError = const MediaResult._(-2); 17 static const MediaResult internalError = const MediaResult._(-2);
16 static const MediaResult notImplemented = const MediaResult._(-3); 18 static const MediaResult notImplemented = const MediaResult._(-3);
17 static const MediaResult unsupportedOperation = const MediaResult._(-4); 19 static const MediaResult unsupportedOperation = const MediaResult._(-4);
18 static const MediaResult unsupportedConfig = const MediaResult._(-5); 20 static const MediaResult unsupportedConfig = const MediaResult._(-5);
19 static const MediaResult invalidArgument = const MediaResult._(-6); 21 static const MediaResult invalidArgument = const MediaResult._(-6);
20 static const MediaResult insufficientResources = const MediaResult._(-7); 22 static const MediaResult insufficientResources = const MediaResult._(-7);
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 case protocolError: 153 case protocolError:
152 return 'MediaResult.protocolError'; 154 return 'MediaResult.protocolError';
153 case alreadyExists: 155 case alreadyExists:
154 return 'MediaResult.alreadyExists'; 156 return 'MediaResult.alreadyExists';
155 case notFound: 157 case notFound:
156 return 'MediaResult.notFound'; 158 return 'MediaResult.notFound';
157 case shuttingDown: 159 case shuttingDown:
158 return 'MediaResult.shuttingDown'; 160 return 'MediaResult.shuttingDown';
159 case connectionLost: 161 case connectionLost:
160 return 'MediaResult.connectionLost'; 162 return 'MediaResult.connectionLost';
163 default:
164 return null;
161 } 165 }
162 } 166 }
163 167
164 int toJson() => mojoEnumValue; 168 int toJson() => mojoEnumValue;
165 } 169 }
166 170
167 171
168 172
173
174
175
176
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698