OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |