| 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 sensors_mojom; | 5 library sensors_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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 | 526 |
| 527 | 527 |
| 528 | 528 |
| 529 | 529 |
| 530 const int _SensorListener_onAccuracyChangedName = 0; | 530 const int _SensorListener_onAccuracyChangedName = 0; |
| 531 const int _SensorListener_onSensorChangedName = 1; | 531 const int _SensorListener_onSensorChangedName = 1; |
| 532 | 532 |
| 533 | 533 |
| 534 | 534 |
| 535 class _SensorListenerServiceDescription implements service_describer.ServiceDesc
ription { | 535 class _SensorListenerServiceDescription implements service_describer.ServiceDesc
ription { |
| 536 dynamic getTopLevelInterface([Function responseFactory]) => null; | 536 dynamic getTopLevelInterface([Function responseFactory]) => |
| 537 responseFactory(null); |
| 537 | 538 |
| 538 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 539 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 540 responseFactory(null); |
| 539 | 541 |
| 540 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 542 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 543 responseFactory(null); |
| 541 } | 544 } |
| 542 | 545 |
| 543 abstract class SensorListener { | 546 abstract class SensorListener { |
| 544 static const String serviceName = null; | 547 static const String serviceName = null; |
| 545 void onAccuracyChanged(int accuracy); | 548 void onAccuracyChanged(int accuracy); |
| 546 void onSensorChanged(SensorData data); | 549 void onSensorChanged(SensorData data); |
| 547 } | 550 } |
| 548 | 551 |
| 549 | 552 |
| 550 class _SensorListenerProxyImpl extends bindings.Proxy { | 553 class _SensorListenerProxyImpl extends bindings.Proxy { |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 _impl = d; | 719 _impl = d; |
| 717 } | 720 } |
| 718 | 721 |
| 719 String toString() { | 722 String toString() { |
| 720 var superString = super.toString(); | 723 var superString = super.toString(); |
| 721 return "SensorListenerStub($superString)"; | 724 return "SensorListenerStub($superString)"; |
| 722 } | 725 } |
| 723 | 726 |
| 724 int get version => 0; | 727 int get version => 0; |
| 725 | 728 |
| 726 service_describer.ServiceDescription get serviceDescription => | 729 static service_describer.ServiceDescription get serviceDescription => |
| 727 new _SensorListenerServiceDescription(); | 730 new _SensorListenerServiceDescription(); |
| 728 } | 731 } |
| 729 | 732 |
| 730 const int _SensorService_addListenerName = 0; | 733 const int _SensorService_addListenerName = 0; |
| 731 | 734 |
| 732 | 735 |
| 733 | 736 |
| 734 class _SensorServiceServiceDescription implements service_describer.ServiceDescr
iption { | 737 class _SensorServiceServiceDescription implements service_describer.ServiceDescr
iption { |
| 735 dynamic getTopLevelInterface([Function responseFactory]) => null; | 738 dynamic getTopLevelInterface([Function responseFactory]) => |
| 739 responseFactory(null); |
| 736 | 740 |
| 737 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 741 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 742 responseFactory(null); |
| 738 | 743 |
| 739 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 744 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 745 responseFactory(null); |
| 740 } | 746 } |
| 741 | 747 |
| 742 abstract class SensorService { | 748 abstract class SensorService { |
| 743 static const String serviceName = "sensors::SensorService"; | 749 static const String serviceName = "sensors::SensorService"; |
| 744 void addListener(SensorType type, Object listener); | 750 void addListener(SensorType type, Object listener); |
| 745 } | 751 } |
| 746 | 752 |
| 747 | 753 |
| 748 class _SensorServiceProxyImpl extends bindings.Proxy { | 754 class _SensorServiceProxyImpl extends bindings.Proxy { |
| 749 _SensorServiceProxyImpl.fromEndpoint( | 755 _SensorServiceProxyImpl.fromEndpoint( |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 _impl = d; | 907 _impl = d; |
| 902 } | 908 } |
| 903 | 909 |
| 904 String toString() { | 910 String toString() { |
| 905 var superString = super.toString(); | 911 var superString = super.toString(); |
| 906 return "SensorServiceStub($superString)"; | 912 return "SensorServiceStub($superString)"; |
| 907 } | 913 } |
| 908 | 914 |
| 909 int get version => 0; | 915 int get version => 0; |
| 910 | 916 |
| 911 service_describer.ServiceDescription get serviceDescription => | 917 static service_describer.ServiceDescription get serviceDescription => |
| 912 new _SensorServiceServiceDescription(); | 918 new _SensorServiceServiceDescription(); |
| 913 } | 919 } |
| 914 | 920 |
| 915 | 921 |
| 916 | 922 |
| OLD | NEW |