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 prediction_mojom; | 5 library prediction_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; |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 } | 369 } |
370 | 370 |
371 | 371 |
372 | 372 |
373 | 373 |
374 const int _PredictionService_getPredictionListName = 0; | 374 const int _PredictionService_getPredictionListName = 0; |
375 | 375 |
376 | 376 |
377 | 377 |
378 class _PredictionServiceServiceDescription implements service_describer.ServiceD
escription { | 378 class _PredictionServiceServiceDescription implements service_describer.ServiceD
escription { |
379 dynamic getTopLevelInterface([Function responseFactory]) => null; | 379 dynamic getTopLevelInterface([Function responseFactory]) => |
| 380 responseFactory(null); |
380 | 381 |
381 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 382 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 383 responseFactory(null); |
382 | 384 |
383 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 385 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 386 responseFactory(null); |
384 } | 387 } |
385 | 388 |
386 abstract class PredictionService { | 389 abstract class PredictionService { |
387 static const String serviceName = "prediction::PredictionService"; | 390 static const String serviceName = "prediction::PredictionService"; |
388 dynamic getPredictionList(PredictionInfo predictionInfo,[Function responseFact
ory = null]); | 391 dynamic getPredictionList(PredictionInfo predictionInfo,[Function responseFact
ory = null]); |
389 } | 392 } |
390 | 393 |
391 | 394 |
392 class _PredictionServiceProxyImpl extends bindings.Proxy { | 395 class _PredictionServiceProxyImpl extends bindings.Proxy { |
393 _PredictionServiceProxyImpl.fromEndpoint( | 396 _PredictionServiceProxyImpl.fromEndpoint( |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 _impl = d; | 589 _impl = d; |
587 } | 590 } |
588 | 591 |
589 String toString() { | 592 String toString() { |
590 var superString = super.toString(); | 593 var superString = super.toString(); |
591 return "PredictionServiceStub($superString)"; | 594 return "PredictionServiceStub($superString)"; |
592 } | 595 } |
593 | 596 |
594 int get version => 0; | 597 int get version => 0; |
595 | 598 |
596 service_describer.ServiceDescription get serviceDescription => | 599 static service_describer.ServiceDescription _cachedServiceDescription; |
597 new _PredictionServiceServiceDescription(); | 600 static service_describer.ServiceDescription get serviceDescription { |
| 601 if (_cachedServiceDescription == null) { |
| 602 _cachedServiceDescription = new _PredictionServiceServiceDescription(); |
| 603 } |
| 604 return _cachedServiceDescription; |
| 605 } |
598 } | 606 } |
599 | 607 |
600 | 608 |
601 | 609 |
OLD | NEW |