| 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 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 return "_InputClientOnBackButtonParams("")"; | 61 return "_InputClientOnBackButtonParams("")"; |
| 62 } | 62 } |
| 63 | 63 |
| 64 Map toJson() { | 64 Map toJson() { |
| 65 Map map = new Map(); | 65 Map map = new Map(); |
| 66 return map; | 66 return map; |
| 67 } | 67 } |
| 68 } | 68 } |
| 69 | 69 |
| 70 | 70 |
| 71 | |
| 72 | |
| 73 class InputClientOnBackButtonResponseParams extends bindings.Struct { | 71 class InputClientOnBackButtonResponseParams extends bindings.Struct { |
| 74 static const List<bindings.StructDataHeader> kVersions = const [ | 72 static const List<bindings.StructDataHeader> kVersions = const [ |
| 75 const bindings.StructDataHeader(8, 0) | 73 const bindings.StructDataHeader(8, 0) |
| 76 ]; | 74 ]; |
| 77 | 75 |
| 78 InputClientOnBackButtonResponseParams() : super(kVersions.last.size); | 76 InputClientOnBackButtonResponseParams() : super(kVersions.last.size); |
| 79 | 77 |
| 80 static InputClientOnBackButtonResponseParams deserialize(bindings.Message mess
age) { | 78 static InputClientOnBackButtonResponseParams deserialize(bindings.Message mess
age) { |
| 81 var decoder = new bindings.Decoder(message); | 79 var decoder = new bindings.Decoder(message); |
| 82 var result = decode(decoder); | 80 var result = decode(decoder); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 return "InputClientOnBackButtonResponseParams("")"; | 119 return "InputClientOnBackButtonResponseParams("")"; |
| 122 } | 120 } |
| 123 | 121 |
| 124 Map toJson() { | 122 Map toJson() { |
| 125 Map map = new Map(); | 123 Map map = new Map(); |
| 126 return map; | 124 return map; |
| 127 } | 125 } |
| 128 } | 126 } |
| 129 | 127 |
| 130 | 128 |
| 131 | |
| 132 | |
| 133 class _InputServiceSetClientParams extends bindings.Struct { | 129 class _InputServiceSetClientParams extends bindings.Struct { |
| 134 static const List<bindings.StructDataHeader> kVersions = const [ | 130 static const List<bindings.StructDataHeader> kVersions = const [ |
| 135 const bindings.StructDataHeader(16, 0) | 131 const bindings.StructDataHeader(16, 0) |
| 136 ]; | 132 ]; |
| 137 Object client = null; | 133 Object client = null; |
| 138 | 134 |
| 139 _InputServiceSetClientParams() : super(kVersions.last.size); | 135 _InputServiceSetClientParams() : super(kVersions.last.size); |
| 140 | 136 |
| 141 static _InputServiceSetClientParams deserialize(bindings.Message message) { | 137 static _InputServiceSetClientParams deserialize(bindings.Message message) { |
| 142 var decoder = new bindings.Decoder(message); | 138 var decoder = new bindings.Decoder(message); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 return "_InputServiceSetClientParams(" | 189 return "_InputServiceSetClientParams(" |
| 194 "client: $client" ")"; | 190 "client: $client" ")"; |
| 195 } | 191 } |
| 196 | 192 |
| 197 Map toJson() { | 193 Map toJson() { |
| 198 throw new bindings.MojoCodecError( | 194 throw new bindings.MojoCodecError( |
| 199 'Object containing handles cannot be encoded to JSON.'); | 195 'Object containing handles cannot be encoded to JSON.'); |
| 200 } | 196 } |
| 201 } | 197 } |
| 202 | 198 |
| 203 | |
| 204 | |
| 205 | |
| 206 const int _InputClient_onBackButtonName = 0; | 199 const int _InputClient_onBackButtonName = 0; |
| 207 | 200 |
| 208 | |
| 209 | |
| 210 class _InputClientServiceDescription implements service_describer.ServiceDescrip
tion { | 201 class _InputClientServiceDescription implements service_describer.ServiceDescrip
tion { |
| 211 dynamic getTopLevelInterface([Function responseFactory]) => | 202 dynamic getTopLevelInterface([Function responseFactory]) => |
| 212 responseFactory(null); | 203 responseFactory(null); |
| 213 | 204 |
| 214 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 205 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 215 responseFactory(null); | 206 responseFactory(null); |
| 216 | 207 |
| 217 dynamic getAllTypeDefinitions([Function responseFactory]) => | 208 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 218 responseFactory(null); | 209 responseFactory(null); |
| 219 } | 210 } |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 static service_describer.ServiceDescription get serviceDescription { | 419 static service_describer.ServiceDescription get serviceDescription { |
| 429 if (_cachedServiceDescription == null) { | 420 if (_cachedServiceDescription == null) { |
| 430 _cachedServiceDescription = new _InputClientServiceDescription(); | 421 _cachedServiceDescription = new _InputClientServiceDescription(); |
| 431 } | 422 } |
| 432 return _cachedServiceDescription; | 423 return _cachedServiceDescription; |
| 433 } | 424 } |
| 434 } | 425 } |
| 435 | 426 |
| 436 const int _InputService_setClientName = 0; | 427 const int _InputService_setClientName = 0; |
| 437 | 428 |
| 438 | |
| 439 | |
| 440 class _InputServiceServiceDescription implements service_describer.ServiceDescri
ption { | 429 class _InputServiceServiceDescription implements service_describer.ServiceDescri
ption { |
| 441 dynamic getTopLevelInterface([Function responseFactory]) => | 430 dynamic getTopLevelInterface([Function responseFactory]) => |
| 442 responseFactory(null); | 431 responseFactory(null); |
| 443 | 432 |
| 444 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 433 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 445 responseFactory(null); | 434 responseFactory(null); |
| 446 | 435 |
| 447 dynamic getAllTypeDefinitions([Function responseFactory]) => | 436 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 448 responseFactory(null); | 437 responseFactory(null); |
| 449 } | 438 } |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 static service_describer.ServiceDescription get serviceDescription { | 609 static service_describer.ServiceDescription get serviceDescription { |
| 621 if (_cachedServiceDescription == null) { | 610 if (_cachedServiceDescription == null) { |
| 622 _cachedServiceDescription = new _InputServiceServiceDescription(); | 611 _cachedServiceDescription = new _InputServiceServiceDescription(); |
| 623 } | 612 } |
| 624 return _cachedServiceDescription; | 613 return _cachedServiceDescription; |
| 625 } | 614 } |
| 626 } | 615 } |
| 627 | 616 |
| 628 | 617 |
| 629 | 618 |
| OLD | NEW |