| 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 clipboard_mojom; | 5 library clipboard_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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 } | 79 } |
| 80 | 80 |
| 81 Map toJson() { | 81 Map toJson() { |
| 82 Map map = new Map(); | 82 Map map = new Map(); |
| 83 map["clipboardType"] = clipboardType; | 83 map["clipboardType"] = clipboardType; |
| 84 return map; | 84 return map; |
| 85 } | 85 } |
| 86 } | 86 } |
| 87 | 87 |
| 88 | 88 |
| 89 | |
| 90 | |
| 91 class ClipboardGetSequenceNumberResponseParams extends bindings.Struct { | 89 class ClipboardGetSequenceNumberResponseParams extends bindings.Struct { |
| 92 static const List<bindings.StructDataHeader> kVersions = const [ | 90 static const List<bindings.StructDataHeader> kVersions = const [ |
| 93 const bindings.StructDataHeader(16, 0) | 91 const bindings.StructDataHeader(16, 0) |
| 94 ]; | 92 ]; |
| 95 int sequence = 0; | 93 int sequence = 0; |
| 96 | 94 |
| 97 ClipboardGetSequenceNumberResponseParams() : super(kVersions.last.size); | 95 ClipboardGetSequenceNumberResponseParams() : super(kVersions.last.size); |
| 98 | 96 |
| 99 static ClipboardGetSequenceNumberResponseParams deserialize(bindings.Message m
essage) { | 97 static ClipboardGetSequenceNumberResponseParams deserialize(bindings.Message m
essage) { |
| 100 var decoder = new bindings.Decoder(message); | 98 var decoder = new bindings.Decoder(message); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 } | 151 } |
| 154 | 152 |
| 155 Map toJson() { | 153 Map toJson() { |
| 156 Map map = new Map(); | 154 Map map = new Map(); |
| 157 map["sequence"] = sequence; | 155 map["sequence"] = sequence; |
| 158 return map; | 156 return map; |
| 159 } | 157 } |
| 160 } | 158 } |
| 161 | 159 |
| 162 | 160 |
| 163 | |
| 164 | |
| 165 class _ClipboardGetAvailableMimeTypesParams extends bindings.Struct { | 161 class _ClipboardGetAvailableMimeTypesParams extends bindings.Struct { |
| 166 static const List<bindings.StructDataHeader> kVersions = const [ | 162 static const List<bindings.StructDataHeader> kVersions = const [ |
| 167 const bindings.StructDataHeader(16, 0) | 163 const bindings.StructDataHeader(16, 0) |
| 168 ]; | 164 ]; |
| 169 ClipboardType clipboardTypes = null; | 165 ClipboardType clipboardTypes = null; |
| 170 | 166 |
| 171 _ClipboardGetAvailableMimeTypesParams() : super(kVersions.last.size); | 167 _ClipboardGetAvailableMimeTypesParams() : super(kVersions.last.size); |
| 172 | 168 |
| 173 static _ClipboardGetAvailableMimeTypesParams deserialize(bindings.Message mess
age) { | 169 static _ClipboardGetAvailableMimeTypesParams deserialize(bindings.Message mess
age) { |
| 174 var decoder = new bindings.Decoder(message); | 170 var decoder = new bindings.Decoder(message); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 } | 227 } |
| 232 | 228 |
| 233 Map toJson() { | 229 Map toJson() { |
| 234 Map map = new Map(); | 230 Map map = new Map(); |
| 235 map["clipboardTypes"] = clipboardTypes; | 231 map["clipboardTypes"] = clipboardTypes; |
| 236 return map; | 232 return map; |
| 237 } | 233 } |
| 238 } | 234 } |
| 239 | 235 |
| 240 | 236 |
| 241 | |
| 242 | |
| 243 class ClipboardGetAvailableMimeTypesResponseParams extends bindings.Struct { | 237 class ClipboardGetAvailableMimeTypesResponseParams extends bindings.Struct { |
| 244 static const List<bindings.StructDataHeader> kVersions = const [ | 238 static const List<bindings.StructDataHeader> kVersions = const [ |
| 245 const bindings.StructDataHeader(16, 0) | 239 const bindings.StructDataHeader(16, 0) |
| 246 ]; | 240 ]; |
| 247 List<String> types = null; | 241 List<String> types = null; |
| 248 | 242 |
| 249 ClipboardGetAvailableMimeTypesResponseParams() : super(kVersions.last.size); | 243 ClipboardGetAvailableMimeTypesResponseParams() : super(kVersions.last.size); |
| 250 | 244 |
| 251 static ClipboardGetAvailableMimeTypesResponseParams deserialize(bindings.Messa
ge message) { | 245 static ClipboardGetAvailableMimeTypesResponseParams deserialize(bindings.Messa
ge message) { |
| 252 var decoder = new bindings.Decoder(message); | 246 var decoder = new bindings.Decoder(message); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 } | 314 } |
| 321 | 315 |
| 322 Map toJson() { | 316 Map toJson() { |
| 323 Map map = new Map(); | 317 Map map = new Map(); |
| 324 map["types"] = types; | 318 map["types"] = types; |
| 325 return map; | 319 return map; |
| 326 } | 320 } |
| 327 } | 321 } |
| 328 | 322 |
| 329 | 323 |
| 330 | |
| 331 | |
| 332 class _ClipboardReadMimeTypeParams extends bindings.Struct { | 324 class _ClipboardReadMimeTypeParams extends bindings.Struct { |
| 333 static const List<bindings.StructDataHeader> kVersions = const [ | 325 static const List<bindings.StructDataHeader> kVersions = const [ |
| 334 const bindings.StructDataHeader(24, 0) | 326 const bindings.StructDataHeader(24, 0) |
| 335 ]; | 327 ]; |
| 336 ClipboardType clipboardType = null; | 328 ClipboardType clipboardType = null; |
| 337 String mimeType = null; | 329 String mimeType = null; |
| 338 | 330 |
| 339 _ClipboardReadMimeTypeParams() : super(kVersions.last.size); | 331 _ClipboardReadMimeTypeParams() : super(kVersions.last.size); |
| 340 | 332 |
| 341 static _ClipboardReadMimeTypeParams deserialize(bindings.Message message) { | 333 static _ClipboardReadMimeTypeParams deserialize(bindings.Message message) { |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 | 404 |
| 413 Map toJson() { | 405 Map toJson() { |
| 414 Map map = new Map(); | 406 Map map = new Map(); |
| 415 map["clipboardType"] = clipboardType; | 407 map["clipboardType"] = clipboardType; |
| 416 map["mimeType"] = mimeType; | 408 map["mimeType"] = mimeType; |
| 417 return map; | 409 return map; |
| 418 } | 410 } |
| 419 } | 411 } |
| 420 | 412 |
| 421 | 413 |
| 422 | |
| 423 | |
| 424 class ClipboardReadMimeTypeResponseParams extends bindings.Struct { | 414 class ClipboardReadMimeTypeResponseParams extends bindings.Struct { |
| 425 static const List<bindings.StructDataHeader> kVersions = const [ | 415 static const List<bindings.StructDataHeader> kVersions = const [ |
| 426 const bindings.StructDataHeader(16, 0) | 416 const bindings.StructDataHeader(16, 0) |
| 427 ]; | 417 ]; |
| 428 List<int> data = null; | 418 List<int> data = null; |
| 429 | 419 |
| 430 ClipboardReadMimeTypeResponseParams() : super(kVersions.last.size); | 420 ClipboardReadMimeTypeResponseParams() : super(kVersions.last.size); |
| 431 | 421 |
| 432 static ClipboardReadMimeTypeResponseParams deserialize(bindings.Message messag
e) { | 422 static ClipboardReadMimeTypeResponseParams deserialize(bindings.Message messag
e) { |
| 433 var decoder = new bindings.Decoder(message); | 423 var decoder = new bindings.Decoder(message); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 } | 476 } |
| 487 | 477 |
| 488 Map toJson() { | 478 Map toJson() { |
| 489 Map map = new Map(); | 479 Map map = new Map(); |
| 490 map["data"] = data; | 480 map["data"] = data; |
| 491 return map; | 481 return map; |
| 492 } | 482 } |
| 493 } | 483 } |
| 494 | 484 |
| 495 | 485 |
| 496 | |
| 497 | |
| 498 class _ClipboardWriteClipboardDataParams extends bindings.Struct { | 486 class _ClipboardWriteClipboardDataParams extends bindings.Struct { |
| 499 static const List<bindings.StructDataHeader> kVersions = const [ | 487 static const List<bindings.StructDataHeader> kVersions = const [ |
| 500 const bindings.StructDataHeader(24, 0) | 488 const bindings.StructDataHeader(24, 0) |
| 501 ]; | 489 ]; |
| 502 ClipboardType clipboardType = null; | 490 ClipboardType clipboardType = null; |
| 503 Map<String, List<int>> data = null; | 491 Map<String, List<int>> data = null; |
| 504 | 492 |
| 505 _ClipboardWriteClipboardDataParams() : super(kVersions.last.size); | 493 _ClipboardWriteClipboardDataParams() : super(kVersions.last.size); |
| 506 | 494 |
| 507 static _ClipboardWriteClipboardDataParams deserialize(bindings.Message message
) { | 495 static _ClipboardWriteClipboardDataParams deserialize(bindings.Message message
) { |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 } | 618 } |
| 631 | 619 |
| 632 Map toJson() { | 620 Map toJson() { |
| 633 Map map = new Map(); | 621 Map map = new Map(); |
| 634 map["clipboardType"] = clipboardType; | 622 map["clipboardType"] = clipboardType; |
| 635 map["data"] = data; | 623 map["data"] = data; |
| 636 return map; | 624 return map; |
| 637 } | 625 } |
| 638 } | 626 } |
| 639 | 627 |
| 640 | |
| 641 | |
| 642 | |
| 643 const int _Clipboard_getSequenceNumberName = 0; | 628 const int _Clipboard_getSequenceNumberName = 0; |
| 644 const int _Clipboard_getAvailableMimeTypesName = 1; | 629 const int _Clipboard_getAvailableMimeTypesName = 1; |
| 645 const int _Clipboard_readMimeTypeName = 2; | 630 const int _Clipboard_readMimeTypeName = 2; |
| 646 const int _Clipboard_writeClipboardDataName = 3; | 631 const int _Clipboard_writeClipboardDataName = 3; |
| 647 | 632 |
| 648 class ClipboardType extends bindings.MojoEnum { | 633 class ClipboardType extends bindings.MojoEnum { |
| 649 static const ClipboardType copyPaste = const ClipboardType._(0); | 634 static const ClipboardType copyPaste = const ClipboardType._(0); |
| 650 static const ClipboardType selection = const ClipboardType._(1); | 635 static const ClipboardType selection = const ClipboardType._(1); |
| 651 static const ClipboardType drag = const ClipboardType._(2); | 636 static const ClipboardType drag = const ClipboardType._(2); |
| 652 | 637 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 case drag: | 682 case drag: |
| 698 return 'ClipboardType.drag'; | 683 return 'ClipboardType.drag'; |
| 699 default: | 684 default: |
| 700 return null; | 685 return null; |
| 701 } | 686 } |
| 702 } | 687 } |
| 703 | 688 |
| 704 int toJson() => mojoEnumValue; | 689 int toJson() => mojoEnumValue; |
| 705 } | 690 } |
| 706 | 691 |
| 707 | |
| 708 | |
| 709 | |
| 710 | |
| 711 class _ClipboardServiceDescription implements service_describer.ServiceDescripti
on { | 692 class _ClipboardServiceDescription implements service_describer.ServiceDescripti
on { |
| 712 dynamic getTopLevelInterface([Function responseFactory]) => | 693 dynamic getTopLevelInterface([Function responseFactory]) => |
| 713 responseFactory(null); | 694 responseFactory(null); |
| 714 | 695 |
| 715 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 696 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 716 responseFactory(null); | 697 responseFactory(null); |
| 717 | 698 |
| 718 dynamic getAllTypeDefinitions([Function responseFactory]) => | 699 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 719 responseFactory(null); | 700 responseFactory(null); |
| 720 } | 701 } |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1067 static service_describer.ServiceDescription get serviceDescription { | 1048 static service_describer.ServiceDescription get serviceDescription { |
| 1068 if (_cachedServiceDescription == null) { | 1049 if (_cachedServiceDescription == null) { |
| 1069 _cachedServiceDescription = new _ClipboardServiceDescription(); | 1050 _cachedServiceDescription = new _ClipboardServiceDescription(); |
| 1070 } | 1051 } |
| 1071 return _cachedServiceDescription; | 1052 return _cachedServiceDescription; |
| 1072 } | 1053 } |
| 1073 } | 1054 } |
| 1074 | 1055 |
| 1075 | 1056 |
| 1076 | 1057 |
| OLD | NEW |