| 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 | 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 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 } | 706 } |
| 707 | 707 |
| 708 int toJson() => mojoEnumValue; | 708 int toJson() => mojoEnumValue; |
| 709 } | 709 } |
| 710 | 710 |
| 711 | 711 |
| 712 | 712 |
| 713 | 713 |
| 714 | 714 |
| 715 class _ClipboardServiceDescription implements service_describer.ServiceDescripti
on { | 715 class _ClipboardServiceDescription implements service_describer.ServiceDescripti
on { |
| 716 dynamic getTopLevelInterface([Function responseFactory]) => null; | 716 dynamic getTopLevelInterface([Function responseFactory]) => |
| 717 responseFactory(null); |
| 717 | 718 |
| 718 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 719 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 720 responseFactory(null); |
| 719 | 721 |
| 720 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 722 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 723 responseFactory(null); |
| 721 } | 724 } |
| 722 | 725 |
| 723 abstract class Clipboard { | 726 abstract class Clipboard { |
| 724 static const String serviceName = "mojo::Clipboard"; | 727 static const String serviceName = "mojo::Clipboard"; |
| 725 dynamic getSequenceNumber(ClipboardType clipboardType,[Function responseFactor
y = null]); | 728 dynamic getSequenceNumber(ClipboardType clipboardType,[Function responseFactor
y = null]); |
| 726 dynamic getAvailableMimeTypes(ClipboardType clipboardTypes,[Function responseF
actory = null]); | 729 dynamic getAvailableMimeTypes(ClipboardType clipboardTypes,[Function responseF
actory = null]); |
| 727 dynamic readMimeType(ClipboardType clipboardType,String mimeType,[Function res
ponseFactory = null]); | 730 dynamic readMimeType(ClipboardType clipboardType,String mimeType,[Function res
ponseFactory = null]); |
| 728 void writeClipboardData(ClipboardType clipboardType, Map<String, List<int>> da
ta); | 731 void writeClipboardData(ClipboardType clipboardType, Map<String, List<int>> da
ta); |
| 729 static const String mimeTypeText = "text/plain"; | 732 static const String mimeTypeText = "text/plain"; |
| 730 static const String mimeTypeHtml = "text/html"; | 733 static const String mimeTypeHtml = "text/html"; |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1057 _impl = d; | 1060 _impl = d; |
| 1058 } | 1061 } |
| 1059 | 1062 |
| 1060 String toString() { | 1063 String toString() { |
| 1061 var superString = super.toString(); | 1064 var superString = super.toString(); |
| 1062 return "ClipboardStub($superString)"; | 1065 return "ClipboardStub($superString)"; |
| 1063 } | 1066 } |
| 1064 | 1067 |
| 1065 int get version => 0; | 1068 int get version => 0; |
| 1066 | 1069 |
| 1067 service_describer.ServiceDescription get serviceDescription => | 1070 static service_describer.ServiceDescription _cachedServiceDescription; |
| 1068 new _ClipboardServiceDescription(); | 1071 static service_describer.ServiceDescription get serviceDescription { |
| 1072 if (_cachedServiceDescription == null) { |
| 1073 _cachedServiceDescription = new _ClipboardServiceDescription(); |
| 1074 } |
| 1075 return _cachedServiceDescription; |
| 1076 } |
| 1069 } | 1077 } |
| 1070 | 1078 |
| 1071 | 1079 |
| 1072 | 1080 |
| OLD | NEW |