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 input_mojom; | 5 library input_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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 } | 204 } |
205 | 205 |
206 | 206 |
207 | 207 |
208 | 208 |
209 const int _InputClient_onBackButtonName = 0; | 209 const int _InputClient_onBackButtonName = 0; |
210 | 210 |
211 | 211 |
212 | 212 |
213 class _InputClientServiceDescription implements service_describer.ServiceDescrip
tion { | 213 class _InputClientServiceDescription implements service_describer.ServiceDescrip
tion { |
214 dynamic getTopLevelInterface([Function responseFactory]) => null; | 214 dynamic getTopLevelInterface([Function responseFactory]) => |
| 215 responseFactory(null); |
215 | 216 |
216 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 217 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 218 responseFactory(null); |
217 | 219 |
218 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 220 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 221 responseFactory(null); |
219 } | 222 } |
220 | 223 |
221 abstract class InputClient { | 224 abstract class InputClient { |
222 static const String serviceName = null; | 225 static const String serviceName = null; |
223 dynamic onBackButton([Function responseFactory = null]); | 226 dynamic onBackButton([Function responseFactory = null]); |
224 } | 227 } |
225 | 228 |
226 | 229 |
227 class _InputClientProxyImpl extends bindings.Proxy { | 230 class _InputClientProxyImpl extends bindings.Proxy { |
228 _InputClientProxyImpl.fromEndpoint( | 231 _InputClientProxyImpl.fromEndpoint( |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 _impl = d; | 422 _impl = d; |
420 } | 423 } |
421 | 424 |
422 String toString() { | 425 String toString() { |
423 var superString = super.toString(); | 426 var superString = super.toString(); |
424 return "InputClientStub($superString)"; | 427 return "InputClientStub($superString)"; |
425 } | 428 } |
426 | 429 |
427 int get version => 0; | 430 int get version => 0; |
428 | 431 |
429 service_describer.ServiceDescription get serviceDescription => | 432 static service_describer.ServiceDescription _cachedServiceDescription; |
430 new _InputClientServiceDescription(); | 433 static service_describer.ServiceDescription get serviceDescription { |
| 434 if (_cachedServiceDescription == null) { |
| 435 _cachedServiceDescription = new _InputClientServiceDescription(); |
| 436 } |
| 437 return _cachedServiceDescription; |
| 438 } |
431 } | 439 } |
432 | 440 |
433 const int _InputService_setClientName = 0; | 441 const int _InputService_setClientName = 0; |
434 | 442 |
435 | 443 |
436 | 444 |
437 class _InputServiceServiceDescription implements service_describer.ServiceDescri
ption { | 445 class _InputServiceServiceDescription implements service_describer.ServiceDescri
ption { |
438 dynamic getTopLevelInterface([Function responseFactory]) => null; | 446 dynamic getTopLevelInterface([Function responseFactory]) => |
| 447 responseFactory(null); |
439 | 448 |
440 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 449 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 450 responseFactory(null); |
441 | 451 |
442 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 452 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 453 responseFactory(null); |
443 } | 454 } |
444 | 455 |
445 abstract class InputService { | 456 abstract class InputService { |
446 static const String serviceName = "input::InputService"; | 457 static const String serviceName = "input::InputService"; |
447 void setClient(Object client); | 458 void setClient(Object client); |
448 } | 459 } |
449 | 460 |
450 | 461 |
451 class _InputServiceProxyImpl extends bindings.Proxy { | 462 class _InputServiceProxyImpl extends bindings.Proxy { |
452 _InputServiceProxyImpl.fromEndpoint( | 463 _InputServiceProxyImpl.fromEndpoint( |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
603 _impl = d; | 614 _impl = d; |
604 } | 615 } |
605 | 616 |
606 String toString() { | 617 String toString() { |
607 var superString = super.toString(); | 618 var superString = super.toString(); |
608 return "InputServiceStub($superString)"; | 619 return "InputServiceStub($superString)"; |
609 } | 620 } |
610 | 621 |
611 int get version => 0; | 622 int get version => 0; |
612 | 623 |
613 service_describer.ServiceDescription get serviceDescription => | 624 static service_describer.ServiceDescription _cachedServiceDescription; |
614 new _InputServiceServiceDescription(); | 625 static service_describer.ServiceDescription get serviceDescription { |
| 626 if (_cachedServiceDescription == null) { |
| 627 _cachedServiceDescription = new _InputServiceServiceDescription(); |
| 628 } |
| 629 return _cachedServiceDescription; |
| 630 } |
615 } | 631 } |
616 | 632 |
617 | 633 |
618 | 634 |
OLD | NEW |