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

Side by Side Diff: mojo/dart/packages/mojo_services/lib/mojo/media/media_clock.mojom.dart

Issue 1753013002: Mojom runtime type info: New implementation for Dart. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: No changes to sha1s Created 4 years, 9 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_clock_mojom; 5 library media_clock_mojom;
6 import 'dart:async'; 6 import 'dart:async';
7 import 'package:mojo/bindings.dart' as bindings; 7 import 'package:mojo/bindings.dart' as bindings;
8 import 'package:mojo/core.dart' as core; 8 import 'package:mojo/core.dart' as core;
9 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic e_describer; 9 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic e_describer;
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 default: 83 default:
84 return null; 84 return null;
85 } 85 }
86 } 86 }
87 87
88 int toJson() => mojoEnumValue; 88 int toJson() => mojoEnumValue;
89 } 89 }
90 90
91 91
92 92
93
94
95
96
97
98 class _ClockServiceDescription implements service_describer.ServiceDescription { 93 class _ClockServiceDescription implements service_describer.ServiceDescription {
99 dynamic getTopLevelInterface([Function responseFactory]) => 94 dynamic getTopLevelInterface([Function responseFactory]) =>
100 responseFactory(null); 95 responseFactory(null);
101 96
102 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => 97 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
103 responseFactory(null); 98 responseFactory(null);
104 99
105 dynamic getAllTypeDefinitions([Function responseFactory]) => 100 dynamic getAllTypeDefinitions([Function responseFactory]) =>
106 responseFactory(null); 101 responseFactory(null);
107 } 102 }
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 static service_describer.ServiceDescription get serviceDescription { 256 static service_describer.ServiceDescription get serviceDescription {
262 if (_cachedServiceDescription == null) { 257 if (_cachedServiceDescription == null) {
263 _cachedServiceDescription = new _ClockServiceDescription(); 258 _cachedServiceDescription = new _ClockServiceDescription();
264 } 259 }
265 return _cachedServiceDescription; 260 return _cachedServiceDescription;
266 } 261 }
267 } 262 }
268 263
269 264
270 265
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698