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 terminal_mojom; | 5 library terminal_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 import 'package:mojo_services/mojo/files/file.mojom.dart' as file_mojom; | 10 import 'package:mojo_services/mojo/files/file.mojom.dart' as file_mojom; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 "force: $force" ")"; | 90 "force: $force" ")"; |
91 } | 91 } |
92 | 92 |
93 Map toJson() { | 93 Map toJson() { |
94 throw new bindings.MojoCodecError( | 94 throw new bindings.MojoCodecError( |
95 'Object containing handles cannot be encoded to JSON.'); | 95 'Object containing handles cannot be encoded to JSON.'); |
96 } | 96 } |
97 } | 97 } |
98 | 98 |
99 | 99 |
100 | |
101 | |
102 class TerminalConnectResponseParams extends bindings.Struct { | 100 class TerminalConnectResponseParams extends bindings.Struct { |
103 static const List<bindings.StructDataHeader> kVersions = const [ | 101 static const List<bindings.StructDataHeader> kVersions = const [ |
104 const bindings.StructDataHeader(16, 0) | 102 const bindings.StructDataHeader(16, 0) |
105 ]; | 103 ]; |
106 types_mojom.Error error = null; | 104 types_mojom.Error error = null; |
107 | 105 |
108 TerminalConnectResponseParams() : super(kVersions.last.size); | 106 TerminalConnectResponseParams() : super(kVersions.last.size); |
109 | 107 |
110 static TerminalConnectResponseParams deserialize(bindings.Message message) { | 108 static TerminalConnectResponseParams deserialize(bindings.Message message) { |
111 var decoder = new bindings.Decoder(message); | 109 var decoder = new bindings.Decoder(message); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 } | 166 } |
169 | 167 |
170 Map toJson() { | 168 Map toJson() { |
171 Map map = new Map(); | 169 Map map = new Map(); |
172 map["error"] = error; | 170 map["error"] = error; |
173 return map; | 171 return map; |
174 } | 172 } |
175 } | 173 } |
176 | 174 |
177 | 175 |
178 | |
179 | |
180 class _TerminalConnectToClientParams extends bindings.Struct { | 176 class _TerminalConnectToClientParams extends bindings.Struct { |
181 static const List<bindings.StructDataHeader> kVersions = const [ | 177 static const List<bindings.StructDataHeader> kVersions = const [ |
182 const bindings.StructDataHeader(24, 0) | 178 const bindings.StructDataHeader(24, 0) |
183 ]; | 179 ]; |
184 Object terminalClient = null; | 180 Object terminalClient = null; |
185 bool force = false; | 181 bool force = false; |
186 | 182 |
187 _TerminalConnectToClientParams() : super(kVersions.last.size); | 183 _TerminalConnectToClientParams() : super(kVersions.last.size); |
188 | 184 |
189 static _TerminalConnectToClientParams deserialize(bindings.Message message) { | 185 static _TerminalConnectToClientParams deserialize(bindings.Message message) { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 "force: $force" ")"; | 250 "force: $force" ")"; |
255 } | 251 } |
256 | 252 |
257 Map toJson() { | 253 Map toJson() { |
258 throw new bindings.MojoCodecError( | 254 throw new bindings.MojoCodecError( |
259 'Object containing handles cannot be encoded to JSON.'); | 255 'Object containing handles cannot be encoded to JSON.'); |
260 } | 256 } |
261 } | 257 } |
262 | 258 |
263 | 259 |
264 | |
265 | |
266 class TerminalConnectToClientResponseParams extends bindings.Struct { | 260 class TerminalConnectToClientResponseParams extends bindings.Struct { |
267 static const List<bindings.StructDataHeader> kVersions = const [ | 261 static const List<bindings.StructDataHeader> kVersions = const [ |
268 const bindings.StructDataHeader(16, 0) | 262 const bindings.StructDataHeader(16, 0) |
269 ]; | 263 ]; |
270 types_mojom.Error error = null; | 264 types_mojom.Error error = null; |
271 | 265 |
272 TerminalConnectToClientResponseParams() : super(kVersions.last.size); | 266 TerminalConnectToClientResponseParams() : super(kVersions.last.size); |
273 | 267 |
274 static TerminalConnectToClientResponseParams deserialize(bindings.Message mess
age) { | 268 static TerminalConnectToClientResponseParams deserialize(bindings.Message mess
age) { |
275 var decoder = new bindings.Decoder(message); | 269 var decoder = new bindings.Decoder(message); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 } | 326 } |
333 | 327 |
334 Map toJson() { | 328 Map toJson() { |
335 Map map = new Map(); | 329 Map map = new Map(); |
336 map["error"] = error; | 330 map["error"] = error; |
337 return map; | 331 return map; |
338 } | 332 } |
339 } | 333 } |
340 | 334 |
341 | 335 |
342 | |
343 | |
344 class _TerminalGetSizeParams extends bindings.Struct { | 336 class _TerminalGetSizeParams extends bindings.Struct { |
345 static const List<bindings.StructDataHeader> kVersions = const [ | 337 static const List<bindings.StructDataHeader> kVersions = const [ |
346 const bindings.StructDataHeader(8, 0) | 338 const bindings.StructDataHeader(8, 0) |
347 ]; | 339 ]; |
348 | 340 |
349 _TerminalGetSizeParams() : super(kVersions.last.size); | 341 _TerminalGetSizeParams() : super(kVersions.last.size); |
350 | 342 |
351 static _TerminalGetSizeParams deserialize(bindings.Message message) { | 343 static _TerminalGetSizeParams deserialize(bindings.Message message) { |
352 var decoder = new bindings.Decoder(message); | 344 var decoder = new bindings.Decoder(message); |
353 var result = decode(decoder); | 345 var result = decode(decoder); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 return "_TerminalGetSizeParams("")"; | 384 return "_TerminalGetSizeParams("")"; |
393 } | 385 } |
394 | 386 |
395 Map toJson() { | 387 Map toJson() { |
396 Map map = new Map(); | 388 Map map = new Map(); |
397 return map; | 389 return map; |
398 } | 390 } |
399 } | 391 } |
400 | 392 |
401 | 393 |
402 | |
403 | |
404 class TerminalGetSizeResponseParams extends bindings.Struct { | 394 class TerminalGetSizeResponseParams extends bindings.Struct { |
405 static const List<bindings.StructDataHeader> kVersions = const [ | 395 static const List<bindings.StructDataHeader> kVersions = const [ |
406 const bindings.StructDataHeader(24, 0) | 396 const bindings.StructDataHeader(24, 0) |
407 ]; | 397 ]; |
408 types_mojom.Error error = null; | 398 types_mojom.Error error = null; |
409 int rows = 0; | 399 int rows = 0; |
410 int columns = 0; | 400 int columns = 0; |
411 | 401 |
412 TerminalGetSizeResponseParams() : super(kVersions.last.size); | 402 TerminalGetSizeResponseParams() : super(kVersions.last.size); |
413 | 403 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 Map toJson() { | 488 Map toJson() { |
499 Map map = new Map(); | 489 Map map = new Map(); |
500 map["error"] = error; | 490 map["error"] = error; |
501 map["rows"] = rows; | 491 map["rows"] = rows; |
502 map["columns"] = columns; | 492 map["columns"] = columns; |
503 return map; | 493 return map; |
504 } | 494 } |
505 } | 495 } |
506 | 496 |
507 | 497 |
508 | |
509 | |
510 class _TerminalSetSizeParams extends bindings.Struct { | 498 class _TerminalSetSizeParams extends bindings.Struct { |
511 static const List<bindings.StructDataHeader> kVersions = const [ | 499 static const List<bindings.StructDataHeader> kVersions = const [ |
512 const bindings.StructDataHeader(24, 0) | 500 const bindings.StructDataHeader(24, 0) |
513 ]; | 501 ]; |
514 int rows = 0; | 502 int rows = 0; |
515 int columns = 0; | 503 int columns = 0; |
516 bool reset = false; | 504 bool reset = false; |
517 | 505 |
518 _TerminalSetSizeParams() : super(kVersions.last.size); | 506 _TerminalSetSizeParams() : super(kVersions.last.size); |
519 | 507 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 Map toJson() { | 588 Map toJson() { |
601 Map map = new Map(); | 589 Map map = new Map(); |
602 map["rows"] = rows; | 590 map["rows"] = rows; |
603 map["columns"] = columns; | 591 map["columns"] = columns; |
604 map["reset"] = reset; | 592 map["reset"] = reset; |
605 return map; | 593 return map; |
606 } | 594 } |
607 } | 595 } |
608 | 596 |
609 | 597 |
610 | |
611 | |
612 class TerminalSetSizeResponseParams extends bindings.Struct { | 598 class TerminalSetSizeResponseParams extends bindings.Struct { |
613 static const List<bindings.StructDataHeader> kVersions = const [ | 599 static const List<bindings.StructDataHeader> kVersions = const [ |
614 const bindings.StructDataHeader(24, 0) | 600 const bindings.StructDataHeader(24, 0) |
615 ]; | 601 ]; |
616 types_mojom.Error error = null; | 602 types_mojom.Error error = null; |
617 int rows = 0; | 603 int rows = 0; |
618 int columns = 0; | 604 int columns = 0; |
619 | 605 |
620 TerminalSetSizeResponseParams() : super(kVersions.last.size); | 606 TerminalSetSizeResponseParams() : super(kVersions.last.size); |
621 | 607 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 | 691 |
706 Map toJson() { | 692 Map toJson() { |
707 Map map = new Map(); | 693 Map map = new Map(); |
708 map["error"] = error; | 694 map["error"] = error; |
709 map["rows"] = rows; | 695 map["rows"] = rows; |
710 map["columns"] = columns; | 696 map["columns"] = columns; |
711 return map; | 697 return map; |
712 } | 698 } |
713 } | 699 } |
714 | 700 |
715 | |
716 | |
717 | |
718 const int _Terminal_connectName = 0; | 701 const int _Terminal_connectName = 0; |
719 const int _Terminal_connectToClientName = 1; | 702 const int _Terminal_connectToClientName = 1; |
720 const int _Terminal_getSizeName = 2; | 703 const int _Terminal_getSizeName = 2; |
721 const int _Terminal_setSizeName = 3; | 704 const int _Terminal_setSizeName = 3; |
722 | 705 |
723 | |
724 | |
725 class _TerminalServiceDescription implements service_describer.ServiceDescriptio
n { | 706 class _TerminalServiceDescription implements service_describer.ServiceDescriptio
n { |
726 dynamic getTopLevelInterface([Function responseFactory]) => | 707 dynamic getTopLevelInterface([Function responseFactory]) => |
727 responseFactory(null); | 708 responseFactory(null); |
728 | 709 |
729 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 710 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
730 responseFactory(null); | 711 responseFactory(null); |
731 | 712 |
732 dynamic getAllTypeDefinitions([Function responseFactory]) => | 713 dynamic getAllTypeDefinitions([Function responseFactory]) => |
733 responseFactory(null); | 714 responseFactory(null); |
734 } | 715 } |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1123 static service_describer.ServiceDescription get serviceDescription { | 1104 static service_describer.ServiceDescription get serviceDescription { |
1124 if (_cachedServiceDescription == null) { | 1105 if (_cachedServiceDescription == null) { |
1125 _cachedServiceDescription = new _TerminalServiceDescription(); | 1106 _cachedServiceDescription = new _TerminalServiceDescription(); |
1126 } | 1107 } |
1127 return _cachedServiceDescription; | 1108 return _cachedServiceDescription; |
1128 } | 1109 } |
1129 } | 1110 } |
1130 | 1111 |
1131 | 1112 |
1132 | 1113 |
OLD | NEW |